atelier-typescript-fastify

Build typed REST APIs with Fastify and TypeBox schema validation.

39|4|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/martinffx/claude-code-atelier --skill atelier-typescript-fastify
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: atelier-typescript-fastify
Source: https://github.com/martinffx/claude-code-atelier/tree/main/plugins/atelier-typescript/skills/atelier-typescript-fastify
Command: npx skills add https://github.com/martinffx/claude-code-atelier --skill atelier-typescript-fastify

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a fast, type-safe foundation for building REST APIs with Fastify and TypeBox, streamlining schema-driven routing and consistent error handling.

Core Features & Use Cases

  • TypeBox-based schemas with $id for OpenAPI compatibility
  • Modular route registration and typed route handlers
  • RFC 7807 compliant error schemas and standardized responses
  • Type-safe integration with Fastify's TypeBox provider for scalable projects
  • Use Case: quickly bootstrap a new microservice with validated inputs and predictable responses

Quick Start

Bootstrap a Fastify + TypeBox API skeleton with typed schemas and example routes.

Frequently Asked Questions about atelier-typescript-fastify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a type-safe REST API with Fastify and TypeBox?▼

To build a type-safe REST API with Fastify and TypeBox, you define TypeBox schemas with an $id for OpenAPI compatibility, register modular routes, and use Fastify's TypeBox provider for strict schema validation and typed route handlers.

What is the best way to handle API errors in a Fastify TypeScript project?▼

The best way to handle API errors in a Fastify TypeScript project is using RFC 7807 compliant error schemas. This approach standardizes API error responses, ensuring predictable and structured error handling across your microservices.

How do I generate OpenAPI compatible schemas using TypeBox in a Fastify application?▼

To generate OpenAPI compatible schemas using TypeBox, you define your TypeBox schemas with a specified $id. This $id property ensures your schema definitions are compatible with OpenAPI documentation standards when integrated with Fastify.

Do I need @fastify/type-provider-typebox to validate inputs in a TypeScript microservice?▼

Yes, you need @fastify/type-provider-typebox to enable strict schema validation in a TypeScript microservice. It integrates TypeBox schemas directly with Fastify's type system, ensuring type-safe request and response handling.

Can I use modular route registration with Fastify and TypeBox for scalable projects?▼

Yes, you can use modular route registration with Fastify and TypeBox for scalable projects. This approach allows you to construct typed route handlers independently, streamlining schema-driven routing and maintaining type safety across large codebases.

What are the limitations of using TypeBox schema validation with Fastify?▼

TypeBox schema validation with Fastify requires schemas to have an $id for OpenAPI compatibility and depends on @fastify/type-provider-typebox. Projects not using TypeScript or needing non-JSON schema formats may find this strict validation approach restrictive.