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 StartedTanStack 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.
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.
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.
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:
Pop in a Router component and start slinging some routes. Let's see it in action!