orpc-guide

Document oRPC procedures, routers, middleware, and OpenAPI specifications.

19|Updated Dec 15, 2025
One-click install
npx skills add https://github.com/vcode-sh/vibe-tools --skill orpc-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orpc-guide
Source: https://github.com/vcode-sh/vibe-tools/tree/main/skills/orpc-guide/skills/orpc-guide
Command: npx skills add https://github.com/vcode-sh/vibe-tools --skill orpc-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on using oRPC, a powerful type-safe RPC framework, enabling developers to build robust and efficient APIs with end-to-end type safety.

Core Features & Use Cases

  • RPC & RESTful APIs: Learn to define and implement procedures, routers, and OpenAPI routes.
  • Type Safety: Leverage end-to-end type safety for inputs, outputs, and errors.
  • Framework Integrations: Discover adapters for popular frameworks like Next.js, Express, Hono, and more.
  • Use Case: Build a real-time chat application using oRPC's WebSocket adapters and event iterators, ensuring type safety and efficient communication between client and server.

Quick Start

Use the orpc-guide skill to generate a basic oRPC server setup for a Node.js application.

Frequently Asked Questions about orpc-guide

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

FAQPage Schema
How do I build type-safe APIs with end-to-end type safety in TypeScript?

To build type-safe APIs in TypeScript, oRPC provides a framework for defining procedures, routers, and middleware that ensure end-to-end type safety for inputs, outputs, and errors across client and server boundaries.

Does oRPC work with Express and Next.js for backend API development?

Yes, oRPC works with Express and Next.js by providing framework-specific adapters. It supports integrations for popular frameworks including Hono, enabling seamless backend API development within your existing infrastructure.

How do I migrate from tRPC to oRPC for my RPC backend framework?

You can migrate from tRPC to oRPC by following the framework's dedicated migration guide. This process involves adapting your existing procedures and routers to oRPC's context management and error handling patterns to maintain type safety.

What is the best way to handle errors and context in a type-safe RPC framework?

The best way to handle errors and context in a type-safe RPC framework is using oRPC's built-in context management and structured error handling. These features allow you to define typed error specifications and manage shared context across procedures.

Can I generate OpenAPI specifications from type-safe RPC procedures?

Yes, you can generate OpenAPI specifications from type-safe RPC procedures. oRPC allows you to define OpenAPI routes directly from your procedures, automatically reflecting your TypeScript types into standard API documentation.

How do I set up a real-time chat application using WebSocket adapters in oRPC?

To set up a real-time chat application in oRPC, use the framework's WebSocket adapters and event iterators. This approach ensures type safety and efficient communication between client and server over real-time connections.