# vercel/next.js SLOC report

> vercel/next.js: 822,157 code lines at commit 254c50c3fd10, counted with tokei-15.0.0 on 2026-11-24. Saved result 4656d68ea92986a393481e22e343698d309c267fa27d0b826e700edb431f9a1e.

Source: [vercel/next.js on GitHub](https://github.com/vercel/next.js) · counted commit [254c50c3fd10](https://github.com/vercel/next.js/tree/254c50c3fd10e377ef315fe89cb6c4b3964fd985)

vercel/next.js has 822,157 source lines of code out of 1,017,124 total lines across 8,566 files, counted with tokei from the canary ref at commit 254c50c3fd10 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving vercel/next.js to commit 254c50c3fd10, 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

vercel/next.js: 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 80.8% of all lines, comments represent 9.5%, and the repository averages 96 code lines per file. Rust accounts for 35.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 1,016 | 341,315 | 294,711 | 15,248 | 31,356 |
| TypeScript | 2,272 | 321,908 | 253,042 | 39,710 | 29,156 |
| TSX | 1,655 | 102,057 | 86,924 | 6,562 | 8,571 |
| JSON | 707 | 63,458 | 63,445 | 0 | 13 |
| JavaScript | 1,446 | 63,029 | 53,744 | 4,184 | 5,101 |
| YAML | 37 | 47,437 | 39,733 | 34 | 7,670 |
| CSS | 209 | 19,899 | 16,917 | 279 | 2,703 |
| Sass | 114 | 3,544 | 3,178 | 87 | 279 |
| Go | 14 | 3,640 | 2,918 | 509 | 213 |
| SVG | 146 | 2,795 | 2,793 | 2 | 0 |
| TOML | 76 | 3,319 | 2,724 | 175 | 420 |
| Shell | 17 | 994 | 670 | 184 | 140 |
| Dockerfile | 10 | 682 | 337 | 198 | 147 |
| JSX | 13 | 316 | 293 | 1 | 22 |
| Python | 1 | 340 | 286 | 6 | 48 |
| XML | 20 | 180 | 180 | 0 | 0 |
| HTML | 11 | 133 | 131 | 1 | 1 |
| PO File | 2 | 76 | 52 | 12 | 12 |
| Makefile | 1 | 35 | 27 | 0 | 8 |
| EdgeQL | 1 | 15 | 15 | 0 | 0 |
| BASH | 1 | 19 | 12 | 4 | 3 |
| EdgeDB Schema Definition | 1 | 11 | 9 | 0 | 2 |
| Batch | 1 | 8 | 7 | 0 | 1 |
| GraphQL | 1 | 7 | 7 | 0 | 0 |
| Stylus | 1 | 2 | 2 | 0 | 0 |
| MDX | 275 | 16,870 | 0 | 12,208 | 4,662 |
| Markdown | 513 | 24,812 | 0 | 16,564 | 8,248 |
| Plain Text | 5 | 223 | 0 | 182 | 41 |

Top language: Rust 35.8%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/vercel/next.js/commit/254c50c3fd10e377ef315fe89cb6c4b3964fd985?reportId=4656d68ea92986a393481e22e343698d309c267fa27d0b826e700edb431f9a1e&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/vercel/next.js/commit/254c50c3fd10e377ef315fe89cb6c4b3964fd985?reportId=4656d68ea92986a393481e22e343698d309c267fa27d0b826e700edb431f9a1e&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 vercel/next.js have?

vercel/next.js has 822,157 lines of code, plus 96,150 comment lines and 98,817 blank lines, for 1,017,124 total lines at commit 254c50c3fd10 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the vercel/next.js line count measured?

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

### What commit was counted for vercel/next.js?

This OctoCounts report was generated from canary at commit 254c50c3fd10 on November 24, 2026.

## Similar repository reports

- [oxc-project/oxc](https://octocounts.com/github/oxc-project/oxc) — Rust, 823,738 code lines
- [zerx-lab/FluxDown](https://octocounts.com/github/zerx-lab/FluxDown) — Rust, 813,492 code lines
- [risingwavelabs/risingwave](https://octocounts.com/github/risingwavelabs/risingwave) — Rust, 806,224 code lines
- [obscuritylabs/Colossus](https://octocounts.com/github/obscuritylabs/Colossus) — Rust, 804,572 code lines
- [cyrup-ai/cyrup](https://octocounts.com/github/cyrup-ai/cyrup) — Rust, 799,172 code lines
- [Moonbot-Tech/MoonTerminal](https://octocounts.com/github/Moonbot-Tech/MoonTerminal) — Rust, 796,192 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)
- [Next.js vs React Router](https://octocounts.com/compare/nextjs-vs-react-router)
- [Next.js vs Vite](https://octocounts.com/compare/nextjs-vs-vite)
- [Nuxt vs Next.js](https://octocounts.com/compare/nuxt-vs-nextjs)
- [Astro vs Next.js](https://octocounts.com/compare/astro-vs-nextjs)
- [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)
