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.7.5

Published

A CLI to scaffold Node.js microservices with MVC or Clean Architecture

Readme

Node.js Quickstart Generator

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.

Medium Article

Demo

Features

  • Interactive CLI: Easy-to-use prompts to configure your project.
  • Multiple Architectures: Supports both MVC (Model-View-Controller) and Clean Architecture.
  • Language Support: Choose between JavaScript and TypeScript.
  • Database Integration: Pre-configured setup for MySQL, PostgreSQL, or MongoDB.
  • Microservices Ready: Optional Kafka integration for event-driven communication.
  • Caching Layer: Optional Redis integration for high-performance data caching.
  • Dockerized: Automatically generates docker-compose.yml for DB, Kafka, Redis, and Zookeeper.
  • Database Migrations/Schemas: Integrated Flyway for SQL migrations or Mongoose schemas for MongoDB.
  • Professional Standards: Generated projects come with highly professional, industry-standard tooling.

🏆 Professional Standards (New)

We don't just generate boilerplate; we generate production-ready foundations. Every project includes:

  • 🔍 Code Quality: Pre-configured Eslint and Prettier for consistent coding standards.
  • 🛡️ Security: Built-in Helmet, HPP, CORS, and Rate-Limiting middleware.
  • 🧪 Testing Strategy: Integrated Jest and Supertest setup for Unit and Integration testing.
  • 🔄 CI/CD Support: Choice between GitHub Actions and Jenkins.
  • ⚓ Git Hooks: Husky and Lint-Staged to ensure no bad code is ever committed.
  • 🐳 DevOps: Highly optimized Multi-Stage Dockerfile for small, secure production images.

🧩 112+ Project Combinations

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

  • 112 Core Combinations:
    • MVC Architecture: 84 variants (Languages × View Engines × Databases × Communication Patterns × Caching)
    • Clean Architecture: 28 variants (Languages × Databases × Communication Patterns × Caching)
  • 224 Total Scenarios:
    • Every combination can be generated with or without GitHub Actions CI/CD, doubling the possibilities.

For a detailed list of all supported cases, check out docs/generateCase.md.

Installation

You can install the tool globally directly from npm:

npm install -g nodejs-quickstart-structure

Usage

Once installed, simply run the following command in any directory where you want to create a new project:

nodejs-quickstart init

Configuration Options

The CLI will guide you through the following steps:

  1. Project Name: The name of the folder to create.
  2. Language: JavaScript or TypeScript.
  3. Architecture: MVC or Clean Architecture.
  4. Database: MySQL, PostgreSQL, or MongoDB.
  5. Database Name: The name of the initial database.
  6. Communication: REST APIs (default) or Kafka.
  7. Caching: Redis or None.
  8. CI/CD: GitHub Actions, Jenkins, or None.

Generated Project Structure

The generated project will include:

  • src/: Source code (controllers, routes, services/use-cases).
  • flyway/sql/: SQL migration scripts (if SQL database selected).
  • docker-compose.yml: Services configuration for DB, Flyway, and Kafka.
  • package.json: Dependencies and scripts (start, dev, build).
  • tsconfig.json: (If TypeScript is selected) Type checking configuration.

Getting Started with the Generated App

cd <your-project-name>

# Start infrastructure (DB, etc.)
npm install

docker-compose up

License

ISC