# vercel/next.js SLOC report

> vercel/next.js: 789,610 code lines at commit d768085563d5, counted with tokei-15.0.0 on 2026-11-05. Saved result 9a404b39be753aa4f1ecb79c39176cd91f9c9dc6fdd00f33df44bf1516f284ba.

vercel/next.js has 789,610 source lines of code out of 977,149 total lines across 8,624 files, counted with tokei from the canary ref at commit d768085563d5 on November 5, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving vercel/next.js to commit d768085563d5, 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.4%, and the repository averages 92 code lines per file. Rust accounts for 34.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 989 | 319,220 | 275,191 | 14,376 | 29,653 |
| TypeScript | 2,250 | 308,099 | 242,540 | 37,637 | 27,922 |
| TSX | 1,679 | 101,754 | 86,723 | 6,392 | 8,639 |
| JSON | 730 | 64,198 | 64,185 | 0 | 13 |
| JavaScript | 1,494 | 61,837 | 52,912 | 3,814 | 5,111 |
| YAML | 37 | 46,938 | 39,305 | 31 | 7,602 |
| CSS | 214 | 20,723 | 17,754 | 272 | 2,697 |
| Sass | 114 | 3,544 | 3,178 | 87 | 279 |
| SVG | 149 | 2,830 | 2,827 | 2 | 1 |
| TOML | 75 | 3,272 | 2,688 | 170 | 414 |
| Shell | 17 | 994 | 670 | 184 | 140 |
| Dockerfile | 10 | 676 | 337 | 192 | 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,831 | 0 | 12,184 | 4,647 |
| Markdown | 525 | 24,560 | 0 | 16,307 | 8,253 |
| Plain Text | 5 | 223 | 0 | 182 | 41 |

Top language: Rust 34.9%. Generated on November 5, 2026. Canonical report: https://octocounts.com/github/vercel/next.js/commit/d768085563d520882e200a244a90e068f71a6571?reportId=9a404b39be753aa4f1ecb79c39176cd91f9c9dc6fdd00f33df44bf1516f284ba&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/d768085563d520882e200a244a90e068f71a6571?reportId=9a404b39be753aa4f1ecb79c39176cd91f9c9dc6fdd00f33df44bf1516f284ba&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 789,610 lines of code, plus 91,862 comment lines and 95,677 blank lines, for 977,149 total lines at commit d768085563d5 on November 5, 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 d768085563d5, 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 d768085563d5 on November 5, 2026.

## Similar repository reports

- [pnpm/pnpm](https://octocounts.com/github/pnpm/pnpm) — Rust, 789,546 code lines
- [magnitudedev/magnitude](https://octocounts.com/github/magnitudedev/magnitude) — Rust, 791,153 code lines
- [oxc-project/oxc](https://octocounts.com/github/oxc-project/oxc) — Rust, 791,267 code lines
- [risingwavelabs/risingwave](https://octocounts.com/github/risingwavelabs/risingwave) — Rust, 782,094 code lines
- [cyrup-ai/cyrup](https://octocounts.com/github/cyrup-ai/cyrup) — Rust, 799,172 code lines
- [0xErwin1/dbflux](https://octocounts.com/github/0xErwin1/dbflux) — Rust, 779,347 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)
- [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)
