langchain-ai/langchain SLOC report
As of 2026-08-17 (commit 82fd04260c15), langchain-ai/langchain contains 232,748 total lines: 197,207 code, 9,251 comments, 26,290 blank, across 1,852 files in 8 languages (top: Python 97.8%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving langchain-ai/langchain to commit 82fd04260c15, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
Repository size insights
This is a large codebase by counted code lines. Code represents 84.7% of all lines, comments represent 4.0%, and the repository averages 106 code lines per file. Python accounts for 97.8% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| Python | 1740 | 225227 | 192812 | 7648 | 24767 |
| TOML | 29 | 3244 | 2798 | 45 | 401 |
| Makefile | 23 | 1739 | 1126 | 233 | 380 |
| Shell | 21 | 561 | 304 | 156 | 101 |
| XSL | 2 | 228 | 140 | 53 | 35 |
| Dockerfile | 1 | 43 | 27 | 6 | 10 |
| Markdown | 27 | 1611 | 0 | 1035 | 576 |
| Plain Text | 9 | 95 | 0 | 75 | 20 |
Top language (Python 97.8%). Generated at 2026-08-17T04:09:18.488098981+00:00.
Report FAQ
How many lines of code does langchain-ai/langchain have?
langchain-ai/langchain has 232,748 total lines, including 197,207 code lines, 9,251 comment lines, and 26,290 blank lines.
How was the langchain-ai/langchain line count measured?
OctoCounts resolved the public GitHub repository to commit 82fd04260c15, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for langchain-ai/langchain?
This OctoCounts report was generated from master at commit 82fd04260c15 on 2026-08-17T04:09:18.488098981+00:00.