Next.js vs Astro
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, Next.js is a dependency in 1,121 (23.0%) and Astro in 118 (2.4%): Next.js is 9.5× as common. Among repos created in the last 90 days that use a web frameworks tool, Next.js is in 39.3% and Astro in 6.6%, against 43.8% and 4.5% of older ones. 1 project lists both, often a sign of a migration or of a monorepo with several apps.
Web frameworks npm Updated Nov 17, 2026
Side by side
| Next.js | Astro | |
|---|---|---|
| Agent projects that use it | 1,121 | 118 |
| Rank in web frameworks | #2 | #6 |
| In new repos with a web frameworks tool (last 90 days) | 39.3% | 6.6% |
| In older repos with one | 43.8% | 4.5% |
| Downloads, last 7 days | 94.4M | 12M |
| GitHub stars | 144K | 64K |
| Last push to its repo | Nov 17, 2026 | Nov 17, 2026 |
| License | MIT | MIT |
| Funding | — | Yes |
| Projects that list both | 1 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | Next.js | Astro |
|---|---|---|---|
| Claude Code | 2,617 | 21.9% | 2.4% |
| GitHub Copilot | 2,350 | 24.0% | 3.0% |
| Cursor | 1,990 | 24.7% | 2.1% |
| Gemini CLI | 422 | 19.0% | 2.1% |
| OpenAI Codex | 409 | 13.7% | 1.2% |
| OpenCode | 304 | 13.8% | 3.0% |
| OpenClaw | 241 | 7.9% | 0% |
| Devin Desktop | 231 | 23.4% | 0% |
| Kiro | 125 | 18.4% | 0% |
| Roo-Code | 90 | 26.7% | 0% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
Next.js
React framework for production with server-side rendering and static generation.
Most often used with it:
| React | 98.7% of its projects |
|---|---|
| Lucide React | 73.3% of its projects |
| Tailwind CSS | 92.9% of its projects |
| clsx | 68.2% of its projects |
| Tailwind Merge | 66.2% of its projects |
npm install next
Astro
Modern static site builder with partial hydration and zero JavaScript by default.
Most often used with it:
| Tailwind CSS | 68.6% of its projects |
|---|---|
| Wrangler | 27.1% of its projects |
| TypeScript | 67.8% of its projects |
| Playwright (JavaScript) | 34.7% of its projects |
| Sharp | 16.9% of its projects |
npm install astro
More matchups
Vue vs AstroAstro vs SvelteNext.js vs NuxtReact vs VueReact vs AngularReact vs SvelteVue vs SvelteReact Router vs TanStack Router
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.