NestJS Fastify Starter Kit
Backend starter kit built with NestJS and Fastify, designed for clean project bootstrap, consistent API responses, and scalable structure.
Why This Starter
- High-performance HTTP engine with Fastify
- Structured and production-ready NestJS module layout
- Centralized response templates for success and error payloads
- Unified exception handling for predictable API contracts
- Flexible multi-database configuration strategy
- Built-in API documentation via Swagger
Feature Snapshot
| Category | What You Get |
|---|---|
| Runtime | NestJS 11 + Fastify adapter |
| API Docs | Swagger UI at /docs |
| Config | Environment-based app and DB config |
| Data Layer | Drizzle provider with SQL/NoSQL mode support |
| API Contract | Global response interceptor + exception filter |
| Validation | Global request validation pipe |
| Monitoring | Health endpoint at /health |
Bootstrap With NPX
Scaffold a new project from this starter in one command:
npx create-nest-fastify-app my-apiSource
GitHub: nandasafiqalfiansyah/NestJS-Fastify-Starter-Kit (opens in a new tab)