hhsadiq/NestForge
NestForge is a modern NestJS boilerplate that jump-starts your backend development. It comes with AI-powered CRUD generators, auth (JWT & sessions), file uploads, and other common modules built-in, so you can focus on your business logic instead of reinventing the wheel.
A Complete AI-Powered NestJS Boilerplate with Hexagonal Architecture
Built with enterprise-grade architecture patterns and automated code generation
π NestForge - Complete Platform Walkthrough
Experience the full power of NestForge from setup to code generation to AI-assisted development
https://github.com/user-attachments/assets/8db02e0b-f3a0-475d-a535-01ed7068cbe0
π§ Practical Demo β From Setup to Final Result
Watch a demonstration on how to use NestForge to quickly generate outcomes.
https://github.com/user-attachments/assets/5cc4b4a7-a962-4e8b-b364-9a95b185ea3f
NestForge is more than a boilerplate β it's a complete AI-powered development platform that takes you from database schema to production-ready API in minutes.
Unlike traditional boilerplates, NestForge doesnβt just give you a starting point β it uses AI-assistance generators to create production-ready CRUD modules for your custom projects and then guides you in extending them with business logic while keeping your code fully aligned with architectural standards.
No download data available
No tracked packages depend on this.
AI + automation handle the busywork, letting you focus on real business logic.
Clean separation of business logic from infrastructure concerns with consistent module structure and absolute path imports for cleaner project organization.
TypeORM with PostgreSQL integration, comprehensive seeding system, read replica support for improved performance, and example database views for better query abstraction and reporting.
Redis-powered caching system with cluster support, automatic TLS configuration, and comprehensive cache management for improved application performance and scalability.
Generate entire modules from JSON schemas or SQL with batch and interactive generators. Includes template automation, resource generation, versioning, property management, and raw query handling.
Comprehensive .cursorrules configuration that trains Cursor AI to understand hexagonal architecture patterns, Hygen generator commands, JSON schema validation, and architecture enforcement for domain-aware development assistance.
Complete project initialization from clone to running server with automated configuration and environment setup.
Biometric Feature with challenge-based authentication and server-side validation using cryptographic signing.Multi-driver support (Local, S3, S3-Presigned URLs) with automatic optimization and secure upload validation.
Multi-language support with dynamic translations and localized error messages using nestjs-i18n.
Comprehensive email system with nodemailer integration for transactional emails and notifications.
Swagger API documentation with automatic generation and comprehensive endpoint coverage.
Unit tests (Jest), E2E tests (Dockerized), and load testing (Artillery) with automated seeding and performance benchmarking.
Docker support, containerization, and development environment management with comprehensive Docker Compose configurations.
Robust scheduler module with flag-based control for managing cron jobs across different environments. Perfect for background tasks, cleanup operations, and periodic maintenance.
Request deduplication system with flag-based control to prevent duplicate processing. Ensures safe handling of retries and duplicate requests using UUID-based idempotency keys.
CI/CD workflows with GitHub Actions, database management, and Sentry monitoring integration for production deployments.
NestForge isn't just a boilerplateβit's a complete development platform that empowers you to build custom features with minimal effort. Here's how our features work together to accelerate your development:
Step 1: Database Design β Step 2: Code Generation β Step 3: AI-Assisted Development
.cursorrules training materialNestForge includes extensive .cursorrules configuration that trains Cursor AI to understand:
Result: Cursor becomes your domain-aware development assistant, not just a generic code generator.
any)product and category tablesnpm run setup.<http://localhost:3000/docs>admin@example.comsecretTime to Production: From database design to working API in minutes, not hours.
Get NestForge running in minutes with our automated setup script. Clone the repository and run npm run setup for complete initialization from database setup to running server.
π Installation Guide - Manual setup and troubleshooting
NestForge includes a powerful automated setup script that handles everything from environment configuration to database initialization and server startup. Perfect for quick project initialization and consistent development environments.
π Setup Script Guide - Complete automated setup documentation
NestForge implements Hexagonal Architecture (Ports & Adapters) with clean separation between business logic and infrastructure concerns. Each module follows a consistent structure ensuring maintainability and testability.
π Complete Architecture Guide - Deep dive into hexagonal patterns, module structure, and architectural principles
NestForge provides powerful code generation capabilities through Hygen generators. Create entire modules from JSON schemas, SQL statements, or interactive prompts with support for entities, relationships, and enums.
π Complete Hygen Documentation - All generators, JSON schemas, and usage examples π SQL to JSON Conversion - Convert SQL schemas to NestJS modules
Comprehensive testing suite with unit tests (Jest), E2E tests (Dockerized), and load testing (Artillery). All tests include automated seeding and detailed reporting for complete application validation.
π Complete Testing Guide - Unit, E2E, and Docker testing π Load Testing Guide - Performance benchmarking with Artillery
Complete documentation covering architecture, development workflows, and production deployment. Each feature has dedicated guides with examples and best practices.
π Full Documentation Index - Comprehensive guide with table of contents
We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.