TanStack Router 是一个类型安全、数据驱动的 React 路由库,内置缓存、预取和嵌套布局;TanStack Start 将其扩展为支持 SSR 的全栈框架。

Stars

14,861

7 天增长

暂无数据

Fork 数

1,783

开放 Issue

288

开源协议

MIT

最近更新

2026-07-27

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它为路由、参数和加载器提供端到端的类型安全,结合 schema 驱动的搜索参数验证与集成缓存,在 React 路由生态中脱颖而出,并拥有强大的社区支持。

适合谁使用

  • 追求类型安全路由的 React 开发者
  • 专注 TypeScript 的前端团队
  • 构建 SSR 应用的全栈开发者
  • 希望减少数据获取与缓存样板代码的团队

典型使用场景

  • 构建复杂的单页应用,实现类型安全的导航与数据加载
  • 开发支持服务端渲染和流式传输的全栈 Web 应用
  • 实现包含错误边界的嵌套布局与过渡动画
  • 通过自动预取和路由数据缓存优化应用性能

项目优势

  • 端到端类型安全减少路由、参数和加载器相关的运行时错误
  • 内置缓存、预取与无效化机制提升性能
  • Schema 驱动的搜索参数验证确保 URL 状态一致性
  • 嵌套布局与过渡简化复杂 UI 结构

使用前须知

  • 主要针对 React 应用设计,限制了其他框架的使用
  • 全栈功能需要依赖 TanStack Start,增加了额外依赖
  • 对不熟悉类型安全路由模式的开发者存在学习曲线

README 快速开始

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

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 →

Become a Sponsor!

Get Involved

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 CHAT

Explore 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
  • Ta

项目描述

🤖 A client-first, server-capable, fully type-safe router and full-stack framework for the web (React and more).

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

react
精选
react GitHub avatar

react

React is a JavaScript library for building user interfaces with declarative, component-based, and cross-platform design.

Web 开发前端框架
246,741
NUber-dev
精选
NUber-dev GitHub avatar

YTubic

YTubic is a fast, responsive, open-source YouTube Music desktop client for Windows, Linux, and macOS that uses direct InnerTube API communication and aggressive caching to provide instant navigation and playback.

Web 开发前端框架
226
yetone
精选
yetone GitHub avatar

kill-ai-slop

Kill AI Slop is a multilingual field guide and agent skill that catalogues 33 common AI-generated design tells with interactive before-after demos, and provides a tool to scan and fix web projects.

AI 与机器学习AI 智能体
805