start-core/server-routes
OfficialDefine server API routes alongside app routes.
AuthorTanStack
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Organizing server-side API endpoints alongside UI routes by using the server property on createFileRoute.
Core Features & Use Cases
- Server routes are API endpoints defined alongside app routes in the src/routes directory. They use the server property on createFileRoute to handle raw HTTP requests and expose GET, POST, PUT, DELETE handlers.
- Supports per-handler middleware, request parsing, and response helpers; provides a consistent routing model with parameter and context handling.
- Useful for building API backends that live next to UI routes, enabling cohesive data fetching and SSR patterns.
Quick Start
Create a file under src/routes, export a Route with createFileRoute('/path') and define server handlers (GET/POST, etc.) to implement the API.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: start-core/server-routes Download link: https://github.com/TanStack/router/archive/main.zip#start-core-server-routes Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.