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%
GEN-02: the 59 route tree snapshots (and the edited/scaffolded source
snapshots of file-modification and custom-scaffolding) are replaced:
- generator.test.ts: every fixture's tree is loaded by the real router;
its routes (id, full path, parent, route file, files loaded lazily with
the route) must equal generator-fixtures.ts, reviewed against the file
naming and virtual route docs. Edited route files: expectOnlyOwnedEdits +
constructor/id; custom scaffolds: the template's statements, and their
pages render 'Hello <path>!'; header/footer lines of append-and-prepend.
- integration/fixture-types.test.ts (new slow tier, test:integration):
J1.13, each tree types the same ids, full paths and parents. One
TypeScript program per tree (each augments the router types globally;
one shared program mixes them up), 9.9 s at 1 worker, so not in the fast
tier. Two fixtures are .fails pins for the group layout types bug
(inferFullPath, same as the real-router.test.ts pin).
- generator-fixture.ts: the fixtures' configuration and preparation,
shared by both, runnable on a copy.
- Fixture inputs made valid modules: 13 root files called
createFileRoute/createRootRoute without importing it or exported no
Route; 4 virtual roots were createFileRoute('/') (types: a root route
must be createRootRoute, which also made the parity check fail).
- The virtual-physical-empty-path-conflict-root fixture is deleted: its
case is the outside-corpus characterisation
outside-compiler-corpus/virtual-routes.test.ts (GEN-30, W2-e).
- The virtualGetRouteNodes test is deleted (unused exported helper, ruling
2026-10-17; physical mounts are covered through the generator and the
real watcher in router-plugin integration tests).
- GEN-29: conflict errors through the diagnostics oracle.
- CRLF: LF and CRLF sources give the same routes (not tree bytes).
Co-Authored-By: Claude Opus 5.5 <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 »