tanstack-start

Create server functions, API routes, and middleware chains for TanStack Start projects.

1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/oakoss/open-saas-kit --skill tanstack-start-oakoss
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tanstack-start
Source: https://github.com/oakoss/open-saas-kit/tree/main/.claude/skills/tanstack-start
Command: npx skills add https://github.com/oakoss/open-saas-kit --skill tanstack-start-oakoss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TanStack Start streamlines building scalable server-side logic by providing structured server functions, API routes, and middleware pipelines.

Core Features & Use Cases

  • Server Functions: define deterministic server-side operations with type-safe handlers.
  • API Routes & SSR: create REST-like endpoints and route-based SSR logic for modern web apps.
  • Middleware Chains: compose middleware to enforce auth, validation, and logging across routes.

Quick Start

Install and configure a TanStack Start project, then implement a sample server function and a route to see SSR and API routing in action.

Frequently Asked Questions about tanstack-start

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create server functions in a TanStack Start project?▼

Server functions in TanStack Start are deterministic server-side operations defined with type-safe handlers. They allow you to securely execute server-only code and manage stateful logic across your web application without exposing implementation details to the client.

What is the best way to build API routes with TypeScript for SSR web apps?▼

Building API routes with TanStack Start involves creating REST-like endpoints with integrated route-based SSR logic. This approach provides structured server-side handling for modern web apps, ensuring type safety and seamless data fetching for server-rendered pages.

Can I compose middleware chains for auth and validation across server routes?▼

Yes, you can compose middleware chains in TanStack Start to enforce authentication, validation, and logging across routes. Middleware pipelines orchestrate server-side logic sequentially, ensuring requests meet specific criteria before reaching API routes or server functions.

Does TanStack Start support both SSR and non-SSR modes for server-side development?▼

TanStack Start supports both SSR and non-SSR modes for server-side development. It structures server functions, API routes, and middleware orchestration to handle environment variables and modular patterns effectively across different rendering strategies.

How do I handle errors and manage environment variables in server functions?▼

TanStack Start provides example-driven guidance for error handling and environment variable management within server functions. It structures server-side operations to securely access environment configurations and gracefully manage runtime errors across middleware chains.