Skip to content
Back to skills

Orpc Express

ASecurity

Use oRPC inside an Express.js project.

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

Works with

  • api

Security analysis

A100/100

Scanned September 12, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Orpc Express?

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

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

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 Express.js Adapter
description: Use oRPC inside an Express.js project.
license: MIT
metadata:
  author: Ali Torki
  homepage: https://github.com/ali-master
  version: "1.0.0"
---

# Express.js Adapter

[Express.js](https://expressjs.com/) integration.

> Express's [body-parser](https://expressjs.com/en/resources/middleware/body-parser.html) handles common content types and oRPC will use the parsed body. But it doesn't support [Bracket Notation](/docs/openapi/bracket-notation). Register body-parsing middleware **after** your oRPC middleware or only on non-oRPC routes.

## Basic

```ts
import express from 'express'
import cors from 'cors'
import { RPCHandler } from '@orpc/server/node'
import { onError } from '@orpc/server'

const app = express()
app.use(cors())

const handler = new RPCHandler(router, {
  interceptors: [onError(e => console.error(e))],
})

app.use('/rpc{/*path}', async (req, res, next) => {
  const { matched } = await handler.handle(req, res, {
    prefix: '/rpc',
    context: {},
  })

  if (matched) return
  next()
})

app.listen(3000, () => console.log('Server listening on port 3000'))
```

> The `handler` can be any supported oRPC 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.