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%
- createIsomorphicFn: named exports read explicitly (P1), the client has
no server implementation (SERVER_IMPL marker), declaredNames assertion on
the neutral name dropped (ruling 2026-10-17); SSR keeps asserting it drops
`./x.client` (ruling 2026-10-18: import-protection-denied names must go),
client asserts it drops `./x.server`. Real runtime instead of a stub.
- clientOnlyJSX: SSR import-absence loop on neutral names dropped; the
libraries the children use throw when called during SSR, so the test
proves the server never evaluates the children (missing coverage 2).
- compiler.test: empty-module test in dev ("a file the user just
emptied"); the client-only result is read inside a function;
invalidateModule tests in dev mode; `var a = b; var b = a` row deleted
(cycle rows at "re-export chain resolution" cover it).
- caller-dead-code: own-name local pin uses `function session() { const
session = ... }`; label and for-init rows dropped.
- known-bugs-start-compiler: computed-member chain pins, top-level-block
alias row, `.bind(null)` pin (rsc renderServerComponent().then() pin
covers the root cause), parameter-shadowing pins (dup of the
every-factory shadowing pin), `fn_createServerFn_handler` row (generated
name), redeclared-var row and computed-member transform pin deleted;
re-export alias pin imports from @tanstack/react-start; Vue pin uses a
plain `<script lang="ts">` block, id `Page.vue?vue&type=script&lang.ts`
(checked in @vitejs/plugin-vue 6.0.5 genScriptCode/attrsToQuery: lang is
in the ignore list and appended as `&lang.ts`).
- preserves-user-code: empty destructuring pin and N3 parenthesized-JSX
pins (incl. the Hydrate fallback one) deleted; the parenthesized-JSX
control stays.
- factories: wrapped-chain table rewritten to valid chains (tsc:
`.server().client()` is TS2339) with parentheses / as any / as unknown as
T / satisfies (16 rows -> 13 passing + wrapped validator rows moved into
the validator pin, same bug, verified red: ./check.server kept); builder
variable control uses `.client()` then `.server()`; isomorphic
wrapped-link pin checks client and SSR only (no provider for a module
without a server fn); callee pin keeps `as any` only; aliased re-export
of createClientOnlyFn checked by behaviour on the server; string export
name row deleted. Links read from Start's real createMiddleware options.
- known-bugs-route-options: prerender pins and their controls moved to
tests/outside-compiler-corpus/prerender-route-options.test.ts (ruling
E1 ASK-2).
ASK-1 (ruling 2026-10-18): SSR import assertions on `.client` names kept
(factories, import-forms, KB ssr declaration control and typeof pin).
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 »