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%
Reviewed with five independent read-only passes over the rule; every finding has a regression row. - The copy walk stops at other candidates, effectful clusters, eager readers of state, what the route module's own roots keep alive and type units: each exists once by construction. An exported component reading `Route` is copied again; so is one reading an effectful binding or an object the route module keeps. - A reference inside a module-level function an eager reference calls runs at load (`runsAtLoad`): `readsKeptEagerly`, the placement self-check and verify (e) see a TDZ through `const config = build()`, which the new env rooting had exposed for plain literals. - A function used as a constructor, an `instanceof` or equality operand or through `.prototype` has an identity (`identityUse`): not copied. - A copied export another extracted module reads is imported there from its own module; only chunks copy it. - Provider outputs do not count as needers when homing; a value an extracted module and a provider share lives in the export module. - The env rooting of a shared identity or state is reported (`eager-split:shared`). A primitive constant with a member write is no state. The one-holder invariant lives with placement's self-checks. - The build-time eager-export warning names its cause from the bundler's module graph: split code importing the module under a chunk group that lands with the entry, or an importer through the route file. - Docs: guide, README, SPEC J2.4, KNOWN-BUGS, hydrate planner comment, test comments. Tests: core rows for every finding; fact-check rows for constructors, sentinels and sibling exports; the F5 build matrix gains an exported class; a new matrix groups the route files with the entry on Vite, Rspack, webpack and Rsbuild; Start build and planner rows for an exported class. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> |
History
|
|
|---|---|---|
| .agents/skills | ||
| .changeset | ||
| .devcontainer | ||
| .github | ||
| .nx | ||
| _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 »