# Next.js vs React Router: source lines of code compared

As of 2026-09-10, vercel/next.js contains 893,769 total lines (721,747 code) across 8,115 files, while remix-run/react-router contains 146,723 total lines (103,696 code) across 682 files as of 2026-09-10. vercel/next.js is about 7.0x the size of remix-run/react-router by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.

| Metric | [vercel/next.js](https://octocounts.com/github/vercel/next.js) | [remix-run/react-router](https://octocounts.com/github/remix-run/react-router) |
| --- | ---: | ---: |
| Files | 8,115 | 682 |
| Total lines | 893,769 | 146,723 |
| Code lines | 721,747 | 103,696 |
| Comment lines | 83,336 | 24,544 |
| Blank lines | 88,686 | 18,483 |
| Languages counted | 12 | 12 |

Top languages in vercel/next.js: Rust (33.6% of code), TypeScript (30.5% of code), TSX (11.1% of code). Top languages in remix-run/react-router: TypeScript (72.6% of code), YAML (14.1% of code), TSX (9.6% of code). TypeScript, TSX, JSON, JavaScript appear in both top language lists; Rust appears only in vercel/next.js's top languages; YAML appears only in remix-run/react-router's top languages.

Methodology: both counts come from cached OctoCounts reports generated with tokei. vercel/next.js was counted at ref canary (commit ed1aab5d386d) on 2026-09-10; remix-run/react-router was counted at ref main (commit 35ecad36b056) on 2026-09-10. See the [counting methodology](https://octocounts.com/docs/methodology) for ignored directories and analysis options.
Evidence and next steps:

- [vercel/next.js SLOC report](https://octocounts.com/github/vercel/next.js)
- [remix-run/react-router SLOC report](https://octocounts.com/github/remix-run/react-router)
- [Compare vercel/next.js and remix-run/react-router interactively](https://octocounts.com/compare?left=https%3A%2F%2Fgithub.com%2Fvercel%2Fnext.js&right=https%3A%2F%2Fgithub.com%2Fremix-run%2Freact-router)

Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.

## Compare FAQ

### Which has more lines of code, vercel/next.js or remix-run/react-router?

vercel/next.js has more code: 721,747 code lines versus 103,696 for remix-run/react-router, about 7.0x as much, based on cached OctoCounts reports as of 2026-09-10.

### Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use SLOC to gauge the scale of what you'd be reading or maintaining, not as a quality signal for vercel/next.js, remix-run/react-router, or any repository.

### How is this comparison calculated?

Methodology: both counts come from cached OctoCounts reports generated with tokei. vercel/next.js was counted at ref canary (commit ed1aab5d386d) on 2026-09-10; remix-run/react-router was counted at ref main (commit 35ecad36b056) on 2026-09-10. See the counting methodology for ignored directories and analysis options.

### Can I compare a different branch, tag, or commit?

Yes. This page shows the default branch for each repository. Use the interactive comparison tool to pick any public GitHub repository, branch, tag, or commit SHA for both sides and get a fresh side-by-side report.

## Related OctoCounts pages

- [Interactive repository comparison](https://octocounts.com/compare)
- [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)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [OctoCounts API docs](https://octocounts.com/docs/api)
