React Router vs TanStack Router
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, React Router is a dependency in 293 (6.0%) and TanStack Router in 52 (1.1%): React Router is 5.6× as common. Among repos created in the last 90 days that use a web frameworks tool, React Router is in 6.6% and TanStack Router in 4.1%, against 11.6% and 1.9% 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
| React Router | 6.0% | |
|---|---|---|
| TanStack Router | 1.1% |
Share of 4,864 JavaScript/TypeScript projects set up for AI coding agents that list each one as a dependency.
Side by side
| React Router | TanStack Router | |
|---|---|---|
| Agent projects that use it | 293 | 52 |
| Rank in web frameworks | #4 | #13 |
| In new repos with a web frameworks tool (last 90 days) | 6.6% | 4.1% |
| In older repos with one | 11.6% | 1.9% |
| Downloads, last 7 days | 57.5M | 25.9M |
| GitHub stars | 56.6K | 15.3K |
| 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 | React Router | TanStack Router |
|---|---|---|---|
| Claude Code | 2,617 | 5.3% | 1.3% |
| GitHub Copilot | 2,350 | 4.3% | 0.9% |
| Cursor | 1,990 | 8.4% | 1.3% |
| Gemini CLI | 422 | 3.6% | 1.2% |
| OpenAI Codex | 409 | 2.9% | 1.5% |
| OpenCode | 304 | 2.0% | 1.6% |
| OpenClaw | 241 | 2.1% | 0% |
| Devin Desktop | 231 | 11.7% | 0% |
| Kiro | 125 | 8.8% | 0% |
| Roo-Code | 90 | 12.2% | 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.
React Router
Declarative routing library for building single-page React applications.
Most often used with it:
| Vite | 90.1% of its projects |
|---|---|
| React | 99.0% of its projects |
| Lucide React | 65.2% of its projects |
| Tailwind CSS | 79.2% of its projects |
| date-fns | 47.1% of its projects |
npm install react-router-dom
TanStack Router
Modern, type-safe routing library with file-based routing for React.
Most often used with it:
| Vite | 96.2% of its projects |
|---|---|
| Lucide React | 86.5% of its projects |
| TanStack Query | 78.8% of its projects |
| React | 98.1% of its projects |
| Class Variance Authority | 71.2% of its projects |
npm install @tanstack/react-router
More matchups
React vs VueNext.js vs AstroVue vs AstroReact vs AngularAstro vs SvelteReact vs SvelteVue vs SvelteNext.js vs Nuxt
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.