Fastify Rest Api
FreeNo executable scriptsNot checkedFastify is a high-performance Node.js web framework focused on speed and low overhead, featuring built-in schema validation and serialization, enabling…
by diegosouzapw★ 68 GitHub starsAbout this skill
Fastify Rest Api
Skill Profile
(Select at least one profile to enable specific modules)
- DevOps
- Backend
- Frontend
- AI-RAG
- Security Critical
Overview
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 quickly.
Fastify consists of:
- High Performance: 2x faster than Express
- JSON Schema Validation: Built-in validation with JSON Schema
- Fast Serialization: Optimized JSON serialization
- TypeScript Support: First-class TypeScript support
- Plugin System: Extensible plugin architecture
- Low Overhead: Minimal request overhead
Why This Matters
- Enhance Performance: Fastify can enhance API performance by 2-3x
- Reduce Infrastructure Cost: Higher throughput reduces infrastructure cost
- Increase Developer Experience: Built-in validation and serialization improve DX
- Reduce Bugs: Type-safe validation reduces bugs
- Improve Scalability: High-performance framework improves scalability
Core Concepts & Rules
1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs
2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment
Inputs / Outputs / Contracts
- Inputs:
- API requirements
- JSON schemas
- Plugin requirements
- Authentication requirements
- Entry Conditions:
- Node.js 16+ is available
- Fastify is installed
- TypeScript is configured
- API design is defined
- Outputs:
- Fastify application
- JSON schemas
- Route handlers
- Plugins
- Artifacts Required (Deliverables):
- Application setup
- JSON schemas
- Route definitions
- Plugin implementations
- Hook implementations
- Acceptance Evidence:
- API endpoints work correctly
- Validation is automatic
- Serialization is fast
- Plugins work correctly
- Success Criteria:
- API is functional
- Performance is high
- Validation is robust
- Plugins are modular
Skill Composition
- Depends on: error-handling, validation
- Compatible with: middleware, nodejs-api
- Conflicts with: express-rest (alternative framework)
- Related Skills: api-design, monitoring-observability
Quick Start / Implementation Example
- Review requirements and constraints
- Set up development environment
- Implement core functionality following patterns
- Write tests for critical paths
- Run tests and fix issues
- Document any deviations or decisions
# Example implementation following best practices
def example_function():
# Your implementation here
pass
Assumptions / Constraints / Non-goals
- Assumptions:
- Development environment is properly configured
- Required dependencies are available
- Team has basic understanding of domain
- Constraints:
- Must follow existing codebase conventions
- Time and resource limitations
- Compatibility requirements
- Non-goals:
- This skill does not cover edge cases outside scope
- Not a replacement for formal training
Compatibility & Prerequisites
- Supported Versions:
- Python 3.8+
- Node.js 16+
- Modern browsers (Chrome, Firefox, Safari, Edge)
- Required AI Tools:
- Code editor (VS Code recommended)
- Testing framework appropriate for language
- Version control (Git)
- Dependencies:
- Language-specific package manager
- Build tools
- Testing libraries
- Environment Setup:
.env.examplekeys:API_KEY,DATABASE_URL(no values)
Test Scenario Matrix (QA Strategy)
| Type | Focus Area | Required Scenarios / Mocks |
|---|---|---|
| Unit | Core Logic | Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
| Integration | DB / API | All external API calls or database connections must be mocked during unit tests |
| E2E | User Journey | Critical user flows to test |
| Performance | Latency / Load | Benchmark requirements |
| Security | Vuln / Auth | SAST/DAST or dependency audit |
| Frontend | UX / A11y | Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |
Technical Guardrails & Security Threat Model
1. Security & Privacy (Threat Model)
- Top Threats: Injection attacks, authentication bypass, data exposure
- Data Handling: Sanitize all user inputs to prevent Injection attacks. Never log raw PII
- Secrets Management: No hardcoded API keys. Use Env Vars/Secrets Manager
- **Au
Install Fastify Rest Api in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the Fastify Rest Api skill do?
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
How do I install the Fastify Rest Api skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the Fastify Rest Api skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic