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

mvc-faststart-express

v1.0.2

Published

A zero-dependency CLI for scaffolding production-ready MERN MVC architecture

Downloads

290

Readme

mern-mvc-generator

A lightweight, zero-dependency CLI tool for scaffolding professional MERN (MongoDB, Express, React, Node.js) backend APIs with a clean MVC structure.

This generator creates a ready-to-use Express.js backend featuring:

  • MVC pattern (Models, Views not included — API-focused, Controllers, Services)
  • Best practices: error handling, async wrappers, CORS, Helmet, etc.
  • Example User model, controller, service, and route
  • MongoDB connection via Mongoose
  • Development mode with Nodemon

All with no external dependencies for the generator itself — pure Node.js!

Installation

Install globally to use the CLI anywhere:

npm install -g mern-mvc-generator
Or use directly with npx (no global install needed):
Bashnpx mern-mvc-generator my-api-project
Usage
Global Install
Bashmern-mvc-generator [project-name]
With npx
Bashnpx mern-mvc-generator [project-name]

If no project-name is provided, defaults to mern-api-service.
The tool will create a new directory with the project name and scaffold the backend inside it.
It automatically runs npm install for the required dependencies.

Example:
Bashmern-mvc-generator my-awesome-api
cd my-awesome-api
npm run dev
Generated Project Structure
textmy-awesome-api/
├── .env
├── package.json
└── src/
    ├── app.js
    ├── server.js
    ├── config/
    │   └── db.js
    ├── controllers/
    │   ├── index.js
    │   └── user.controller.js
    ├── middlewares/
    │   └── error.js
    ├── models/
    │   ├── index.js
    │   └── user.model.js
    ├── routes/
    │   ├── index.js
    │   └── user.route.js
    ├── services/
    │   ├── index.js
    │   └── user.service.js
    └── utils/
        ├── ApiError.js
        └── catchAsync.js
Key Features in the Scaffold

Centralized error handling (ApiError, converter, handler)
Async wrapper (catchAsync)
Modular routes under /v1
Example CRUD-ready User resource (currently implements GET /v1/users)
Environment-based config (.env with PORT and MONGODB_URL)

Running the Generated API
Bashcd your-project-name
npm run dev     # Starts with nodemon (hot-reload)
# or
npm start       # Production mode
The server will run on http://localhost:5000 (or your configured PORT).
Test the example endpoint:
textGET http://localhost:5000/v1/users
Customization
The generated project is fully yours — extend models, add more routes/controllers/services, integrate authentication (e.g., JWT), pagination, validation, etc.
Why This Generator?

Zero dependencies for the CLI itself → fast, portable, no bloat.
Uses native Node.js modules and ANSI colors.
Focuses on clean, maintainable backend structure inspired by real-world production APIs.
Perfect starting point for MERN stack backends.

Contributing
Contributions are welcome! Feel free to open issues or PRs on the repository.
License
MIT