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%
- tests/tsconfig.json (extends the package tsconfig, adds src/*.d.ts): every test:types:tsXX script also runs `tsc -p tests`; test:eslint lints ./src ./tests (the typed parser finds tests/tsconfig.json). - The type tests (*.test-d.tsx) leave the unit runtime run: they assert nothing at runtime; test:types checks them. - HYD-33: createServerComponent.test-d.tsx and renderServerComponent.types.test-d.tsx rewritten on the public entry (src/index): types inferred from real createCompositeComponent / renderServerComponent calls as in guide/server-components.md (slots, render prop args, component props, nested composites, renderables). Before: renderServerComponent.types.test-d.tsx imported two types that no longer exist (TS2724) and createServerComponent.test-d.tsx:86 failed (TS2344) - never noticed because nothing type-checked them; the other rows compared `null as unknown as JSX.Element` with JSX.Element. Verified: tsc 5.6-5.9, 6.0 and 7.0 pass; a wrong inference (`title` as number, ReactNode as number) and three neutralised @ts-expect-error inputs each make `tsc -p tests` fail. - HYD-32: the two createRscProxy tests that probed React with a hand-made Proxy (and pinned the list of props React reads) replaced with real createRscProxy rendering (inline, nested selection, composite). - Lint fixes in the runtime tests (imports, for(;;), nullable casts). 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 »