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

proweb

v1.0.3

Published

A CLI tool to quickly scaffold backend projects with a ready-made template

Downloads

15

Readme


proweb

A CLI tool to auto-generate a fully-structured Node.js + Express + MongoDB backend setup in seconds.

proweb creates a complete backend project with folders, files, environment config, database setup, authentication middleware, utilities, and all required dependencies — just by running one command.


⚙️ Installation & Usage

✅ Recommended (Without Global Install)

npx proweb

🚀 Features

  • Generates full backend boilerplate (Express + MongoDB + MVC pattern).
  • Includes auth middleware (JWT-based).
  • Includes file upload setup using Multer.
  • Includes utility helpers (API Response, Error Handler, Async Handler).
  • Environment variable setup using .env.
  • Uses modern ES Modules and clean folder structure.
  • Automatically runs npm install after generating setup.
  • Works with npx and global install.

📁 Template Folder Structure (Generated Project)

my-backend/
├─ node_modules/
├─ .env.example
├─ .gitignore
├─ package.json
├─ src/
│  ├─ app.js
│  ├─ index.js            ← Server entry point
│  ├─ constants.js
│  ├─ db/
│  │  └─ connectDB.js     ← MongoDB connection using Mongoose
│  ├─ models/
│  │  └─ user.model.js (example)
│  ├─ controllers/
│  │  └─ user.controller.js (example)
│  ├─ routes/
│  │  └─ user.routes.js (example)
│  ├─ middlewares/
│  │  ├─ auth.middleware.js   ← JWT authentication check
│  │  └─ multer.middleware.js ← File upload handling
│  ├─ utils/
│  │  ├─ ApiResponse.js
│  │  ├─ ApiError.js
│  │  └─ asyncHandler.js
└─ README.md

---

## 📦 Packages Included in Generated Backend

| Package        | Purpose |
|----------------|---------|
| express        | Web framework for creating server & routes |
| mongoose       | MongoDB ODM to manage database models |
| dotenv         | Loads environment variables from `.env` |
| bcrypt         | Hashing passwords securely |
| jsonwebtoken   | JWT token generation & verification |
| cookie-parser  | Reads cookies from client requests |
| cors           | Handles Cross-Origin Resource Sharing |
| multer         | File uploads (images, docs, etc.) |
| inquirer       | Used only in CLI to ask project name (not in generated backend) |

⚙️ Installation & Usage

✅ Recommended (Without Global Install)

npx proweb

✅ Or Install Globally

npm i -g proweb
proweb

✅ Or Run Interactively

proweb

Then it will ask:

? Enter your project name: (default: my-backend)

📌 After Installation – What to Do

cd my-backend
cp .env.example .env   # Add your MongoDB URI, JWT secret, etc.
npm run dev            # Start development server with nodemon

🔑 Environment (.env) Example

PORT=3000
MONGO_URI=****YOUR_MONGO_URI*****
CORS_ORIGIN=*
ACCESS_TOKEN_SECRET=****ANY_RANDOM_SECRET***
ACCESS_TOKEN_EXPIRY=1d
REFRESH_TOKEN_SECRET=****ANY_RANDOM_SECRET***
REFRESH_TOKEN_EXPIRY=10d

🧠 Internal Architecture

✅ Entry Point

  • src/index.js → Starts server, connects to DB.
  • src/app.js → Registers middleware, routes, error handling.

✅ Auth Flow

  • User logs in → JWT token created → Stored in cookies.
  • auth.middleware.js verifies token on protected routes.

✅ Multer (File Uploads)

  • Used for uploading profile pictures, documents, etc.
  • Files stored temporarily or in /uploads.

✅ License

MIT License.


✅ Example Terminal Output

C:\Users> npx proweb api-server
? Enter your project name: api-server
📁 Creating project folder...
📂 Copying backend template...
📦 Installing dependencies...
✅ Setup complete!

Next steps:
cd api-server
cp .env.example .env
npm run dev

Your backend is now ready to use 🎯