Fastify Best Practices
Guides development of Fastify Node.js backend servers and REST APIs using TypeScript or JavaScript. Use when building, configuring, or debugging a Fastify application — including defining routes, implementing plugins, setting up JSON Schema validation, handling errors, optimising performance, managing authentication, configuring CORS and security headers, integrating databases, working with WebSockets, and deploying to production. Covers the full Fastify request lifecycle (hooks, serialization, logging with Pino) and TypeScript integration via strip types. Trigger terms: Fastify, Node.js server, REST API, API routes, backend framework, fastify.config, server.ts, app.ts.
- Type
- Skill
- Author
- mcollina
- Category
- Backend
- GitHub stars
- 2.0K
- Installs
- 82.5K
- Last updated
- October 27, 2026
Install
npx skills add https://github.com/mcollina/skills --skill fastify-best-practicesUse cases
- Set up a new Fastify server with routes, plugins, and JSON Schema validation.
- Debug request lifecycle issues involving hooks, serialization, or Pino logging.
- Add authentication, CORS, and security headers to an existing Fastify API.
Frequently Asked Questions
Does it cover TypeScript?
Yes, it covers TypeScript integration via strip types as well as JavaScript.
What parts of Fastify does it address?
Routes, plugins, JSON Schema validation, error handling, performance, authentication, CORS and security headers, databases, WebSockets, deployment, and the full request lifecycle.
What triggers this skill?
Terms like Fastify, Node.js server, REST API, API routes, backend framework, fastify.config, server.ts, and app.ts.
About this skill
Guides development of Fastify Node.js backend servers and REST APIs in TypeScript or JavaScript. It covers routes, plugins, JSON Schema validation, error handling, performance, authentication, CORS and security headers, databases, WebSockets, and deployment, along with the full request lifecycle and Pino logging. Use it when building, configuring, or debugging a Fastify application.
Summary written with AI assistance from the project's public description.
Categories
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh