Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

TanStack Router

Modern, type-safe routing library with file-based routing for React.

Web frameworks npm MIT

Used in agent projects
75
0.6% of 12,697 public repos built with AI coding agents
Rank in web frameworks
#13 of 26
by use in those projects
Downloads
18.6M
npm, last 7 days, @tanstack/react-router
GitHub stars
15.2K
last push Oct 10, 2026

How TanStack Router is used

TanStack Router is a dependency in 75 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.6%), #13 of 26 in web frameworks. The most used alternative there is React. Projects that use it most often also use Vite (97.3%), Lucide React (84.0%), TanStack Query (80.0%).

Often used with TanStack Router

Vite97.3% of TanStack Router projects · 4.3× more than average
Lucide React84.0% of TanStack Router projects · 4.2× more than average
TanStack Query80.0% of TanStack Router projects · 8.3× more than average
Class Variance Authority72.0% of TanStack Router projects · 5.1× more than average
Zod72.0% of TanStack Router projects · 4.2× more than average
TanStack Router Plugin70.7% of TanStack Router projects · 154.7× more than average
Tailwind Merge70.7% of TanStack Router projects · 4.2× more than average
clsx69.3% of TanStack Router projects · 3.9× more than average

By coding agent

Claude Code1.0% of projects set up for it
Cursor1.0% of projects set up for it
GitHub Copilot0.7% of projects set up for it
OpenAI Codex1.3% of projects set up for it

Share of public repos configured for each agent that list TanStack Router as a dependency.

Install

Packagenpm install @tanstack/react-router
Main stacksTypeScript / JavaScript (72), Next.js (1), Java / Kotlin (1), Rust (1)
Example projectsmiantiao-me/bm.md, tale-project/tale, finitoapp/payky, NathanAB/statuslin.es, salmanrrana/brain-dump

Alternatives to TanStack Router

All web frameworks

Tool Used in agent projectsDownloads / wk GitHub starsLicense
React npm
JavaScript library for building interactive user interfaces with components.
5,510 (43.4%) 186M 251K MIT
Next.js npm
React framework for production with server-side rendering and static generation.
2,861 (22.5%) 66.2M 143K MIT
next-themes npm
Abstraction for managing themes (dark/light mode) in Next.js apps.
1,116 (8.8%) 26.9M 6,333 MIT
React Router npm
Declarative routing library for building single-page React applications.
972 (7.7%) 44.8M 56.6K MIT
Vue npm
Progressive JavaScript framework for building interactive user interfaces.
210 (1.7%) 17.1M 54.6K MIT
Astro npm
Modern static site builder with partial hydration and zero JavaScript by default.
133 (1.0%) 7.1M 63.1K MIT
React Native Web npm
React Native APIs and components for web allowing code sharing between web and mobile.
121 (1.0%) 7.2M 22.1K MIT
Angular npm
Full-featured web framework with TypeScript, dependency injection and RxJS.
104 (0.8%) 5.9M 101K MIT
Is TanStack Router right for your project? Ask AgentGid →