tanstack-router

Solid

TanStack Router type-safe file-based routing for React. Use for SPAs, TanStack Query integration, Cloudflare Workers, or encountering devtools, type safety, loader, Vite bundling errors.

API & Backend 162 stars 25 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
74
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# TanStack Router Skill Build type-safe, file-based routing for React SPAs with TanStack Router, optimized for Cloudflare Workers deployment. --- ## When to Use This Skill **Auto-triggers when you mention:** - "TanStack Router" or "type-safe routing" - "file-based routing" or "route configuration" - "React routing" with TypeScript emphasis - "route loaders" or "data loading in routes" - "Cloudflare Workers routing" **Use this skill when:** - Building SPAs with type-safe navigation - Implementing file-based routing (like Next.js) - Need route-level data loading - Integrating routing with TanStack Query - Deploying to Cloudflare Workers - Want better TypeScript support than React Router --- ## Quick Start ### Installation ```bash bun add @tanstack/react-router @tanstack/router-devtools bun add -d @tanstack/router-plugin ``` **Latest version:** v1.134.13 (verified 2025-11-07) ### Vite Configuration ```typescript // vite.config.ts import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import { TanStackRouterVite } from '@tanstack/router-plugin/vite' export default defineConfig({ plugins: [ TanStackRouterVite(), // MUST come before react() react(), ], }) ``` ### Basic Setup ```typescript // src/routes/__root.tsx import { createRootRoute, Outlet } from '@tanstack/react-router' export const Route = createRootRoute({ component: () => ( <div> <nav> <Link to="/">Home</Link> <Link to="/about">About</Link> ...

Details

Author
secondsky
Repository
secondsky/claude-skills
Created
6 months ago
Last Updated
2 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

tanstack-router

TanStack Router file-based routing patterns including route creation, navigation, loaders, type-safe routing, and lazy loading. Use when creating routes, implementing navigation, or working with TanStack Router.

3 Updated today
Squirrelfishcityhall150
AI & Automation Listed

tanstack-router-patterns

Auto-enforce TanStack Router file-based routing conventions. Activates when creating routes, configuring navigation, handling route params, or working with search params in React SPA applications.

3 Updated 1 weeks ago
smicolon
Web & Frontend Solid

bun-tanstack-start

TanStack Start full-stack React framework with Bun runtime. Use for TanStack Router, server functions, vinxi, or encountering SSR, build, preset errors.

162 Updated 2 weeks ago
secondsky
AI & Automation Listed

tanstack-router-best-practices

TanStack Router best practices for type-safe routing, data loading, search params, and navigation. Activate when building React applications with complex routing needs.

11 Updated today
wordbricks
Data & Documents Listed

tanstack

Build type-safe React apps with TanStack Query (data fetching, caching, mutations), Router (file-based routing, search params, loaders), and Start (SSR, server functions, middleware). Use when working with react-query, data fetching, server state, routing, search params, loaders, SSR, server functions, or full-stack React. Triggers on tanstack, react query, query client, useQuery, useMutation, invalidateQueries, tanstack router, file-based routing, search params, route loader, tanstack start, createServerFn, server functions, SSR.

29 Updated 6 days ago
tenequm