@layer1hq/exgen
v1.0.2
Published
A CLI tool to scaffold express + typescript projects quickly
Maintainers
Readme
ExGen ⚡️
A CLI tool to scaffold Express + TypeScript projects quickly.
Generate a production-ready boilerplate with sensible defaults in seconds.
✨ Features
- 📦 Generates a fully configured Express + TypeScript app
- ⚡ Comes with ESLint, logger, and error handling out of the box
- 🛠 Interactive prompts for setup
- 📂 Organized folder structure
- 🚀 Ready for MongoDB
📥 Installation
Global install (recommended)
npm install -g exgenLocal usage (via npx)
npx exgen-init🚀 Usage
Run the CLI to initialize a new project:
exgen-initFollow the interactive prompts to:
- Select project name
- Available Database Setup : MongoDB
- Scaffold TypeScript + Express boilerplate
📂 Example Project Structure
Generated project:
my-app/
├── src/
│ ├── app.ts
│ ├── config/
│ │ ├── database.ts
│ │ ├── error.ts
│ │ └── logger.ts
│ └── routes/
├── tsconfig.json
├── package.json
└── eslint.config.js🔧 Scripts in Generated Project
Inside your generated project you’ll have:
npm run dev # Start in watch mode (ts-node-dev)
npm run build # Compile TypeScript
npm start # Run compiled JS🛠 Development (for contributors)
Clone the repo:
git clone https://github.com/nielchaudhary/exgen.git
cd exgen
npm install
npm run buildTest your CLI locally:
npm link
exgen-init📜 License
ISC © 2025 Neel Chaudhary
💡 Roadmap
- Add support for PostgreSQL/MySQL templates
- Provide REST + GraphQL starter templates
- Add Dockerfile boilerplate
