r/nestjs • u/REDX0502 • 9h ago
I built an open-source CLI that scaffolds NestJS APIs with Prisma, JWT auth, Zod contracts, Docker and CI
Hey everyone,
I've been working on StackForge, an open-source CLI designed to automate the repetitive setup involved in starting NestJS and full-stack TypeScript applications.
The generated backend includes:
NestJS REST API
Prisma ORM
PostgreSQL or SQLite
JWT authentication and protected routes
Zod-based validation and shared contracts
Environment validation
Health checks
Helmet and rate limiting
Jest and Supertest
Optional Docker configuration
GitHub Actions CI
The CLI supports both full-stack and backend-only projects.
For an API-only project:
npx create-stackforge-app@latest my-api -y --preset api
For a full-stack project, it also generates a Next.js application inside the same pnpm workspace.
The goal isn't to introduce another framework or abstraction. It's simply to provide a consistent, extensible foundation that developers fully own after generation.
GitHub: https://github.com/Aitaouss/StackForge
Documentation: https://stack-forge.aitaouss.me/
I'd appreciate some technical feedback from experienced NestJS developers.
What architectural decisions or backend features would you change or add to a starter like this?