name: olore-orpc-latest description: Local orpc documentation reference (latest). oRPC documentation. Use for type-safe RPC APIs, server actions, middleware, context, error handling, OpenAPI integration, and client generation in TypeScript.
orpc Documentation
oRPC is a TypeScript library for building type-safe RPC APIs with end-to-end type safety for inputs, outputs, errors, files, and streaming. It supports OpenAPI generation, framework adapters, server actions, and integrations with TanStack Query, AI SDK, and more.
Quick Reference
| Task | Entry Point |
|---|---|
| Getting started | contents/getting-started.md |
| Define a procedure | contents/procedure.md |
| Build a router | contents/router.md |
| Add middleware | contents/middleware.md |
| Handle errors | contents/error-handling.md |
| Client usage | contents/client/client-side.md |
| OpenAPI / REST | contents/openapi/getting-started.md |
| Framework adapters | contents/adapters/ |
| Server actions | contents/server-action.md |
| Streaming | contents/event-iterator.md |
When to use
Use this skill when the user asks about:
- Defining procedures, routers, middleware, and context in oRPC
- Type-safe error handling with ORPCError
- Server actions and RPC handler setup
- Client-side usage and RPC links
- OpenAPI spec generation and REST routing
- Framework adapters (Next.js, Hono, Express, Fastify, Nuxt, SvelteKit, etc.)
- TanStack Query, AI SDK, Better Auth, or other integrations
- Streaming with event iterators
- File upload and download
- Contract-first development
- Plugins (CORS, batching, retry, rate limiting, etc.)
- Migrating from tRPC
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.