tanstack-start
Installation
SKILL.md
TanStack Start
File-Based Routing
Routes live in src/routes/. The route tree auto-generates to src/routeTree.gen.ts - commit this file (required for type-checking).
Route Types
__root.tsx- Root layout, wraps all routesindex.tsx- Index route for a path segmentdemo.tsx- Layout route wrapping alldemo/*.tsxchildren (uses<Outlet />)demo/*.tsx- Child routes rendered inside parent layout$param.tsx- Dynamic route segment
Layout Routes
Create foo.tsx alongside foo/ directory to wrap child routes: