Skip to main content

Fastify Best Practices

Skill Verified
98

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.

AI Summary

This skill offers detailed explanations and code examples for building Fastify applications, covering core concepts like plugins, routing, validation, error handling, authentication, and deployment. It leverages TypeBox for schema validation and provides insights into performance optimization and security headers.

Installation

npx skills add mcollina/skills

Runs the Vercel skills CLI (skills.sh) via npx — needs Node.js locally and at least one installed skills-compatible agent (Claude Code, Cursor, Codex, …). Assumes the repo follows the agentskills.io format.

25 days ago
1.8k stars
MIT
Updated 6 days ago
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.