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

xpresso-cli

v1.3.1

Published

A CLI tool to scaffold Express.js applications.

Readme

🚀 xpresso-cli

npm version License: ISC

A powerful, incredibly fast CLI tool to instantly scaffold production-ready Node.js Express applications. It comes packed with built-in database configurations and an intuitive modular service generator, saving you hours of boilerplate setup.


✨ Features

  • ⚡ Instant Setup: Scaffolds a complete, production-ready Express.js MVC/Modular server structure in seconds.
  • 🗄️ Database Ready: Automatic, hassle-free database setup for MongoDB (Mongoose) or PostgreSQL (Sequelize).
  • 🛠️ Service Generator: Built-in CLI command to automatically generate new service modules (Controllers, Models, Routes) instantly.
  • 🔒 Best Practices Built-in: Pre-configured app.js with CORS, compression, and global error handlers.
  • 📦 Package Manager Choice: Support for npm, yarn, and pnpm.

📖 Step-by-Step Guide

Step 1: Scaffold a New Application

You can use npx to create a new application instantly without installing anything globally:

npx xpresso-cli my-app

Alternatively, you can install the CLI globally:

npm install -g xpresso-cli

Then you can use it directly anywhere:

xpresso-cli my-app

(If you run the command without a folder name, the CLI will interactively ask you for it!)

Step 2: Configure Your Project

The interactive CLI will prompt you to make a few quick decisions to tailor your app:

  1. Package Manager: Choose between npm, yarn, or pnpm.
  2. Database: Select your preferred database:
    • MongoDB (uses Mongoose)
    • PostgreSQL (uses Sequelize)
    • None (if you want to set it up yourself later)

Once selected, the CLI will automatically:

  • Generate the folder structure.
  • Configure your database connection file.
  • Generate an initial auth service tailored to your database choice.
  • Install all necessary dependencies automatically!

Step 3: Run Your Application

Navigate into your newly created project and start the development server:

cd my-app
npm start

(If you selected yarn or pnpm, use yarn start or pnpm start respectively).

You now have a fully functional Node.js server running! 🎉


🏗️ Generating New Services (The Magic)

Once your application is created, xpresso-cli provides an amazing built-in code generator that saves you from writing repetitive boilerplate for new features.

To generate a new service (e.g., for user management), navigate into your project folder and run:

npx create-service user

(If you installed the CLI globally, you can simply type create-service user)

What happens behind the scenes?

When you run create-service user, the CLI automatically:

  1. Creates a Controller (services/user/controller/user.controller.js).
  2. Creates Routes (services/user/routes/user.routes.js).
  3. Creates a Model (services/user/model/user.model.js) specifically tailored to the database you selected during initial setup!
  4. Auto-wires everything: It automatically updates your main app.js file to import and register your new user routes. You don't have to touch a thing!

📂 Folder Structure

Here is the clean, modular structure generated for your app:

my-app/
├── bin/
│   └── www                    # Server startup script
├── config/
│   └── db.config.js           # Database connection setup
├── public/                    # Static files
├── services/
│   ├── auth/                  # Automatically generated on init
│   │   ├── controller/
│   │   ├── model/
│   │   └── routes/
│   └── <your-service>/        # Automatically generated via 'create-service'
├── utils/
│   └── helper.utils.js        # Helper functions and utilities
├── app.js                     # Express app configuration (auto-updated with new routes)
└── package.json               # Project dependencies and scripts

🤝 Contributing

Contributions, issues, and feature requests are always welcome! Feel free to check the issues page.


📄 License

This project is licensed under the ISC License.

Created with ❤️ by Krish Dhiman