Aller au contenu principal
Ce contenu n'est pas encore disponible dans votre langue et est affiché en anglais.

Fastify Best Practices

Skill Vérifié
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.

Résumé IA

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

Exécute le CLI skills de Vercel (skills.sh) via npx — nécessite Node.js en local et au moins un agent compatible skills installé (Claude Code, Cursor, Codex, …). Suppose que le dépôt suit le format agentskills.io.

22 days ago
1.8k stars
MIT
Mis à jour le 4 days ago
Voir le code source