TanStack Router
Web framework / library · Free
A typed router for React with data loading and URL parameter validation for complex web interfaces.
Also known as: tanstack/router; tanstack-router; react-router

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Create a route with typed URL parameters
- Connect a route loader to application data and navigation
Example workflow
A possible workflow; this is not a report of hands-on testing.
Create a route with typed URL parameters.
Before you start
- Web application source code and the intended workflow.
- The project's framework and runtime version.
Steps
- Describe the route tree and URL parameter schemas.
- Connect a route loader to application data and navigation.
- Add real data and error handling; check the production build.
Check your result
- The workflow works after a page refresh and with invalid data.
- The bundle, server rendering, and supported browsers suit the project.
Choosing TanStack Router
Create a route with typed URL parameters
Choose this when
- Create a route with typed URL parameters
- Connect a route loader to application data and navigation
Requirements
- Design routes and parameter schemas. Router APIs can be used for SSR; choose Start when you need its full-stack feature set. Check setup against the chosen path's documentation.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
- Route typing does not guarantee server-side resource access rights. SSR can be configured through the TanStack Router API; Start offers a separate full-stack path. Server entry, hydration, and hosting are configured for the chosen option, accounting for the API's documented status.
Frequently asked questions
What can you use for free in TanStack Router?
Code and local use under MIT.
What additional costs might arise with TanStack Router?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for TanStack Router?
MIT for the code; dependencies have separate licenses.
How do you get started with TanStack Router?
Describe the route tree and URL parameter schemas. Connect a route loader to application data and navigation. Add real data and error handling; check the production build.
How does TanStack Router differ from TanStack Start?
Router handles typed routes, parameters, loaders, schema-based search parameter validation, caching, prefetching, and nested layouts. Start builds on Router and offers a full-stack path with full-document SSR, streaming, server functions, and application builds. Start is not required for SSR: Router documentation describes non-streaming and streaming SSR through its API, with server entry and hydration configuration. The SSR guide marks these APIs experimental; check setup and status against current documentation. Do not attribute Start's server functions and full-stack builds to Router alone.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- TanStack Router
- web
- Development