Next.js vs React Router: source lines of code compared
As of 2026-07-27, vercel/next.js contains 863,876 total lines (700,145 code) across 7,993 files, while remix-run/react-router contains 146,748 total lines (104,037 code) across 681 files as of 2026-07-27. vercel/next.js is about 6.7x 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.
Top languages in vercel/next.js: Rust (32.7% of code), TypeScript (30.5% of code), TSX (11.3% of code). Top languages in remix-run/react-router: TypeScript (72.3% of code), YAML (14.5% of code), TSX (9.5% 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 af3dad839023) on 2026-07-27; remix-run/react-router was counted at ref main (commit 8bc59bc7b027) on 2026-07-27. See the counting methodology for ignored directories and analysis options.
Evidence and next steps:
Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.