Skip to content
Back to skills

Orpc Body Limit

ASecurity

A plugin for oRPC to limit the request body size.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 12, 2026
developmentnodegitapi

Works with

  • api

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add ali-master/skills --skill orpc-body-limit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orpc Body Limit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orpc Body Limit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ali-master-orpc-body-limit/badge)](https://www.skillsdirectory.com/skills/ali-master-orpc-body-limit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: oRPC Body Limit Plugin
description: A plugin for oRPC to limit the request body size.
license: MIT
metadata:
  author: Ali Torki
  homepage: https://github.com/ali-master
  version: "1.0.0"
---

# Body Limit Plugin

The **Body Limit Plugin** restricts the size of the request body.

## Import

```ts
import { BodyLimitPlugin } from '@orpc/server/fetch'
import { BodyLimitPlugin } from '@orpc/server/node'
```

## Setup

```ts
const handler = new RPCHandler(router, {
  plugins: [
    new BodyLimitPlugin({
      maxBodySize: 1024 * 1024, // 1MB
    }),
  ],
})
```

> The `handler` can be any supported oRPC handler — `RPCHandler`, `OpenAPIHandler`, or a custom handler.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.