TanStack Logo

TanStack Router BETA

Modern and scalable routing for React applications

A fully type-safe router for React with built-in data fetching, caching, first-class search-param APIs and client-side cache friendly design.

Get Started

Typesafe & powerful, yet familiarly simple

TanStack Router builds on modern routing patterns made popular by other tools, but has been re-engineered from the ground up to be 100% typesafe without compromising on DX. You can have your cake and eat it too!

Built-in Data Fetching, Caching & Library-Friendly

Hoist your data fetching and avoid waterfalls with TanStack Router's loader API that comes with built-in stale-while-revalidate caching. Need something more custom? Router's API is designed to work with client-side caching! Your users will notice the difference when your pages load quickly from the server AND stay up to date.

Search Param APIs to make your state-manager jealous

Instead of throwing you to the wolves, TanStack Router outfits you with state-manager-grade search param APIs. With schemas, validation, full type-safety and pre/post manipulation you'll wonder why you're not storing everything in the URL. Goodbye in-memory state 👋!

Feature Rich and Lightweight

Behold, the obligatory feature-list:

100% Typesafe Built-in Caching 1st-class Search Param APIs Nested/Layout Routes Lightweight (10kb) Parallel Route Loaders Route Actions Strict Navigation Auto-completed Paths Search Param Schemas Search Param Validation Search Param Parsing + Serialization Search Param Pre/Post Processing Structural Sharing Stale-While-Revalidate / Max-Age Auto Garbage Collection Auto Invalidation Automatic Prefetching Atomic Transitions Asynchronous Elements Pending Elements Error Boundaries Code Splitting
This ad helps us keep the lights on 😉

Take it for a spin!

Create a route, pop in a Router, and start slingin' some code!

Sponsors

Partners

Router You?
We're looking for a TanStack Router OSS Partner to go above and beyond the call of sponsorship. Are you as invested in TanStack Router as we are? Let's push the boundaries of Router together!
Let's chat
Wow, you've come a long way!
Only one thing left to do...
Get Started!
© 2023 Tanner Linsley