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

ts-express-generator-kit

v1.1.0

Published

A TypeScript-based Express.js project generator with best practices and clean architecture.

Readme

⚡ ts-express-generator-kit

A fast, modern, and developer-friendly Node.js CLI tool to generate a production-ready TypeScript + Express boilerplate with best practices built in.

Built for speed, scalability, and real-world backend development.


✨ Why ts-express-generator-kit?

Most generators give you a “hello world”.
This gives you a project you can actually ship.

  • Clean & scalable architecture
  • TypeScript-first setup
  • Environment-based configuration
  • Cross-platform support (macOS, Linux, Windows)
  • Minimal setup, maximum productivity

🚀 Features

  • ⚡ Fast CLI execution
  • 🧩 Simple & intuitive commands
  • 🟦 TypeScript-first architecture
  • 🌍 Cross-platform support using cross-env
  • 🛠 Minimal configuration
  • 📦 Production-ready structure
  • 🧪 Easy to extend & customize
  • 🐳 Optional Docker support
  • ✨ ESLint & Prettier ready
  • 🗄 Database support (MongoDB / MySQL / PostgreSQL)
  • 🔐 JWT service included

📦 Installation

Global installation (recommended)

npm install -g ts-express-generator-kit

Or run without installing

npx ts-express-generator-kit my-project

🧑‍💻 Usage

ts-express-generator-kit <project-name> [options]

Example

ts-express-generator-kit my-api --eslint --prettier --db mongo

Help

ts-express-generator-kit --help

⚙️ Options

| Option | Description | |------|------------| | --use-docker | Include Docker configuration | | --eslint | Add ESLint setup | | --prettier | Add Prettier configuration | | --db <type> | Database setup (mongo, mysql, postgres) | | -h, --help | Display help |


📁 Generated Project Structure

.
├─ envs/                          # Environment variable files
│  ├─ local.env
│  ├─ development.env
│  └─ staging.env
│
├─ scripts/                       # Build & utility scripts
│  ├─ common/
│  │  └─ utils.ts                 # Shared script utilities
│  └─ build.ts                    # Custom build logic
│
├─ src/                           # Application source code
│  ├─ common/                     # Shared utilities
│  │  ├─ constants/               # App-wide constants
│  │  │  ├─ HTTP_STATUS_CODES.ts
│  │  │  ├─ PATHS.ts
│  │  │  └─ index.ts
│  │  └─ util/                    # Helper utilities
│  │     ├─ misc.ts
│  │     ├─ route-errors.ts
│  │     └─ validators.ts
│  │
│  ├─ config/                     # Configuration modules
│  │  └─ db.ts                    # Database configuration
│  │
│  ├─ controllers/                # Route controllers
│  │  └─ main.controller.ts
│  │
│  ├─ models/                     # Database models
│  │  └─ index.ts
│  │
│  ├─ routes/                     # API routes
│  │  └─ index.ts
│  │
│  ├─ services/                   # Business logic services
│  │  └─ jwt.service.ts           # JWT authentication service
│  │
│  ├─ index.ts                    # Application entry point
│  └─ server.ts                   # HTTP server bootstrap
│
├─ config.ts                      # Global runtime configuration
├─ eslint.config.ts               # ESLint configuration
├─ package.json                   # Project metadata & scripts
├─ tsconfig.json                  # Base TypeScript config
└─ tsconfig.prod.json             # Production TypeScript config

▶️ Running the Project

Development mode

npm run dev
# or
yarn dev

Development with hot reload

npm run dev:hot
# or
yarn dev:hot

🌍 Environment-Based Scripts (Cross-Platform)

This project uses cross-env so it works consistently on Windows, macOS, and Linux.

{
  "local": "cross-env NODE_ENV=local ts-node ./src",
  "local:hot": "nodemon --exec \"npm run local\" --watch ./src --ext .ts",
  "start:dev": "cross-env NODE_ENV=development node -r ./config.js ./dist",
  "start:stag": "cross-env NODE_ENV=staging node -r ./config.js ./dist",
  "start:local": "cross-env NODE_ENV=local node -r ./config.js ./dist"
}

🆕 What’s New & Improved

✅ Fixed

  • Build creation issues
  • TypeScript output inconsistencies

➕ Added

  • Environment-specific run scripts
  • cross-env for OS-independent execution
  • Hot-reload support for local development
  • Improved project structure for scalability

🧠 Built With

  • TypeScript
  • Node.js
  • Express
  • Commander
  • Chalk
  • Execa
  • cross-env

👤 Author

Tarun Bhardwaj
Sr. Software Engineer | Full-Stack Developer
React • React Native • Node.js • TypeScript

Email: [email protected]


⭐ Support

If you find this useful:

  • ⭐ Star the repository
  • 🐛 Report issues
  • 💡 Suggest new features