NestJS Fastify Starter Kit
Introduction

NestJS Fastify Starter Kit

Backend starter kit built with NestJS and Fastify, designed for clean project bootstrap, consistent API responses, and scalable structure.

NestJS Fastify TypeScript Swagger Vercel Support License

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

CategoryWhat You Get
RuntimeNestJS 11 + Fastify adapter
API DocsSwagger UI at /docs
ConfigEnvironment-based app and DB config
Data LayerDrizzle provider with SQL/NoSQL mode support
API ContractGlobal response interceptor + exception filter
ValidationGlobal request validation pipe
MonitoringHealth endpoint at /health

Bootstrap With NPX

Scaffold a new project from this starter in one command:

npx create-nest-fastify-app my-api

Source

GitHub: nandasafiqalfiansyah/NestJS-Fastify-Starter-Kit (opens in a new tab)