As of 2026-09-07 (commit fa942aec719a), langchain-ai/langchain contains 244,955 total lines: 200,686 code, 14,842 comments, 29,427 blank, across 1,900 files in 9 languages (top: Python 97.8%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving langchain-ai/langchain to commit fa942aec719a, 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.9% of all lines, comments represent 6.1%, and the repository averages 106 code lines per file. Python accounts for 97.8% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 1761 | 229367 | 196271 | 7776 | 25320 |
| TOML | 29 | 3257 | 2809 | 45 | 403 |
| Makefile | 23 | 1739 | 1125 | 235 | 379 |
| Shell | 21 | 561 | 304 | 156 | 101 |
| XSL | 2 | 228 | 140 | 53 | 35 |
| Dockerfile | 1 | 43 | 27 | 6 | 10 |
| JSON | 1 | 10 | 10 | 0 | 0 |
| Markdown | 53 | 9655 | 0 | 6496 | 3159 |
| Plain Text | 9 | 95 | 0 | 75 | 20 |
Top language (Python 97.8%). Generated at .
langchain-ai/langchain has 244,955 total lines, including 200,686 code lines, 14,842 comment lines, and 29,427 blank lines.
OctoCounts resolved the public GitHub repository to commit fa942aec719a, 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 fa942aec719a on 2026-09-07T08:27:26.042956535+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: