# vercel/next.js SLOC report

> vercel/next.js: 810,912 code lines at commit a19c4f99adc8, counted with tokei-15.0.0 on 2026-11-16. Saved result 10a69eeae74b43db1ee96fa8f7efce5f06e5193c6abde54d81e92129f2eb8bd8.

vercel/next.js has 810,912 source lines of code out of 1,001,292 total lines across 8,670 files, counted with tokei from the canary ref at commit a19c4f99adc8 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving vercel/next.js to commit a19c4f99adc8, 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 81.0% of all lines, comments represent 9.3%, and the repository averages 94 code lines per file. Rust accounts for 35.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 1,008 | 335,231 | 289,463 | 14,906 | 30,862 |
| TypeScript | 2,264 | 313,023 | 246,922 | 37,827 | 28,274 |
| TSX | 1,679 | 102,549 | 87,484 | 6,405 | 8,660 |
| JSON | 734 | 64,308 | 64,295 | 0 | 13 |
| JavaScript | 1,500 | 63,258 | 54,111 | 3,965 | 5,182 |
| YAML | 37 | 47,298 | 39,623 | 34 | 7,641 |
| CSS | 214 | 20,992 | 17,984 | 272 | 2,736 |
| Sass | 114 | 3,544 | 3,178 | 87 | 279 |
| SVG | 149 | 2,830 | 2,827 | 2 | 1 |
| TOML | 76 | 3,312 | 2,718 | 175 | 419 |
| Shell | 17 | 994 | 670 | 184 | 140 |
| Dockerfile | 10 | 682 | 337 | 198 | 147 |
| JSX | 13 | 316 | 293 | 1 | 22 |
| Python | 1 | 340 | 286 | 6 | 48 |
| Go | 5 | 280 | 254 | 8 | 18 |
| 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 |
| GraphQL | 2 | 19 | 18 | 0 | 1 |
| EdgeQL | 1 | 15 | 15 | 0 | 0 |
| SQL | 1 | 16 | 14 | 0 | 2 |
| BASH | 1 | 19 | 12 | 4 | 3 |
| EdgeDB Schema Definition | 1 | 11 | 9 | 0 | 2 |
| Batch | 1 | 8 | 7 | 0 | 1 |
| Stylus | 1 | 2 | 2 | 0 | 0 |
| MDX | 275 | 16,854 | 0 | 12,200 | 4,654 |
| Markdown | 527 | 24,744 | 0 | 16,425 | 8,319 |
| Plain Text | 5 | 223 | 0 | 182 | 41 |

Top language: Rust 35.7%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/vercel/next.js/commit/a19c4f99adc84eb79acaae69022f87e29d4f1546?reportId=10a69eeae74b43db1ee96fa8f7efce5f06e5193c6abde54d81e92129f2eb8bd8&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/a19c4f99adc84eb79acaae69022f87e29d4f1546?reportId=10a69eeae74b43db1ee96fa8f7efce5f06e5193c6abde54d81e92129f2eb8bd8&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 810,912 lines of code, plus 92,894 comment lines and 97,486 blank lines, for 1,001,292 total lines at commit a19c4f99adc8 on November 16, 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 a19c4f99adc8, 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 a19c4f99adc8 on November 16, 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 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)
