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
- 01Configure routes and request handling
- 02Define request and response schemas
- 03Use plugins and decorators
- 04Configure serialization and logging
- 05Work with TypeScript and async/await
Use cases
- 01Build a Node.js HTTP service
- 02Add schema validation to routes
- 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 fastifyAfter installing, type/fastifyin Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlLICENSE.txt
Details
From the project READMEWhen to use this skill
Use this skill whenever the user wants to:
- 用 Fastify 编写高性能 Node.js HTTP 服务、 schema 校验与插件
- 配置路由、序列化、日志与 TypeScript
How to use this skill
- 核心:fastify()、get/post、request/reply;schema 与 serialization;插件与装饰器。
- 进阶:@fastify/cors、formbody、static;类型与 async/await。
- 参考:https://fastify.dev/docs/latest/
Best Practices
- schema 定义请求响应;插件封装与顺序。
- 生产用日志与错误处理;性能与安全头。
Keywords
fastify, Node.js, 高性能, schema
Comments
Markdown supported