npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nodejs-quickstart-structure

v1.19.1

Published

The ultimate nodejs quickstart structure CLI to scaffold Node.js microservices with MVC or Clean Architecture

Readme

Node.js Quickstart Generator

npm version npm total downloads npm monthly downloads License: ISC

A powerful CLI tool to scaffold production-ready Node.js microservices with built-in best practices, allowing you to choose between MVC or Clean Architecture, JavaScript or TypeScript, and your preferred database.

Demo


📌 Table of Contents


🚀 Quick Start

Generate your professional Node.js project in seconds without installing anything globally:

npx nodejs-quickstart-structure@latest init

Installation (Optional)

If you prefer to install it globally:

npm install -g nodejs-quickstart-structure
# Then run:
nodejs-quickstart init

✨ 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.
  • AI-Native Optimized: specifically designed for Cursor and AI agents, including built-in .cursorrules and Agent Skill prompts. 🚀
  • Next Gen Web UI: (Coming Soon) A modern, browser-based project selector featuring real-time virtualization — set for release in v2.0.0!

🛡️ 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, and GitLab CI.
  • 🚀 Scalable Deployment: Integrated PM2 Ecosystem config for zero-downtime reloads.

🧩 1,680+ Project Combinations

The CLI supports a massive number of configurations to fit your exact needs:

  • 240 Core Combinations:
    • MVC Architecture: 180 variants (Languages × View Engines × Databases × Communication Patterns × Caching)
    • Clean Architecture: 60 variants (Languages × Databases × Communication Patterns × Caching)
  • 1,680+ Total Scenarios:
    • Every combination can be generated across 3 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. CI/CD: GitHub Actions | Jenkins | GitLab CI
  9. Security: (Optional) Snyk & SonarCloud Hardening

🏗️ Generated Project Structure

A typical generated project (TypeScript + Clean Architecture) looks like this:

.
├── src/
│   ├── application/     # Use cases & Business logic
│   ├── domain/          # Entities & Repository interfaces
│   ├── infrastructure/  # DB, External services, Repositories
│   ├── interfaces/      # Controllers, Routes, GraphQL, Kafka
│   ├── errors/          # Custom Error Classes
│   └── index.ts         # Entry point
├── flyway/sql/          # SQL migrations (if applicable)
├── docker-compose.yml   # Infrastructure services
├── package.json         # Scripts and dependencies
├── tsconfig.json        # TypeScript config
└── .cursorrules         # AI assistance rules

📖 Documentation

For full guides, architecture deep-dives, and feature references, visit our Official Documentation Site.


❤️ Support & 🗺️ Roadmap

Support the Project

We just hit 3,000+ downloads! If this tool helped you, please:

Roadmap

Track our progress and vote for features on our public board: 👉 View our Public Roadmap on Trello


License

ISC