nextjs-to-tanstack
Installation
SKILL.md
Next.js to TanStack Start Migration
Core Philosophy
- Explicit over magic — TanStack Start has no
use client/use serverdirectives, no implicit RSC boundaries, no opaque caching layers. Server code is explicitly declared withcreateServerFn()and routeloaderfunctions. - Deploy anywhere — Nitro abstracts all platform differences. Same codebase deploys to Vercel, Cloudflare Workers, AWS Lambda, Bun, Deno, or a $20/mo VPS. No vendor lock-in.
- Type safety end-to-end — Route params, loader data, search params, and server function return types are all inferred by TypeScript. Invalid routes are compile errors.
- Client-first, server-capable — All components are standard React. Server capabilities are added explicitly, not assumed by default. The mental model is a React SPA that can optionally fetch data on the server.