# LibreChat-AI/LibreChat SLOC report

> As of 2026-11-20 (commit 4700c44eb77c), LibreChat-AI/LibreChat contains 1,999,453 total lines: 1,709,664 code, 140,480 comments, 149,309 blank, across 6,814 files in 17 languages (top language: TypeScript 70.6%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

LibreChat-AI/LibreChat has 1,709,664 source lines of code out of 1,999,453 total lines across 6,814 files, counted with tokei from the main ref at commit 4700c44eb77c on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving LibreChat-AI/LibreChat to commit 4700c44eb77c, 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

LibreChat-AI/LibreChat: 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 very large codebase by counted code lines. Code represents 85.5% of all lines, comments represent 7.0%, and the repository averages 251 code lines per file. TypeScript accounts for 70.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| TypeScript | 4,524 | 1,417,404 | 1,207,412 | 99,114 | 110,878 |
| JavaScript | 759 | 237,266 | 197,167 | 17,662 | 22,437 |
| TSX | 1,226 | 197,171 | 170,003 | 13,916 | 13,252 |
| JSON | 122 | 122,880 | 122,880 | 0 | 0 |
| CSS | 18 | 4,877 | 3,829 | 705 | 343 |
| Go | 4 | 3,187 | 2,874 | 2 | 311 |
| YAML | 61 | 5,223 | 2,783 | 2,210 | 230 |
| Handlebars | 7 | 1,360 | 1,217 | 131 | 12 |
| Shell | 11 | 891 | 637 | 136 | 118 |
| Pan | 2 | 347 | 305 | 0 | 42 |
| SVG | 27 | 184 | 174 | 3 | 7 |
| JSX | 2 | 150 | 119 | 21 | 10 |

Top language: TypeScript 70.6%. Generated on November 20, 2026. Canonical report: https://octocounts.com/github/LibreChat-AI/LibreChat

## Reproduce this report

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

## Report FAQ

### How many lines of code does LibreChat-AI/LibreChat have?

LibreChat-AI/LibreChat has 1,709,664 lines of code, plus 140,480 comment lines and 149,309 blank lines, for 1,999,453 total lines at commit 4700c44eb77c on November 20, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the LibreChat-AI/LibreChat line count measured?

OctoCounts resolved the public GitHub repository to commit 4700c44eb77c, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for LibreChat-AI/LibreChat?

This OctoCounts report was generated from main at commit 4700c44eb77c on November 20, 2026.

## 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)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Angular vs Vue](https://octocounts.com/compare/angular-vs-vue)
- [Svelte vs Vue](https://octocounts.com/compare/svelte-vs-vue)
- [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)
