Astro vs Next.js: source lines of code compared

As of 2026-08-23, withastro/astro contains 211,386 total lines (124,703 code) across 1,560 files, while vercel/next.js contains 877,807 total lines (709,361 code) across 7,978 files as of 2026-08-24. vercel/next.js is about 5.7x the size of withastro/astro by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.

Metricwithastro/astrovercel/next.js
Files1,5607,978
Total lines211,386877,807
Code lines124,703709,361
Comment lines51,82781,417
Blank lines34,85687,029
Languages counted1212

Top languages in withastro/astro: TypeScript (67.2% of code), YAML (20.1% of code), Astro (5.0% of code). Top languages in vercel/next.js: Rust (33.2% of code), TypeScript (30.5% of code), TSX (11.2% of code). TypeScript, JSON, JavaScript appear in both top language lists; YAML, Astro appear only in withastro/astro's top languages; Rust, TSX appear only in vercel/next.js's top languages.

Methodology: both counts come from cached OctoCounts reports generated with tokei. withastro/astro was counted at ref main (commit 99d3d3dbbfa4) on 2026-08-23; vercel/next.js was counted at ref canary (commit 80576037a918) on 2026-08-24. 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.