fastify

Solid

Fastify plugins, hooks, validation, serialization, and performance optimization patterns.

AI & Automation 1,160 stars 71 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Fastify Skill Expert assistance for building high-performance APIs with Fastify. ## Capabilities - Configure Fastify with plugins - Implement hooks for lifecycle management - Set up JSON Schema validation - Optimize serialization for performance - Build type-safe APIs with TypeScript - Create reusable plugins ## Usage Invoke this skill when you need to: - Build high-performance APIs - Implement schema validation - Create custom plugins - Optimize JSON serialization - TypeScript integration ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | routePrefix | string | Yes | Route prefix | | validation | boolean | No | Add JSON Schema validation | | plugins | array | No | Plugins to use | ## Patterns ### Application Setup ```typescript // src/app.ts import Fastify, { FastifyInstance } from 'fastify'; import cors from '@fastify/cors'; import helmet from '@fastify/helmet'; import rateLimit from '@fastify/rate-limit'; import swagger from '@fastify/swagger'; import swaggerUi from '@fastify/swagger-ui'; import { usersRoutes } from './routes/users'; import { authRoutes } from './routes/auth'; import { errorHandler } from './plugins/error-handler'; export async function buildApp(): Promise<FastifyInstance> { const app = Fastify({ logger: { level: process.env.LOG_LEVEL || 'info', transport: process.env.NODE_ENV !== 'production' ? { target: 'pino-pretty' } : undefined, }, ajv: { ...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Listed

fastify-rest-api

Fastify is a high-performance Node.js web framework focused on speed and low overhead, featuring built-in schema validation and serialization, enabling developers to create production-ready APIs quick

43 Updated 3 months ago
diegosouzapw
API & Backend Listed

fastify-rest-api

Fastify is a high-performance Node.js web framework focused on speed and low overhead, featuring built-in schema validation and serialization, enabling developers to create production-ready APIs quick

3 Updated 3 months ago
AmnadTaowsoam
API & Backend Listed

typescript-fastify

Building REST APIs with Fastify in TypeScript. Use when creating routes, handling requests, implementing validation with TypeBox, structuring applications, or working with HTTP handlers and plugins.

28 Updated 1 weeks ago
martinffx
Web & Frontend Listed

fastify-schemas-validation

This skill should be used when writing Fastify JSON schemas, configuring Ajv validation, using fast-json-stringify serialization, defining request body/querystring/params/headers schemas, sharing schemas with addSchema and $ref, using fluent-json-schema, configuring response schemas, handling validation errors, setting up custom validators, working with Fastify schema design, coercion issues, nullable types, or allErrors configuration.

3 Updated 3 days ago
radesjardins
Testing & QA Listed

fastify-testing

This skill should be used when testing Fastify applications, using .inject() for HTTP testing, writing Fastify unit tests, testing Fastify plugins in isolation, separating app from server for testing, using light-my-request, testing route handlers, integration testing Fastify, test setup and teardown with Fastify, parallel test execution, testing Fastify hooks, or mocking in Fastify tests.

3 Updated 3 days ago
radesjardins