# langchain-ai/langchain SLOC report

> langchain-ai/langchain: 208,965 code lines at commit 583864017898, counted with tokei-15.0.0 on 2026-11-15. Saved result d5189d7f2cab8c7aa7d7c5e0d74b13a479f3434f7e2a19672f8f30d798b9600d.

langchain-ai/langchain has 208,965 source lines of code out of 273,100 total lines across 1,980 files, counted with tokei from the master ref at commit 583864017898 on November 15, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving langchain-ai/langchain to commit 583864017898, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

langchain-ai/langchain: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 76.5% of all lines, comments represent 10.1%, and the repository averages 106 code lines per file. Python accounts for 97.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 1,794 | 238,263 | 204,258 | 7,835 | 26,170 |
| TOML | 30 | 3,545 | 3,053 | 56 | 436 |
| 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 | 97 | 28,551 | 0 | 19,233 | 9,318 |
| Plain Text | 9 | 95 | 0 | 75 | 20 |

Top language: Python 97.7%. Generated on November 15, 2026. Canonical report: https://octocounts.com/github/langchain-ai/langchain/commit/5838640178981fdd4ddcfbb03577cff4a2b5b750?reportId=d5189d7f2cab8c7aa7d7c5e0d74b13a479f3434f7e2a19672f8f30d798b9600d&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/5838640178981fdd4ddcfbb03577cff4a2b5b750?reportId=d5189d7f2cab8c7aa7d7c5e0d74b13a479f3434f7e2a19672f8f30d798b9600d&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 208,965 lines of code, plus 27,650 comment lines and 36,485 blank lines, for 273,100 total lines at commit 583864017898 on November 15, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 583864017898, 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 583864017898 on November 15, 2026.

## Similar repository reports

- [meta-pytorch/torchrec](https://octocounts.com/github/meta-pytorch/torchrec) — Python, 209,001 code lines
- [OICWS/Coscribe](https://octocounts.com/github/OICWS/Coscribe) — Python, 208,855 code lines
- [gradio-app/gradio](https://octocounts.com/github/gradio-app/gradio) — Python, 209,389 code lines
- [tradermonty/claude-trading-skills](https://octocounts.com/github/tradermonty/claude-trading-skills) — Python, 208,079 code lines
- [bytedance/axion1_0](https://octocounts.com/github/bytedance/axion1_0) — Python, 210,240 code lines
- [NVIDIA/SkillEvaluator](https://octocounts.com/github/NVIDIA/SkillEvaluator) — Python, 207,599 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)
- [LangChain vs LlamaIndex](https://octocounts.com/compare/langchain-vs-llamaindex)
- [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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
