https://github.com/paudang/nodejs-quickstart-structure
π Powerful Node.js Generator to scaffold production-ready Microservices using MVC or Clean Architecture. Built-in Kafka, GraphQL, Security & AI-Native Support.
https://github.com/paudang/nodejs-quickstart-structure
ai-native boilerplate clean-architecture enterprise generator graphql javascript kafka microservices mvc nodejs productivity redis scaffolding typescript
Last synced: 3 months ago
JSON representation
π Powerful Node.js Generator to scaffold production-ready Microservices using MVC or Clean Architecture. Built-in Kafka, GraphQL, Security & AI-Native Support.
- Host: GitHub
- URL: https://github.com/paudang/nodejs-quickstart-structure
- Owner: paudang
- License: isc
- Created: 2026-02-03T11:27:07.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-04-20T06:17:08.000Z (4 months ago)
- Last Synced: 2026-04-20T06:27:54.322Z (4 months ago)
- Topics: ai-native, boilerplate, clean-architecture, enterprise, generator, graphql, javascript, kafka, microservices, mvc, nodejs, productivity, redis, scaffolding, typescript
- Language: EJS
- Homepage: https://paudang.github.io/nodejs-quickstart-structure/
- Size: 2.52 MB
- Stars: 7
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
- Support: SUPPORT.md
Awesome Lists containing this project
README
# Node.js Quickstart Generator
[](https://www.npmjs.com/package/nodejs-quickstart-structure)

[](https://www.npmjs.com/package/nodejs-quickstart-structure)
[](https://www.npmjs.com/package/nodejs-quickstart-structure)
[](https://opensource.org/licenses/ISC)
---
A powerful ecosystem to scaffold production-ready Node.js microservices with built-in best practices. Choose between **MVC** or **Clean Architecture**, **JavaScript** or **TypeScript**, and your preferred tech stack in seconds.
## Table of Contents
- [Quick Start](#choose-your-journey)
- [What's New](#whats-new-in-v21-the-authentication-release)
- [Key Features](#key-features)
- [Professional Standards](#professional-standards)
- [5,280+ Project Combinations](#5280-project-combinations)
- [Configuration Options](#configuration-options)
- [Generated Project Structure](#generated-project-structure)
- [Documentation](#documentation)
- [Support & Roadmap](#support--roadmap)
## Choose Your Journey
| **Path A: Next-Gen Web UI** (Recommended) | **Path B: Interactive CLI** |
| :--- | :--- |
|
|
|
| [Try Visual Configurator β](https://paudang.github.io/nodejs-quickstart-structure/#configurator) | [See CLI Commands β](#path-b-interactive-cli) |
| **Visual Preview**: Real-time folder simulation. | **Fast & Direct**: Quickly scaffold in terminal. |
| **Zero-Prompt**: Paste a tailored command. | **AI-Ready**: Generates `.cursorrules`. |
---
### Path B: Interactive CLI
**Scaffold your project directly from your terminal in seconds.**
```bash
npx nodejs-quickstart-structure@latest init
```
*Or install globally:*
```bash
npm install -g nodejs-quickstart-structure
# Then run:
nodejs-quickstart init
```
---
## What's New in v2.1 (The Authentication Release)
The v2.1.0 release is a major leap forward, turning the generator into a **Community Standard**:
- **Pluggable JWT Authentication**: Production-ready access & refresh token patterns with automatic PM2/Environment configuration.
- **AI-Native Foundation**: Built-in `.cursorrules` optimized for **Cursor** & AI agentsβprojects are "Born to be Autonomously Coded."
- **Next-Gen Web UI**: A browser-based visual project simulator with real-time folder previews.
- **Enterprise Clean Architecture**: High-fidelity structure for professional Microservices (TS/JS).
- **Hardened Security**: Integrated Snyk & SonarCloud logic in core templates.
- **Zero-Prompt Workflow**: Generate projects with a single CLI command.
---
## Key Features
- **Interactive CLI**: Smooth, guided configuration process.
- **Multiple Architectures**: Supports both **MVC** and **Clean Architecture**.
- **Modern Languages**: Choice of **JavaScript** or **TypeScript**.
- **Database Ready**: Pre-configured for **MySQL**, **PostgreSQL**, or **MongoDB**.
- **Communication Patterns**: Supports **REST**, **GraphQL** (Apollo), and **Kafka** (Event-driven).
- **Multi-layer Caching**: Integrated **Redis** or built-in **Memory Cache**.
- **Pluggable Authentication**: Built-in **JWT** support (Refresh/Access tokens).
- **AI-Native Optimized**: specifically designed for **Cursor** and AI agents, including built-in `.cursorrules` and Agent Skill prompts.
---
## Professional Standards
We don't just generate boilerplate; we generate **production-ready** foundations. Every project includes:
- **Code Quality**: Pre-configured `Eslint` and `Prettier`.
- **Enterprise Security**: Integrated **Snyk (SCA)**, **SonarCloud (SAST)**, `Helmet`, `HPP`, and Rate-Limiting.
- **Robust Error Handling**: Centralized global error middleware with custom error classes (`ApiError`, `NotFoundError`, etc.) β consistent across REST & GraphQL.
- **Testing Excellence**: Integrated `Jest` and `Supertest` with **>80% Unit Test coverage** out of the box.
- **DevOps & CI/CD**: Optimized **Multi-Stage Dockerfiles**, health checks, infrastructure retry logic, and workflows for **GitHub Actions**, **Jenkins**, **GitLab CI**, **CircleCI**, and **Bitbucket Pipelines**.
- **Scalable Deployment**: Integrated **PM2 Ecosystem** config for zero-downtime reloads.
---
## 5,280+ Project Combinations
The CLI supports a massive number of configurations to fit your exact needs:
- **480 Core Combinations**:
- **MVC Architecture**: 360 variants (Languages Γ View Engines Γ Databases Γ Communication Patterns Γ Caching Γ Auth)
- **Clean Architecture**: 120 variants (Languages Γ Databases Γ Communication Patterns Γ Caching Γ Auth)
- **5,280+ Total Scenarios**:
- Every combination can be generated across 5 CI/CD providers.
- Optional **Enterprise-Grade Security Hardening** doubles the scenarios.
- Every single scenario is verified to be compatible with our **80% Coverage Threshold** policy.
---
## Configuration Options
The CLI will guide you through:
1. **Project Name**
2. **Language**: `JavaScript` | `TypeScript`
3. **Architecture**: `MVC` | `Clean Architecture`
4. **View Engine**: (MVC only) `None` | `EJS` | `Pug`
5. **Database**: `MySQL` | `PostgreSQL` | `MongoDB`
6. **Communication**: `REST` | `GraphQL` | `Kafka`
7. **Caching**: `None` | `Redis` | `Memory Cache`
8. **Auth**: `None` | `JWT`
9. **CI/CD**: `GitHub Actions` | `Jenkins` | `GitLab CI` | `CircleCI` | `Bitbucket Pipelines`
10. **Security**: (Optional) Snyk & SonarCloud Hardening
---
## Generated Project Structure
Depending on your choices, the structure adapts. Here is a **TypeScript + Clean Architecture** preview:
```text
.
βββ src/
β βββ application/ # Use cases & Business logic
β βββ domain/ # Entities & Repository interfaces
β βββ infrastructure/ # DB, External services, Repositories
β βββ interfaces/ # Controllers, Routes, GraphQL, Kafka
β βββ errors/ # Custom Error Classes
β βββ config/ # Environment & Global settings
β βββ index.ts # Server entry point
βββ flyway/sql/ # SQL migrations (if applicable)
βββ docker-compose.yml # Infrastructure services
βββ package.json # Scripts and dependencies
βββ .cursorrules # AI assistance rules (The "AI Brain")
βββ .env.example # Environment template
```
---
## Documentation
For full guides, architecture deep-dives, and feature references, visit our **[Official Documentation Site](https://paudang.github.io/nodejs-quickstart-structure/guide/getting-started.html)**.
---
## Support & Roadmap
### Support the Project
If this tool helped you build your project faster, please support us:
- Give us a β on [GitHub](https://github.com/paudang/nodejs-quickstart-structure) to help us reach our next milestone!
- Read our [Medium Series](https://medium.com/@paudang/nodejs-quickstart-generator-93c276d60e0b) for architecture deep-dives.
### Roadmap
Track our progress and vote for features on our public board:
**[View our Public Roadmap on Trello](https://trello.com/b/TPTo8ylF/nodejs-quickstart-structure-product)**
---
## Why Star us?
We are on a mission to build the best AI-Native Node.js scaffolding experience. Your star is not just a "like"βit's a vote of confidence that helps us:
1. **Attract Contributors**: More stars attract professional maintainers to keep this project secure and up-to-date.
2. **AI Model Awareness**: Popular repositories are weighted higher by AI coding assistants (Cursor, Copilot, etc.), making the generated code even better.
3. **Open Source Sustainability**: It motivates us to keep building and shipping "Enterprise-Grade" features for free.
If this tool saved you hours of work, **[please give us a Star!](https://github.com/paudang/nodejs-quickstart-structure)**
---
## License
ISC