# @tanstack/react-router

> Modern and scalable routing for React applications

Latest version **1.170.46** (published 2026-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tanstack/react-router
pnpm add @tanstack/react-router
yarn add @tanstack/react-router
bun add @tanstack/react-router
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.170.46 |
| Published | 2026-10-22 |
| First published | 2022-10-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.19 |
| Dependencies | 4 |
| Unpacked size | 1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 15283 |
| Author | Tanner Linsley |
| Maintainers | tannerlinsley, alemtuzlak, kevinvandy |
| Keywords | react, location, router, routing, async, async router, typescript |

## Links

- npm: https://www.npmjs.com/package/@tanstack/react-router
- Repository: https://github.com/TanStack/router
- Homepage: https://tanstack.com/router
- Funding: https://github.com/sponsors/tannerlinsley
- npm.io page: https://npm.io/package/@tanstack/react-router

## Dependencies (4)

- [isbot](https://npm.io/package/isbot.md) ^5.1.22
- [@tanstack/history](https://npm.io/package/@tanstack/history.md) 1.162.5
- [@tanstack/react-store](https://npm.io/package/@tanstack/react-store.md) ^0.11.2
- [@tanstack/router-core](https://npm.io/package/@tanstack/router-core.md) 1.171.39

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 1.170.46 (latest) — 2026-10-22
- 1.170.19-pre.0 (pre) — 2026-07-24
- 1.132.0-alpha.25 (alpha) — 2025-09-22
- 0.0.1-beta.286 (beta) — 2023-12-27
- 1.170.45 — 2026-10-16
- 1.170.44 — 2026-10-12
- 1.170.43 — 2026-10-12
- 1.170.42 — 2026-10-10
- 1.170.41 — 2026-09-30
- 1.170.40 — 2026-09-27
- 1.170.39 — 2026-09-23
- 1.170.38 — 2026-09-16
- 1.170.37 — 2026-09-16
- 1.170.36 — 2026-09-13
- 1.170.35 — 2026-09-10
- … 1192 more at https://npm.io/package/@tanstack/react-router/versions

## README

<img src="https://static.scarf.sh/a.png?x-pxid=d988eb79-b0fc-4a2b-8514-6a1ab932d188" />

# TanStack React Router

<picture>
  <source
    media="(prefers-color-scheme: dark)"
    srcset="https://tanstack.com/api/readme/router.png?framework=react&theme=dark"
  />
  <source
    media="(prefers-color-scheme: light)"
    srcset="https://tanstack.com/api/readme/router.png?framework=react"
  />
  <img
    src="https://tanstack.com/api/readme/router.png?framework=react"
    alt="TanStack React Router"
    width="900"
  />
</picture>

🤖 Type-safe router w/ built-in caching & URL state management for React!

<a href="https://twitter.com/intent/tweet?button_hashtag=TanStack" target="\_parent">
  <img alt="#TanStack" src="https://img.shields.io/twitter/url?color=%2308a0e9&label=%23TanStack&style=social&url=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Fbutton_hashtag%3DTanStack">
</a><a href="https://discord.com/invite/WrRKjPJ" target="\_parent">
  <img alt="" src="https://img.shields.io/badge/Discord-TanStack-%235865F2" />
</a><a href="https://npmjs.com/package/@tanstack/react-router" target="\_parent">
  <img alt="" src="https://img.shields.io/npm/dm/@tanstack/router.svg" />
</a><a href="https://bundlephobia.com/result?p=@tanstack/react-router" target="\_parent">
  <img alt="" src="https://badgen.net/bundlephobia/minzip/@tanstack/react-router" />
</a><a href="#badge">
    <img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
  </a><a href="https://github.com/TanStack/router/discussions">
  <img alt="Join the discussion on Github" src="https://img.shields.io/badge/Github%20Discussions%20%26%20Support-Chat%20now!-blue" />
</a><a href="https://bestofjs.org/projects/router"><img alt="Best of JS" src="https://img.shields.io/endpoint?url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=tanstack%2Frouter%26since=daily" /></a><a href="https://github.com/TanStack/router" target="\_parent">
  <img alt="" src="https://img.shields.io/github/stars/tanstack/router.svg?style=social&label=Star" />
</a><a href="https://twitter.com/tan_stack" target="\_parent">
  <img alt="" src="https://img.shields.io/twitter/follow/tan_stack.svg?style=social&label=Follow @TanStack" />
</a><a href="https://twitter.com/tannerlinsley" target="\_parent">
  <img alt="" src="https://img.shields.io/twitter/follow/tannerlinsley.svg?style=social&label=Follow @TannerLinsley" />
</a>

Enjoy this library? Try the entire [TanStack](https://tanstack.com)! [React Query](https://github.com/TanStack/query), [React Table](https://github.com/TanStack/table), [React Charts](https://github.com/TanStack/react-charts), [React Virtual](https://github.com/TanStack/virtual)

## Visit [tanstack.com/router](https://tanstack.com/router) for docs, guides, API and more!

---
_Source: https://npm.io/package/@tanstack/react-router · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
