# TanStack/router

🤖 A client-first, server-capable, fully type-safe router and full-stack framework for the web (React and more).

Repository: https://github.com/TanStack/router
Canonical: https://ross.abutalabs.com/products/router
Homepage: https://tanstack.com/router
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, router, routing, javascript, searchparams, search, url, route, typesafe, typescript, state-management, fullstack, rpc, server-functions, ssr, framework
Last push: 2026-08-26T23:36:43+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 2788, "days_push": 7, "days_rel": 7, "gap_med": 0.0, "n_releases_24m": 1913}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 14995, forks 1811 (observed 2026-08-28T04:11:09.038545+00:00)

## What it is
TanStack Router is a fully type-safe, client-first router for React and Solid applications, with file-based routing, nested layouts, loaders with caching, and validated search-param state management. It also powers TanStack Start, a full-stack framework adding SSR, streaming, and type-safe server functions.

## Use cases
- build a type-safe SPA router for React
- manage filters and pagination in URL search params with validation
- add nested layouts and error boundaries to a React app
- prefetch route data before navigation
- build a full-stack SSR app with server functions
- migrate from React Router for better type inference

## When to choose
- you use TypeScript and want end-to-end type safety for routes, params, and search state
- you want file-based routing with generated route trees
- you need loaders with built-in SWR caching and prefetching
- you want URL state treated as a validated, shareable state manager
- you're building a full-stack React or Solid app with TanStack Start

## When to avoid
- you're on a framework with its own built-in router (Next.js, SvelteKit)
- you don't use TypeScript and can't benefit from its core value proposition
- you need a router for frameworks other than React or Solid
- you want a minimal zero-config router without a build plugin or CLI

## Facets
- artifact type: framework
- maturity: active
- function: routing, web-framework, ssr, state-management, rpc, middleware
- domain: web-development, frontend, developer-tools, apis
- platform: cross-platform
- tags: type-safe, file-based-routing, search-params, tanstack-start, react, solid, fullstack-framework, route-loaders, prefetching, nodejs, web-server, typescript

## Member repositories
- TanStack/router (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:09.038545+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:06:47.057620+00:00, confidence not recorded.
  - readme: https://github.com/TanStack/router (fetched 2026-08-28T04:11:09.038545+00:00, sha 102c8943260c)
  - homepage: https://tanstack.com/router (fetched 2026-08-29T08:05:16.396504+00:00, sha 226870b05272)
  - site_page: https://tanstack.com/router/latest/docs/api/router (fetched 2026-08-29T08:05:16.405695+00:00, sha d0d9a7d67a0b)
  - site_page: https://tanstack.com/router/latest/docs/overview (fetched 2026-08-29T08:05:16.401814+00:00, sha 9d7526ded05f)
  - site_page: https://tanstack.com/router/latest/docs/routing/routing-concepts (fetched 2026-08-29T08:05:16.403802+00:00, sha c97b0c8449ca)
  - site_page: https://tanstack.com/router/latest/docs/framework/react/examples/quickstart-file-based (fetched 2026-08-29T08:05:16.407177+00:00, sha 7106c044876d)
  - site_page: https://tanstack.com/router/latest/docs/blog (fetched 2026-08-29T08:05:16.408710+00:00, sha 6251faa7d0dd)
  - site_page: https://tanstack.com/router/latest/docs/framework (fetched 2026-08-29T08:05:16.410234+00:00, sha 2d20a6235543)
  - site_page: https://tanstack.com/router/latest/docs/contributors (fetched 2026-08-29T08:05:16.411656+00:00, sha 0f86f474cefe)
  - site_page: https://tanstack.com/blog (fetched 2026-08-29T08:05:16.399875+00:00, sha f45f670c0ce6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
