mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
🤖 A client-first, server-capable, fully type-safe router and full-stack framework for the web (React and more).
https://tanstack.com/router
framework
fullstack
javascript
react
route
router
routing
rpc
search
searchparams
server-functions
ssr
state-management
typesafe
typescript
url
- TypeScript 98.2%
- JavaScript 1.2%
- CSS 0.4%
- Vue 0.1%
- HTML 0.1%
- Created new e2e test app at e2e/react-start/optional-params/
- Tests realistic optional parameter usage patterns:
- Blog category filtering: /blog/{-}
- User profile tabs: /users//{-}
- API versioning: /api/v{-}/{-}
- Comprehensive test coverage for:
- Single and mixed optional parameters
- SSR compatibility with optional parameters
- File-based routing with optional parameters
- TypeScript integration and type safety
- Navigation, URL generation, and edge cases
- Built with TanStack Start + Router for real-world testing similar to TanStack.com
|
History
|
|
|---|---|---|
| .github | ||
| .nx/workflows | ||
| docs | ||
| e2e | ||
| examples | ||
| gpt | ||
| media | ||
| packages | ||
| scripts | ||
| .gitattributes | ||
| .gitignore | ||
| .npmrc | ||
| .nvmrc | ||
| .prettierignore | ||
| AI.md | ||
| CONTRIBUTING.md | ||
| DEBUGGING.md | ||
| eslint.config.js | ||
| knip.json | ||
| labeler-config.yml | ||
| LICENSE | ||
| nx.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| prettier.config.js | ||
| README.md | ||
| tsconfig.json | ||
🤖 Type-safe router w/ built-in caching & URL state management for React!
Enjoy this library? Try the entire TanStack! React Query, React Table, React Charts, React Virtual
Visit tanstack.com/router for docs, guides, API and more!
Partners
Quick Features
- 100% TypeSafe
- Route Defs
- Navigation
- Relative Navigation
- Search Params
- Path Params
- Loaders
- 1st Class Search Params
- Schemas + Validation
- Parsing + Serialization
- Immutable
- Structural Sharing
- Pre/Post Processing
- Built-in Caching
- Stale-While-Revalidate
- Max-Age
- Auto Garbage Collection
- Invalidation
- Prefetching
- Automatic Prefetching
- Transitions
- Error Boundaries
- Code Splitting
- Layout Routes
- Easy Integration w/ external caches and storage (eg. React Query, Apollo, SWR, RTKQuery)
Example Usage
To run example React projects with Tanstack Router, see CONTRIBUTING.md
