oRPC Request Validation Plugin

Validate API requests before server processing using contract-first validation.

8|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/ali-master/skills --skill orpc-request-validation-plugin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oRPC Request Validation Plugin
Source: https://github.com/ali-master/skills/tree/main/skills/orpc-request-validation
Command: npx skills add https://github.com/ali-master/skills --skill orpc-request-validation-plugin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @orpc/client/fetch, @orpc/contract/plugins, and includes scripts (resource) components.

What problem does it solve?

Prevents invalid requests from reaching your server, enhancing the reliability of your applications.

Core Features & Use Cases

  • Pre-Server Validation: Validates requests before they hit the server.
  • Contract-First Development: Designed for contract-first applications.
  • Use Case: Ensures that your API receives only well-formed requests, improving data integrity and security.

Quick Start

Import the RequestValidationPlugin and include it in your RPCLink configuration.

Frequently Asked Questions about oRPC Request Validation Plugin

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

FAQPage Schema
How does pre-server request validation improve API security?

Pre-server request validation improves API security by blocking invalid requests before they reach your server, ensuring only well-formed data is processed to maintain data integrity and reliability.

How do I add input sanitization to an oRPC client fetch configuration?

To add input sanitization to an oRPC client fetch configuration, import the RequestValidationPlugin and include it directly within your RPCLink configuration to validate requests client-side.

Can I use this request validation plugin for contract-first API development?

Yes, you can use this plugin for contract-first API development. It is specifically designed for contract-first applications to enforce strict input validation and maintain API integrity.

Do I need @orpc/contract/plugins to implement server validation?

You need @orpc/contract/plugins along with @orpc/client/fetch to implement server validation, providing the necessary contract definitions and client-side fetch integration for the plugin.

What is the best way to block invalid requests in a contract-first application?

The best way to block invalid requests in a contract-first application is using a pre-server validation plugin, which intercepts malformed data at the client level to prevent server-side processing errors.