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

express-generator1

v1.0.0

Published

The modern Express application generator. Scaffold a production-ready Express.js app in seconds with TypeScript, your choice of database (MongoDB, PostgreSQL, MySQL, SQLite), JWT auth, Docker, ESLint, Prettier, and more.

Readme

express-generator1

Scaffold a production-ready Express.js app in seconds — with TypeScript, your choice of database, JWT auth, and Docker baked in.

NPM Version NPM Downloads License Node

Quick start

npx express-generator1 my-app

An interactive wizard will ask a few questions, scaffold the project, and tell you what to run next.

Prefer flags? Skip the wizard:

npx express-generator1 my-app --ts --db=postgres --auth --docker --yes

Or install globally and run anywhere:

npm install -g express-generator1
express-gen my-app

What you get

  • Modern Express 4.19 app with sensible defaults — JSON body parsing, cookies, logging, error handling, dotenv
  • TypeScript or JavaScript — fully typed templates, strict mode, source maps
  • Database integration — pick one:
    • MongoDB (Mongoose)
    • PostgreSQL (Prisma)
    • MySQL (Sequelize)
    • SQLite (better-sqlite3)
  • JWT auth (optional) — register / login / me endpoints, bcrypt-hashed passwords, auth middleware
  • Docker (optional) — multi-stage Dockerfile + docker-compose.yml with your DB as a service
  • Linting (optional) — ESLint v9 flat config + Prettier + Husky pre-commit hook
  • View engines (optional) — Pug, EJS, or Handlebars

CLI flags

| Flag | Values | Description | |------|--------|-------------| | --ts / --js | — | TypeScript (default) or JavaScript | | -d, --db <type> | mongo · postgres · mysql · sqlite · none | Database | | --auth | — | JWT auth scaffold | | --docker | — | Dockerfile + docker-compose | | --lint | — | ESLint + Prettier + Husky | | -v, --view <engine> | pug · ejs · hbs · none | View engine | | -c, --css <engine> | plain · less · sass · stylus | CSS engine | | --git | — | git init | | -y, --yes | — | Skip prompts (use flags + defaults) | | -f, --force | — | Allow non-empty target directory |

After scaffolding

cd my-app
npm install
npm run dev          # starts on http://localhost:3000

If you chose Prisma:

npx prisma migrate dev --name init

If you chose Docker:

docker compose up -d

JWT auth endpoints

When you use --auth, your app gets:

POST /auth/register   { email, password }   →  { token, user }
POST /auth/login      { email, password }   →  { token, user }
GET  /auth/me         Bearer <token>        →  { user }

Passwords are hashed with bcryptjs. The User model auto-wires to your chosen database (or an in-memory store if you pick --db=none).

Why this generator?

| | express-generator1 | express-generator | |---|---|---| | Interactive wizard | ✅ | ❌ | | TypeScript | ✅ | ❌ | | Database integration | ✅ 4 options | ❌ | | JWT auth | ✅ | ❌ | | Docker | ✅ | ❌ | | ESLint v9 / Prettier / Husky | ✅ | ❌ | | Node engine | ≥ 18 | ≥ 0.10 | | Generated style | const/let, async | var, callbacks |

License

MIT. Originally derived from express-generator by TJ Holowaychuk and contributors; modernized and extended.