Scaffold a production-ready Node.js + Express API in seconds — with interactive setup and zero configuration.
🔗 GitHub: https://github.com/codehassoul/setup-node-api
- ⚡ Instant project setup with zero configuration
- 🤖 Interactive mode for beginners (guided prompts)
- 🧠 Smart CLI behavior (flags + prompts hybrid)
- 🛡️ Safe overwrite handling with confirmation
- 🎨 Clean CLI output (colors + spinner)
- 🔧 Configurable via flags
- 📦 Works directly with
npx(no install required)
npx setup-node-api my-appnpx setup-node-apiRun without arguments:
npx setup-node-apiYou’ll be guided through:
- Project name
- TypeScript or JavaScript
- Install dependencies
setup-node-api <project-name>setup-node-api my-app --no-installsetup-node-api my-app --typescriptsetup-node-api my-app --port 5000npx setup-node-apinpx setup-node-api my-api --typescript --no-installnpx setup-node-api my-api --port 4000If the target folder already exists, the CLI will ask before overwriting:
? Folder already exists. Overwrite? (y/N)✨ Project ready!
📁 Location:
./my-app
👉 Next steps:
cd my-app
npm startEach project includes:
- Express server setup
/healthendpoint.envsupport- Ready-to-run scripts
my-app/
├── src/
│ └── app.js / app.ts
├── package.json
├── .env
- Node.js
- Express
- Commander
- Inquirer
- Chalk
- Ora
Most scaffolding tools are either:
- too complex
- or too minimal
setup-node-api focuses on:
simplicity + great developer experience
MIT © 2026 codehassoul