langchain-ai/langchain has 207,171 source lines of code out of 253,948 total lines across 1,925 files, counted from the master ref at commit e6d83ef6a6e2 by the OctoCounts tokei engine on 2026-10-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-21 (commit e6d83ef6a6e2), langchain-ai/langchain contains 253,948 total lines: 207,171 code, 16,229 comments, 30,548 blank, across 1,925 files in 9 languages (top: Python 97.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving langchain-ai/langchain to commit e6d83ef6a6e2, 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.
This is a large codebase by counted code lines. Code represents 81.6% of all lines, comments represent 6.4%, and the repository averages 108 code lines per file. Python accounts for 97.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 1783 | 236207 | 202482 | 7819 | 25906 |
| TOML | 30 | 3514 | 3035 | 45 | 434 |
| Makefile | 24 | 1792 | 1166 | 235 | 391 |
| Shell | 22 | 573 | 311 | 157 | 105 |
| XSL | 2 | 228 | 140 | 53 | 35 |
| Dockerfile | 1 | 43 | 27 | 6 | 10 |
| JSON | 1 | 10 | 10 | 0 | 0 |
| Markdown | 53 | 11486 | 0 | 7839 | 3647 |
| Plain Text | 9 | 95 | 0 | 75 | 20 |
Top language (Python 97.7%). Generated at .
langchain-ai/langchain has 253,948 total lines, including 207,171 code lines, 16,229 comment lines, and 30,548 blank lines.
OctoCounts resolved the public GitHub repository to commit e6d83ef6a6e2, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit e6d83ef6a6e2 on 2026-10-21T02:41:37.719754788+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for langchain-ai/langchain on this page — 207,171 code lines across 9 languages, counted by tokei.