Skip to content
You are reading the v2 docs, currently in beta.V1 docs
oRPC
Esc
↑↓navigate↵open⌘Jpreview
On this page

Integrations

Use oRPC with the tools around it: Zod, Valibot, ArkType, TanStack Query, SWR, Next.js, NestJS, MCP, the AI SDK, OpenTelemetry, Better Auth, and more.

Integrations connect oRPC to the libraries you already use. To run oRPC inside a framework or runtime, see Adapters. For community packages, see Ecosystem.

Schema Validation

Any Standard Schema library works for validation as is. The Zod, Valibot, and ArkType integrations add JSON Schema converters for OpenAPI generation and Smart Coercion.

Data Fetching

  • TanStack Query: query and mutation options for any TanStack Query framework.
  • SWR: keys, fetchers, and mutators for React.
  • Pinia Colada: query and mutation options for Vue.
  • Next.js: server functions, form actions, and React hooks.

Frameworks and Libraries

  • NestJS: implement oRPC contracts as NestJS controllers.
  • tRPC: convert tRPC routers into oRPC routers.
  • Effect: write handlers with Effect and call clients as effects.
  • Better Auth: Better Auth sessions in context and middleware.
  • Hibernation: let servers sleep, as with Cloudflare’s WebSocket Hibernation, without dropping connections.

AI

  • MCP: expose procedures as tools for AI agents.
  • AI SDK: stream AI SDK responses over oRPC and turn procedures into tools.
  • TanStack AI: stream TanStack AI chats over oRPC.

Observability

Testing

  • MSW: mock procedures at the network level with typed handlers.

Last updated on

Was this page helpful?