tanstack-start-api-routes

Installation
SKILL.md

TanStack Start API Routes (Server Routes)

TanStack Start allows you to create API endpoints using the server property on routes. These run server-side and handle raw HTTP requests.

When to Use

  • Building REST API endpoints
  • Handling webhooks
  • File uploads/downloads
  • Any endpoint that returns data (not HTML)

Note: For RPC-style server logic callable from components, use server functions instead. Server routes are for traditional HTTP endpoints.

Basic Server Route

// src/routes/api/hello.ts
import { createFileRoute } from '@tanstack/react-router';
Related skills
Installs
1
GitHub Stars
2
First Seen
9 days ago