# langchain-ai/langchain SLOC report

> langchain-ai/langchain: 209,920 code lines at commit fb10639a73d9, counted with tokei-15.0.0 on 2026-11-23. Saved result b231ffb4e4497c049773fbc9b75e20f0930cef8a92f9a04141da4f6ce07da1af.

Source: [langchain-ai/langchain on GitHub](https://github.com/langchain-ai/langchain) · counted commit [fb10639a73d9](https://github.com/langchain-ai/langchain/tree/fb10639a73d980ce05ea8614a84deaf08d572550)

langchain-ai/langchain has 209,920 source lines of code out of 274,574 total lines across 1,981 files, counted with tokei from the master ref at commit fb10639a73d9 on November 23, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving langchain-ai/langchain to commit fb10639a73d9, 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.2%, 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,795 | 239,267 | 205,184 | 7,854 | 26,229 |
| TOML | 30 | 3,578 | 3,082 | 55 | 441 |
| 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,988 | 0 | 19,541 | 9,447 |
| Plain Text | 9 | 95 | 0 | 75 | 20 |

Top language: Python 97.7%. Generated on November 23, 2026. Canonical report: https://octocounts.com/github/langchain-ai/langchain/commit/fb10639a73d980ce05ea8614a84deaf08d572550?reportId=b231ffb4e4497c049773fbc9b75e20f0930cef8a92f9a04141da4f6ce07da1af&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/fb10639a73d980ce05ea8614a84deaf08d572550?reportId=b231ffb4e4497c049773fbc9b75e20f0930cef8a92f9a04141da4f6ce07da1af&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 209,920 lines of code, plus 27,976 comment lines and 36,678 blank lines, for 274,574 total lines at commit fb10639a73d9 on November 23, 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 fb10639a73d9, 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 fb10639a73d9 on November 23, 2026.

## Similar repository reports

- [aws/agent-toolkit-for-aws](https://octocounts.com/github/aws/agent-toolkit-for-aws) — Python, 209,951 code lines
- [gradio-app/gradio](https://octocounts.com/github/gradio-app/gradio) — Python, 209,762 code lines
- [bytedance/axion1_0](https://octocounts.com/github/bytedance/axion1_0) — Python, 210,240 code lines
- [Taiko2k/Tauon](https://octocounts.com/github/Taiko2k/Tauon) — Python, 207,842 code lines
- [meta-pytorch/torchrec](https://octocounts.com/github/meta-pytorch/torchrec) — Python, 215,295 code lines
- [tradermonty/claude-trading-skills](https://octocounts.com/github/tradermonty/claude-trading-skills) — Python, 215,828 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [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)
