---
title: "tRPC - Adapter: Fastify - Air Market"
description: "You have a tRPC API and want to run it on Fastify. This covers plugging tRPC in as a Fastify plugin, setting the path prefix, router, context, and error handling, and turning on WebSocket subscriptio…"
canonical: "https://airmarket.ai/app/adapter-fastify"
---

[Air Market](/) / [Developer Tools](/category/devtools) / tRPC - Adapter: Fastify

Skill by [tRPC](/@trpc)

# tRPC - Adapter: Fastify

Serve your tRPC API from a Fastify server

## What this does

You have a tRPC API and want to run it on Fastify. This covers plugging tRPC in as a Fastify plugin, setting the path prefix, router, context, and error handling, and turning on WebSocket subscriptions. It needs a recent Fastify version.

### Top 3 things it does for you

- Mount my tRPC router in Fastify
- Set up WebSocket subscriptions
- Handle errors with a type-safe onError

## Information

**tRPC - Adapter: Fastify at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [tRPC](/@trpc) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 5 KB |
| Licence | MIT |
| Repository | [trpc/trpc](https://github.com/trpc/trpc/tree/23c723cfeaf07da28a52a5c35c3dcccf96a47578/packages/server/skills/adapter-fastify) |
| GitHub stars | 40,541 (as of Nov 2026) |
| Installs | 58, counted by skills.sh (Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of tRPC - Adapter: Fastify and flagged nothing. AIR's verdict: **safe**.

**What tRPC - Adapter: Fastify's check was run against**

|  |  |
| --- | --- |
| Commit | 23c723cfeaf07da28a52a5c35c3dcccf96a47578 |
| Content hash | 7a1e2a2fa61adfecf45e0f312d9b43c41d1f03eb4898a5d94db0bbc6b9060b3c |
| Files read | [Browse the files at this exact commit](https://github.com/trpc/trpc/blob/23c723cfeaf07da28a52a5c35c3dcccf96a47578/packages/server/skills/adapter-fastify/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for tRPC - Adapter: Fastify](/security/adapter-fastify)

## About tRPC - Adapter: Fastify

Mounts tRPC as a Fastify plugin using fastifyTRPCPlugin from @trpc/server/adapters/fastify, with configuration for the prefix and trpcOptions: router, createContext, and onError.

WebSocket subscriptions are enabled with useWSS and @fastify/websocket, and routerOptions.maxParamLength is set for batch requests. FastifyTRPCPluginOptions gives a type-safe onError, and CreateFastifyContextOptions provides req and res.

It has a minimum Fastify version requirement.

## What's inside

- SKILL.md - instructions

## Questions

### Is tRPC - Adapter: Fastify safe to install?

AIR scanned this exact version of tRPC - Adapter: Fastify and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit 23c723cfeaf0, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/adapter-fastify.

### How do I install tRPC - Adapter: Fastify?

Open https://airmarket.ai/app/adapter-fastify on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/trpc/trpc/tree/23c723cfeaf07da28a52a5c35c3dcccf96a47578/packages/server/skills/adapter-fastify. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by tRPC](/@trpc)

---

Canonical URL: <https://airmarket.ai/app/adapter-fastify>
