mcpField
F
fastify

fastify

github.com/full-stack-skillsDevelopment070 installsUpdated 5w ago
Repository

About fastify

fastify is a skill for building Node.js HTTP services with Fastify. It covers routing, schema validation, plugins, serialization, logging, and TypeScript configuration.

Key features

  1. 01Configure routes and request handling
  2. 02Define request and response schemas
  3. 03Use plugins and decorators
  4. 04Configure serialization and logging
  5. 05Work with TypeScript and async/await

Use cases

  1. 01Build a Node.js HTTP service
  2. 02Add schema validation to routes
  3. 03Organize service features as plugins

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/full-stack-skills/nodejs-skills --skill fastify

After installing, type/fastifyin Claude Code to confirm it loaded.

Bundled filesagents/openai.yamlLICENSE.txt

Details

From the project README

When to use this skill

Use this skill whenever the user wants to:

  • 用 Fastify 编写高性能 Node.js HTTP 服务、 schema 校验与插件
  • 配置路由、序列化、日志与 TypeScript

How to use this skill

  1. 核心:fastify()、get/post、request/reply;schema 与 serialization;插件与装饰器。
  2. 进阶:@fastify/cors、formbody、static;类型与 async/await。
  3. 参考:https://fastify.dev/docs/latest/

Best Practices

  • schema 定义请求响应;插件封装与顺序。
  • 生产用日志与错误处理;性能与安全头。

Keywords

fastify, Node.js, 高性能, schema

Comments

Markdown supported