💠
TanStack Router logo

TanStack Router

state
utility

TanStack Router offers a fully type-safe routing solution for React applications. This library re-engineers modern routing patterns for better developer experience without sacrificing safety.The router simplifies data fetching, allowing for instant navigations with built-in caching and automatic preloading. It features a versatile loader API that prevents waterfalls during data fetching, keeping users engaged as pages load in parallel.Additionally, TanStack Router provides an advanced search param API that improves state management by enabling schemas, validation, and manipulation of URL search parameters. This capability minimizes reliance on in-memory state and enhances the user experience.With lightweight architecture (only 12kb), it maintains performance and scalability, making it a reliable choice for deploying high-performance applications. Integration with partners like Vercel, Clerk, Convex, and Sentry enhances its value, ensuring security, real-time data interactions, and effective monitoring of applications.

Features

  • 100% Typesafe
  • Parallel Route Loaders
  • 1st-class Search Param APIs
  • Nested/Layout Routes
  • Lightweight (12kb)
  • Suspense + Transitions
  • Strict Navigation
  • Auto-completed Paths
  • Search Param Schemas
  • Search Param Validation
  • Search Param Parsing + Serialization
  • Search Param Pre/Post Processing
  • Structural Sharing
  • Automatic Prefetching
  • Asynchronous Elements
  • Pending Elements
  • Error Boundaries

Stats

GitHub Stars8.2K

NPM Downloads208.0K/week

Details

Latest Version1.81.1

Created at1/14/2019

Updated at11/11/2024

LicenseMIT License

Related Items

Get a monthly E-Mail with the newest developments in UI!