modkit
v1.0.10
Published
CLI tool to generate boilerplate module files structure
Downloads
9
Maintainers
Readme
🧩 modkit
modkit is a lightweight CLI tool that helps developers quickly scaffold consistent and boilerplate-ready module structures for TypeScript-based Node.js applications.
Whether you're working on a monorepo or organizing your backend using clean architecture, modkit helps you save time by auto-generating files like controller, service, model, route, and more — all in one command.
🚀 Features
- ⚡ Super-fast module scaffolding
- 🧱 Consistent naming convention (
feature.type.ts) - 🔁 Supports deeply nested paths (e.g.
src/modules/auth/user) - ✅ Zero configuration required
- 🆓 Open-source & free forever
📦 Installation
Using npm:
npm install -g modkitOr using Yarn:
yarn global add modkitℹ️ If using Yarn, ensure
yarn global binis added to your PATH. You can check with:yarn global bin
⚙️ Usage
modkit <target-path>Example:
modkit src/modules/userOutput:
src/modules/user/
├── user.controller.ts
├── user.interface.ts
├── user.model.ts
├── user.route.ts
├── user.service.ts
└── user.validation.tsEach file includes a basic default comment:
// user.service.ts📁 Generated File Types
| File | Purpose |
| ----------------- | --------------------------------- |
| *.controller.ts | Route handler or controller logic |
| *.interface.ts | Interfaces & TypeScript types |
| *.model.ts | DB models or schema definition |
| *.route.ts | Express or route config |
| *.service.ts | Core business logic |
| *.validation.ts | Input validation logic |
🛠 Development Setup
To work on modkit locally:
git clone https://github.com/webashraf/modkit
cd modkit
yarn install # or: npm installRun CLI in dev:
yarn start src/modules/exampleBuild:
yarn buildLink CLI for local testing:
yarn link
modkit src/modules/test🤝 Contributing
We welcome contributions and suggestions!
- 🐛 Report issues
- 🌟 Star the repository
- ✨ Submit pull requests
📄 License
This project is licensed under the ISC License.
Made with ❤️ by Ali Ashraf
