oRPC Documentation
oRPC documentation. Use for type-safe RPC APIs, server actions, middleware, context, error handling, OpenAPI integration, and client generation in TypeScript.
Quick Reference
| Task | Entry Point |
|------|-------------|
| Getting started | contents/getting-started.mdx |
| Procedures, routers, context, middleware | contents/procedure.mdx, contents/router.mdx, contents/context.mdx, contents/middleware.mdx |
| Adapters (Next.js, Hono, Node HTTP, ...) | contents/adapters/index.mdx |
| Clients and links | contents/client/index.mdx, contents/rpc/link.mdx |
| Contract-first | contents/contract-first.mdx, contents/contract/ |
| OpenAPI | contents/openapi/index.mdx |
| Plugins | contents/plugins/index.mdx |
| Migrations (tRPC, v1) | contents/migrations/index.mdx |
| API reference | contents/api-reference.mdx |
When to use
Use this skill when the user asks about:
- Defining type-safe oRPC procedures, routers, context, and middleware
- Error handling (ORPCError), event iterators/SSE, file upload and binary data
- Server adapters and framework setup (Next.js, Nuxt, Hono, Express, Cloudflare, WebSocket)
- Contract-first development and OpenAPI generation or clients
- Plugins (CORS, batch, retry, validation) and integrations (TanStack Query, Zod, Better Auth, OpenTelemetry)
- Migrating from tRPC or oRPC v1
How to find information
- First, read
TOC.mdfor complete file listing organized by directory - Identify relevant section based on user's question
- Read specific files for details
TOC.md contains all files organized by directory - always check it first.