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%
`routerRuntimeFiles`, the stand-in `@tanstack/react-router` of apps with routes (route creation, child linking, lazy loading, `sideEffects: false`), is gone: the apps resolve the real built `@tanstack/react-router` (a dependency of this package, built by `^build`) like any dependency, as the `realRouter` dev servers already did. `realRouter` is gone with it (always on). `startRuntimeLinks`/`linkStartRuntime` use the compiler-test-utils workspace-packages helper. Scripts that called a split component as a function render through the real router and React instead: every app gets `harness/render.ts` (`renderPath(routeTree, pathname)`: `createRouter`, `router.load()`, `<RouterProvider>` to HTML; plus React's `createElement`/`renderToString` for a loaded component on its own), which a test entry re-exports. Rows: S10 (build-harness, start-build-options, start-build-route-hmr), S47's runtime observation half (page HTML, not a component call), the source-map stack now comes from React rendering the loaded component. start-build-options: the hand-written router `index.d.ts` is deleted; the Register checks type-check against the real router declarations (verified: the test passes with them, and `Equal<any, 'ROUTER'>` would fail if the import did not resolve). hydrate-build.test.ts (A3b's file): its stand-in router no longer derives from the harness's; the route creation moved into its own stand-in block (W2-h replaces the hydrate stand-ins with the real packages). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> |
History
|
|
|---|---|---|
| .agents/skills | ||
| .changeset | ||
| .devcontainer | ||
| .github | ||
| .nx/workflows | ||
| _artifacts | ||
| benchmarks | ||
| docs | ||
| e2e | ||
| examples | ||
| gpt | ||
| media | ||
| packages | ||
| scripts | ||
| skills/bundle-size-optimization | ||
| .coderabbit.yaml | ||
| .gitattributes | ||
| .gitignore | ||
| .npmrc | ||
| .nvmrc | ||
| .prettierignore | ||
| AGENTS.md | ||
| CONTRIBUTING.md | ||
| DEBUGGING.md | ||
| eslint.config.js | ||
| how-to-guides-implementation-plan.md | ||
| how-to-testing-plan.md | ||
| knip.json | ||
| labeler-config.yml | ||
| LICENSE | ||
| nx.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| prettier.config.js | ||
| README.md | ||
| top-10-how-to-guides.md | ||
| tsconfig.json | ||
TanStack RouterA modern router designed for type safety, data‑driven navigation, and seamless developer experience.
Read the Router Docs → |
TanStack StartA full‑stack framework built on Router, designed for server rendering, streaming, and production‑ready deployments.
Read the Start Docs → |
Get Involved
- We welcome issues and pull requests!
- Participate in GitHub discussions
- Chat with the community on Discord
- See CONTRIBUTING.md for setup instructions
Partners
|
|
|
|
|
|
|
|
|
|
|
|
We're looking for TanStack Router & Start Partners to join our mission! Partner with us to push the boundaries of TanStack Router & Start and build amazing things together.
LET'S CHATExplore the TanStack Ecosystem
- TanStack Config – Tooling for JS/TS packages
- TanStack DB – Reactive sync client store
- TanStack DevTools – Unified devtools panel
- TanStack Form – Type‑safe form state
- TanStack Pacer – Debouncing, throttling, batching
- TanStack Query – Async state & caching
- TanStack Ranger – Range & slider primitives
- TanStack Store – Reactive data store
- TanStack Table – Headless datagrids
- TanStack Virtual – Virtualized rendering
… and more at TanStack.com »