orpc

Create type-safe oRPC API endpoints with standardized CRUD procedures for Node.js/TypeScript backends.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/ttessarolo/kitchenpizza-zero --skill orpc-ttessarolo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orpc
Source: https://github.com/ttessarolo/kitchenpizza-zero/tree/main/.claude/skills/fcalell-dotfiles-orpc
Command: npx skills add https://github.com/ttessarolo/kitchenpizza-zero --skill orpc-ttessarolo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a consistent, type-safe pattern for building backend API endpoints that reduces runtime errors, prevents resource enumeration, and enforces authorization and tenant scoping across CRUD operations.

Core Features & Use Cases

  • Procedure templates for read, create, update, delete, and list operations with pagination and search.
  • Middleware composition patterns for authentication, authorization, tenant context validation, and input normalization.
  • Robust validation and error handling using Zod schemas, standard error codes (NOT_FOUND, CONFLICT, BAD_REQUEST, FORBIDDEN, INTERNAL_SERVER_ERROR), and defensive tenant-scoped queries.
  • Use Case: Implement a multi-tenant project service that enforces per-tenant access, validates inputs, returns inserted/updated records, and prevents resource enumeration.

Quick Start

Implement an authenticated create procedure for your entity using authProcedure, Zod input validation, tenant context checks, consistent ID/timestamp generation, and .returning() to return the created record.

Frequently Asked Questions about orpc

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

FAQPage Schema
How do I create type-safe API endpoints with oRPC in a TypeScript backend?

Create type-safe API endpoints by applying oRPC procedure templates with Zod input validation to ensure runtime type safety. Standardized CRUD procedures handle read, create, update, and delete operations while returning inserted or updated records.

How does oRPC handle multi-tenant data isolation in CRUD operations?

Multi-tenant data isolation in CRUD operations is handled through middleware composition that enforces tenant context validation. Defensive tenant-scoped queries are applied to prevent resource enumeration and ensure per-tenant access control.

What is the best way to validate inputs and manage errors in an oRPC service?

Validate inputs and manage errors in an oRPC service using Zod schemas for input validation alongside standard error codes like NOT_FOUND, CONFLICT, and BAD_REQUEST. This pattern ensures robust validation and consistent error handling across API endpoints.

Can I use oRPC middleware for authentication and authorization in Node.js backends?

You can use oRPC middleware composition to apply authentication and authorization checks in Node.js backends. Middleware chains validate tenant context, normalize inputs, and enforce per-tenant access control before executing resource operations.

How do I implement a paginated list procedure in oRPC?

Implement a paginated list procedure in oRPC using the provided procedure templates for list operations. These templates include built-in pagination and search patterns, applying tenant-scoped queries to securely retrieve multi-tenant resource collections.

Why does my oRPC create procedure need consistent ID and timestamp handling?

Consistent ID and timestamp handling is required in an oRPC create procedure to standardize resource identification and track creation times across multi-tenant backend services. This ensures data consistency when returning inserted records.