oRPC TanStack Start Adapter
Installation
SKILL.md
TanStack Start Adapter
TanStack Start is a full-stack React framework built on Vite and the Fetch API. For additional context, see the HTTP Adapter guide.
Server
Set up an oRPC server inside TanStack Start using its Server Routes.
// src/routes/api/rpc.$.ts
import { RPCHandler } from '@orpc/server/fetch'
import { createFileRoute } from '@tanstack/react-router'
import { onError } from '@orpc/server'