orpc

Build end-to-end type-safe RPC APIs with oRPC across server, client, and contracts.

1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/rostiSe/mymemory --skill orpc-rostise
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orpc
Source: https://github.com/rostiSe/mymemory/tree/main/.agents/skills/orpc
Command: npx skills add https://github.com/rostiSe/mymemory --skill orpc-rostise

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build end-to-end type-safe RPC APIs using oRPC across server, client, and contracts.

Core Features & Use Cases

  • Create and consume procedures, routers, and contracts with type safety.
  • Integrate with adapters (HTTP, Hono, WebSocket, RN) and tooling (TanStack Query, AI SDK).
  • Apply contract-first workflows and middleware for robust, scalable APIs.

Quick Start

Start by installing @orpc/server and @orpc/client, define a contract or router, create an RPCHandler, and implement a simple procedure.

Frequently Asked Questions about orpc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build end-to-end type-safe RPC APIs with oRPC?

To build type-safe RPC APIs with oRPC, define a contract or router, create an RPCHandler, and implement procedures. This enforces type safety across server, client, and contracts while applying best practices for routers and context.

Can I use oRPC with TanStack Query and AI SDK?

Yes, oRPC integrates with tooling like TanStack Query and AI SDK. You can consume procedures within these tools to maintain end-to-end type safety across your client-side data fetching and AI integration workflows.

What is a contract-first workflow in oRPC?

A contract-first workflow in oRPC involves defining shared contracts before implementation. This approach separates API definitions from server logic, ensuring robust and scalable type-safe integration across different consumers and adapters.

Does oRPC support adapters for Hono, WebSocket, and React Native?

Yes, oRPC supports multiple adapters including HTTP, Hono, WebSocket, and React Native. These adapters enable you to deploy and consume type-safe procedures across diverse server and client environments.

How do I handle errors and context in oRPC procedures?

Handling errors and context in oRPC involves using middleware and built-in best practices. You configure context within routers and procedures to enforce consistent type-safe error handling across server and client boundaries.