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-ts-wizard

v0.2.1

Published

Create production-ready Express.js + TypeScript projects in seconds. Interactive CLI with 3 strictness levels, hot-reload, graceful shutdown, and Express 5.0

Readme

express-ts-wizard

Create production-ready Express.js + TypeScript projects in seconds

The fastest way to bootstrap an Express 5.0 API with TypeScript. Zero config, interactive CLI, multiple strictness levels.


Install

# Run directly with npx (recommended)
npx express-ts-wizard

# Or install globally
npm install -g express-ts-wizard
express-ts-wizard

Why express-ts-wizard?

Setting up a new Express.js project with TypeScript involves a lot of boilerplate: configuring tsconfig.json, setting up hot-reload, adding proper types, handling graceful shutdown... express-ts-wizard does all of this for you in one command.

Features

  • Express 5.0 - Latest version with improved async error handling
  • TypeScript - Full type safety out of the box
  • 3 Strictness Levels - Choose your TypeScript configuration: relaxed, moderate, or strict
  • Hot Reload - Development server with instant restarts via tsx
  • Production Ready - Graceful shutdown, health check endpoint, proper error handling
  • Deterministic Builds - Generates package-lock.json for reproducible installs
  • Git Ready - Optional Git initialization with initial commit
  • Zero Config - Works immediately after creation, no setup required

Quick Start

npx express-ts-wizard

That's it! Answer 3 simple questions and your project is ready.

cd my-express-app
npm run dev
# Server running at http://localhost:3000

Interactive Prompts

The wizard will ask you:

| Prompt | Description | Default | |--------|-------------|---------| | Project name | Directory name for your project | my-express-app | | TypeScript strictness | How strict should TypeScript be? | moderate | | Initialize Git? | Create a Git repo with initial commit | yes |

Generated Project Structure

my-express-app/
├── src/
│   └── index.ts        # Express server with health check
├── package.json        # Dependencies and scripts
├── package-lock.json   # Lock file for deterministic installs
├── tsconfig.json       # TypeScript configuration
└── .gitignore          # Standard Node.js ignores

Available Scripts

After creating your project, you can run:

| Script | Description | |--------|-------------| | npm run dev | Start development server with hot-reload | | npm run build | Compile TypeScript to JavaScript | | npm start | Run the compiled production server | | npm run type-check | Check types without compiling |

TypeScript Strictness Levels

Choose the level that fits your project:

Relaxed

{
  "strict": false
}

Minimal type checking. Good for quick prototypes or migrating JavaScript projects.

Moderate (Recommended)

{
  "strict": true
}

Enables TypeScript's strict flag, which includes:

  • strictNullChecks
  • strictFunctionTypes
  • strictBindCallApply
  • strictPropertyInitialization
  • noImplicitAny
  • noImplicitThis
  • alwaysStrict

Strict

{
  "strict": true,
  "noUncheckedIndexedAccess": true,
  "exactOptionalPropertyTypes": true,
  "noPropertyAccessFromIndexSignature": true,
  "noImplicitReturns": true,
  "noFallthroughCasesInSwitch": true,
  "noImplicitOverride": true
}

Maximum type safety. Catches more potential bugs at compile time.

What's Included

The generated Express server comes with:

// Health check endpoint
app.get("/health", (req, res) => {
  res.json({ status: "ok", timestamp: new Date().toISOString() });
});

// Graceful shutdown handling
process.on("SIGTERM", () => gracefulShutdown("SIGTERM"));
process.on("SIGINT", () => gracefulShutdown("SIGINT"));

Requirements

  • Node.js >= 18.0.0
  • npm (comes with Node.js)
  • Git (optional, for repository initialization)

Contributing

Contributions are welcome! Feel free to:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Comparison

| Feature | express-ts-wizard | express-generator | create-express-api | |---------|-------------------|-------------------|-------------------| | TypeScript | Yes | No | Varies | | Express 5.0 | Yes | No (4.x) | No | | Interactive CLI | Yes | No | Varies | | Strictness levels | 3 options | N/A | N/A | | Hot reload | Yes (tsx) | No | Varies | | Graceful shutdown | Yes | No | No | | Zero config | Yes | No | Varies |

Related

  • Express.js - Fast, unopinionated, minimalist web framework
  • TypeScript - Typed JavaScript at any scale
  • tsx - TypeScript execute with hot-reload

License

MIT © Simon Oyaneder


If this project helped you, consider giving it a star on GitHub!