TanStack Router BETA

Modern and scalable routing for applications

A fully typesafe router with first-class search-param APIs and built-in caching, built for JS/TS, React, Preact, Solid, Vue and Svelte

Get Started

Typesafe & powerful, yet familiarly simple

TanStack Router builds on modern routing patternsĀ made popular by tools like React Router, Next.js and Remix, but is architected from the ground up to be 100% typesafe and extremely powerful all while using less code.

Fetch responsibly with built-in caching

Ephemeral say what? When you fetch on the client, it's cache or die. TanStack Router comes with built-in caching, custom cache timings, and even automatic preloading. Your users will notice the difference while you write less code and ship more features.

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.

Framework Agnostic & Feature Rich

TanStack Router's core API is very portable and framework-independent while still prioritizing the ergonomics of frameworks via adapters. 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

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

Sponsors

This ad helps us keep the lights on šŸ˜‰

Take it for a spin!

Pop in a Router component and start slinging some routes. Let's see it in action!

Wow, you've come a long way!
Only one thing left to do...
Get Started!
Ā© 2022 Tanner Linsley