fastify-rest
Installation
SKILL.md
Fastify REST API
Overview
Fastify is a high-performance web framework for Node.js with low overhead and built-in schema validation. This skill should be invoked when creating performant REST APIs that require high throughput, low latency, or strong type safety through schema validation.
Core Principles
- Schema First: Define JSON schemas for validation and serialization
- Plugin System: Extend functionality through plugins
- Performance: Built for speed with minimal overhead
- Type Safety: Full TypeScript support with type inference
Preparation Checklist
- Initialize project:
npm init fastify - Choose TypeScript or JavaScript
- Plan route structure and schemas
- Select required plugins