0
Fork 0
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
  • TypeScript 98.2%
  • JavaScript 1.2%
  • CSS 0.4%
  • Vue 0.1%
  • HTML 0.1%
Find a file
Sheraff b01bb76ee3
chore(compiler): require Node with require(esm) for the CommonJS builds, and say what changes in the changesets
`yuku` is ESM-only and the CommonJS builds of router-utils, router-plugin
and router-generator (and the `tsr` binary) `require()` it: Node loads an
ES module through `require()` without a flag only from 20.19 and 22.12
(23 and later always). `engines` of those packages, and of router-cli,
now say `^20.19.0 || >=22.12.0` instead of `>=20.19`, which admitted
21 and 22.0–22.11, where a `webpack.config.js` requiring the plugin throws
ERR_REQUIRE_ESM. Loading yuku through a dynamic `import()` instead would
make the synchronous parse API asynchronous, so the range is the fix.

The Start and router-plugin changesets open with what changes for an app
that upgrades: every server function id changes, `generateFunctionId`
receives the stable name, production refuses HTTP calls to server
functions no client module imports, unparsable modules fail the client
build, esbuild refuses code splitting, the removed experimental hooks,
the one-time route tree formatting change, and the Node range.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
History 2026-10-25 23:56:10 +01:00
.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 Router

TanStack Router

A modern router designed for type safety, data‑driven navigation, and seamless developer experience.

  • End‑to-end type safety (routes, params, loaders)
  • Schema‑driven search params with validation
  • Built‑in caching, prefetching & invalidation
  • Nested layouts, transitions & error boundaries

Read the Router Docs →

TanStack Start

TanStack Start

A full‑stack framework built on Router, designed for server rendering, streaming, and production‑ready deployments.

  • Full‑document SSR & streaming
  • Server functions & end‑to‑end type safety
  • Deployment‑ready bundling & builds
  • All the power of TanStack Router, plus full‑stack features

Read the Start Docs →


npm downloads GitHub stars Bundle size

semantic-release Best of JS Follow @TanStack

Get Involved

Partners

CodeRabbit Cloudflare Netlify
Neon Clerk Convex
Sentry Prisma Strapi
Router & you?

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 CHAT

Explore the TanStack Ecosystem

… and more at TanStack.com »