← All tools

seanpmaxwell/express-generator-typescript

Popularity 75 Updated Development & Build

CLI that generates a production-ready Express + TypeScript project — strict tsconfig, ESLint, Vitest, and a working CRUD example baked in.

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

<p align="center" <img alt="express-generator-typescript" src="https://github.com/seanpmaxwell/express-generator-typescript/raw/main/assets/express-typescript.png" width="420" </p

express-generator-typescript

A command-line tool that generates production-ready Express projects with TypeScript built in. Spin up a web server in seconds that follows the TypeScript best practices.

<p align="center"· · ·</p

🧭 Overview

express-generator-typescript works like the classic express-generator package, but the project it creates is fully set up for TypeScript. You get strict typing, linting, hot reloading, testing, and production builds, with defaults aimed at APIs. The project is an ES module and comes with an @src/ import alias, so imports stay clean as the app grows.

<p align="center"· · ·</p

✨ Features

  • TypeScript-first – strict compiler settings, linting, and sensible tsconfig defaults, ready to go.
  • Built for APIs – ideal for SPAs, mobile backends, or services.
  • Fast development – runs TypeScript directly with tsx (no build step), restarts the server when you change it, and refreshes the browser when you change front-end files. Vitest, ESLint, and production builds are included.
  • Path aliases – import from @src/ anywhere. It works in development, tests, and production builds.
  • Lean dependencies – no view engine, ORM, or UI layer; only the essentials for Express + TypeScript.

<p align="center"· · ·</p

📦 Installation

Requires Node.js 22.12 or newer.

npx express-generator-typescript
# or install globally
npm install -g express-generator-typescript

<p align="center"· · ·</p

⚡ Quick Start

# generate a project (defaults to express-gen-ts)
npx express-generator-typescript my-api

cd my-api

# start developing at http://localhost:3000
npm run dev

<p align="center"· · ·</p

🖥️ CLI Options