Skip to content
Back to skills

Orpc Fastify

ASecurity

Use oRPC inside a Fastify project.

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

Works with

  • api

Security analysis

A100/100

Scanned September 12, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Orpc Fastify?

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

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

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 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

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.