TypeBox + Fastify - Fastify API with TypeBox schemas
Type-safe Fastify REST API development with schema validation and automatic OpenAPI generation
Tags
Updated: 2026-03-22Capabilities
Typical Inputs
Typical Outputs
What this skill does
- define route schemas
- validate request params
- validate request query
- validate request body
- validate responses
- generate OpenAPI specs
- create plugins
- register plugins
- add request hooks
- add response hooks
- handle errors
- test routes
- stream responses
- limit request rate
- configure CORS
- shutdown gracefully
- auto-load plugins
Inputs
- TypeBox schema definitions
- Fastify plugins
- test cases
- hook configurations
Outputs
- HTTP responses
- OpenAPI specifications
- type-inferred request handlers
- server instance
Requirements
- Fastify v5+
- TypeScript v5+ with strict mode
- @fastify/type-provider-typebox
- @sinclair/typebox
