Back to skills
SKILL.md
Orpc Fastify
ASecurityUse oRPC inside a Fastify project.
- 8 stars
- 0 votes
- 0 copies
- 3 views
- Added September 12, 2026
Works with
Security analysis
100/100npx -y skills add ali-master/skills --skill orpc-fastify --agent claude-codeAre you the author of Orpc Fastify?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ali-master-orpc-fastify)---
name: oRPC Fastify Adapter
description: Use oRPC inside a Fastify project.
license: MIT
metadata:
author: Ali Torki
homepage: https://github.com/ali-master
version: "1.0.0"
---
# Fastify Adapter
[Fastify](https://fastify.dev/) integration.
> Fastify parses common request content types by default. oRPC will use the parsed body when available.
## Basic
```ts
import Fastify from 'fastify'
import { RPCHandler } from '@orpc/server/fastify'
import { onError } from '@orpc/server'
const rpcHandler = new RPCHandler(router, {
interceptors: [onError(e => console.error(e))],
})
const fastify = Fastify()
fastify.addContentTypeParser('*', (request, payload, done) => {
// Allow any content type, let oRPC parse manually
done(null, undefined)
})
fastify.all('/rpc/*', async (req, reply) => {
const { matched } = await rpcHandler.handle(req, reply, {
prefix: '/rpc',
context: {}
})
if (!matched) {
reply.status(404).send('Not found')
}
})
fastify.listen({ port: 3000 }).then(() => console.log('Server running on http://localhost:3000'))
```
> The `handler` can be any supported oRPC handler — `RPCHandler`, `OpenAPIHandler`, or a custom handler.
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.