# langchain-ai/langchain SLOC report

> langchain-ai/langchain: 207,171 code lines at commit e6d83ef6a6e2, counted with tokei-14.0.0 on 2026-10-21. Saved result 3dcf3d0ec98c7e21dab32eb8b858bfa1183e315431cf93343dce3311e04a3316.

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.

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.

## Repository size insights

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 | 1,783 | 236,207 | 202,482 | 7,819 | 25,906 |
| TOML | 30 | 3,514 | 3,035 | 45 | 434 |
| Makefile | 24 | 1,792 | 1,166 | 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 | 11,486 | 0 | 7,839 | 3,647 |
| Plain Text | 9 | 95 | 0 | 75 | 20 |

Top language (Python 97.7%). Generated at 2026-10-21T02:41:37.719754788Z. Canonical report: https://octocounts.com/github/langchain-ai/langchain/commit/e6d83ef6a6e2482cd55691023c51e45d7584a94f?reportId=3dcf3d0ec98c7e21dab32eb8b858bfa1183e315431cf93343dce3311e04a3316&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/langchain-ai/langchain/commit/e6d83ef6a6e2482cd55691023c51e45d7584a94f?reportId=3dcf3d0ec98c7e21dab32eb8b858bfa1183e315431cf93343dce3311e04a3316&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does langchain-ai/langchain have?

langchain-ai/langchain has 253,948 total lines, including 207,171 code lines, 16,229 comment lines, and 30,548 blank lines.

### How was the langchain-ai/langchain line count measured?

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.

### What commit was counted for langchain-ai/langchain?

This OctoCounts report was generated from master at commit e6d83ef6a6e2 on 2026-10-21T02:41:37.719754788Z.

## Similar repository reports

- [gradio-app/gradio](https://octocounts.com/github/gradio-app/gradio) — Python, 208,238 code lines
- [meta-pytorch/torchrec](https://octocounts.com/github/meta-pytorch/torchrec) — Python, 204,091 code lines
- [HKUDS/CLI-Anything](https://octocounts.com/github/HKUDS/CLI-Anything) — Python, 204,046 code lines
- [peach-mitao/peach](https://octocounts.com/github/peach-mitao/peach) — Python, 203,877 code lines
- [AstrBotDevs/AstrBot](https://octocounts.com/github/AstrBotDevs/AstrBot) — Python, 203,425 code lines
- [yt-dlp/yt-dlp](https://octocounts.com/github/yt-dlp/yt-dlp) — Python, 203,422 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
