orpc-docs

Guide type-safe oRPC service development with procedures, routers, middleware, and OpenAPI routing.

7|2|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/wenerme/ai --skill orpc-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orpc-docs
Source: https://github.com/wenerme/ai/tree/main/skills/orpc-docs
Command: npx skills add https://github.com/wenerme/ai --skill orpc-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides an organized, practical documentation map for implementing oRPC features correctly, so you can design type-safe RPC endpoints with OpenAPI compatibility across frameworks.

Core Features & Use Cases

  • oRPC core concepts: Procedures, routers, middleware, context, and error handling with patterns for both server and client usage.
  • Streaming & files: Event iterators (SSE), event metadata, and file upload/download guidance using supported types and constraints.
  • OpenAPI-ready development: OpenAPI routing, spec generation, bracket notation, and operational metadata to produce REST endpoints that match your contract.

Quick Start

Use the orpc-docs skill to answer, step-by-step, how to implement a contract-first oRPC procedure with streaming responses and OpenAPI-compatible routing for your target framework.

Frequently Asked Questions about orpc-docs

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

FAQPage Schema
How do I build a type-safe RPC API with oRPC?

To build a type-safe RPC API with oRPC, you define procedures, routers, and middleware to handle context and errors across server and client execution. This approach ensures end-to-end type safety without manual type synchronization.

How does oRPC handle streaming responses using SSE?

oRPC handles streaming responses using Server-Sent Events (SSE) through event iterators. You can define procedures that yield event metadata, enabling continuous data streaming from server to client.

Can I generate OpenAPI specs from a contract-first oRPC project?

Yes, you can generate OpenAPI specs from a contract-first oRPC project. oRPC supports OpenAPI routing, spec generation, and bracket notation to produce REST endpoints that match your contract.

What is the best way to handle file uploads and downloads in oRPC?

The best way to handle file uploads and downloads in oRPC is by using its supported file types and constraints within your procedures. This provides guided handling for transferring files between client and server.

Does oRPC support custom middleware for error handling?

Yes, oRPC supports custom middleware for error handling. You can implement patterns for both server and client usage to intercept, manage, and throw errors consistently across your procedures.

How do I use context sharing between oRPC server and client?

You use context sharing between oRPC server and client by defining context within your procedures and passing it through middleware. This ensures typed data is available throughout the execution lifecycle.