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

monu-cli2

v1.0.3

Published

A simple CLI tool to scaffold an Express.js REST API with MongoDB, Swagger docs, request validation, and centralized error handling.

Readme

monu-cli2

monu-cli2 is a simple CLI that scaffolds an Express.js REST API with MongoDB, Swagger docs, request validation, and centralized error handling.

Installation

Install the CLI globally with npm:

npm install -g monu-cli2

If you are working from this repository locally, you can link it instead:

npm link

Create a Project

Run the CLI with the project name you want:

monu-cli2 my-app

This will:

  • Create a new folder named my-app
  • Initialize package.json
  • Install project dependencies
  • Install nodemon as a dev dependency
  • Generate a ready-to-run Express API boilerplate
  • Add OpenAPI comment annotations that are rendered in Swagger UI

Run the Generated Project

Move into the new project folder:

cd my-app

Start the development server:

npm run dev

The generated app uses this default environment file:

PORT=5000
MONGODB_URI=mongodb://127.0.0.1:27017/my-app
NODE_ENV=development

Make sure MongoDB is running locally before starting the server.

After the app starts, Swagger docs will be available at:

http://localhost:5000/api-docs

The docs are generated from OpenAPI annotations written in the route files, then displayed with Swagger UI.

Features

  • Express.js API scaffold
  • MongoDB connection with Mongoose
  • OpenAPI annotations with Swagger UI documentation
  • Request validation with express-validator
  • Global error handling
  • Sample user CRUD routes
  • Pre-configured middleware with cors, morgan, and JSON parsing

Generated Structure

my-app/
|-- config/
|   |-- db.js
|   `-- swagger.js
|-- controllers/
|   `-- user.controller.js
|-- middleware/
|   `-- globalErrorHandler.js
|-- models/
|   `-- user.model.js
|-- routes/
|   `-- user.router.js
|-- .env
|-- .gitignore
|-- package.json
`-- server.js

License

This project is licensed under the ISC License.