Skip to content
Back to skills

Fastify

ASecurity

Fastify schema validation, hooks, plugins, serialization. Use when building Fastify apps.

  • 47 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
testingtypescriptnodetestingapiperformance

Works with

  • api

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add skeletorflet/opencode-supreme-setup --skill fastify --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fastify?

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

Security grade badge for Fastify
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/skeletorflet-fastify/badge)](https://www.skillsdirectory.com/skills/skeletorflet-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: fastify
description: Fastify schema validation, hooks, plugins, serialization. Use when building Fastify apps.
---

## fastify

Build high-performance Node.js APIs with Fastify.

### Schema Validation
- JSON Schema for request validation via `schema` option
- Fastify serializes responses automatically from schema
- Supports Ajv custom validators and formats

### Hooks & Plugins
- Request lifecycle hooks: onRequest, preHandler, onSend, onResponse
- Encapsulated plugin system via fastify-plugin
- Decorators to extend Fastify instance

### Serialization
- Automatic JSON schema-based serialization
- Custom serializers for non-JSON formats
- Higher throughput than JSON.stringify

### TypeScript
- Full TypeScript support with auto-generated types
- Type providers for validation (Zod, TypeBox)
- Strict typing for request/reply

### Best Practices
- Encapsulate routes in plugins
- Use pino logger (built-in)
- Content Type Parser for non-JSON bodies
- Testing with fastify.inject() (no supertest needed)
- Compression via @fastify/compress

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.