chapchapapi
v1.0.1
Published
A Node.js CLI tool for automating CRUD, search, pagination, and CSV endpoints in Prisma + Express projects.
Maintainers
Readme
❤️ Sponsor This Project
If you find chapchapapi CLI useful and would like to support its
ongoing development, consider sponsoring the project.
Your contribution helps keep this project maintained and growing.
🪙 Chapchapapi CLI
chapchapapi is an open-source Node.js CLI tool that reads your Prisma schema and instantly generates:
- ✅ CRUD boilerplate (controllers, services, routes)\
- ✅ Postman-ready REST API collections\
- ✅ Search, pagination, CSV import/export endpoints\
- ✅ MinIO-based file/document upload utilities
It automates up to 80% of repetitive API development in Prisma + Express projects.
✨ Features
- 🔍 Parses
schema.prismaautomatically\ - ⚙️ Generates complete CRUD endpoints\
- 📬 Builds Postman collections with folders + sample requests\
- 🧾 CSV import/export support\
- 🔐 MinIO document upload utilities\
- 🎨 Beautiful interactive CLI using
inquirer\ - ⚡ Fast, clean, developer-friendly workflow
🚀 Installation
Install globally:
npm install -g chapchapapiThen initialize your backend project:
chapchapapi initRun without installing:
npx chapchapapi init🔧 Required Environment Variables
Add the following variables to your .env file depending on your
project features.
Postman Integration
These are required for auto-generating Postman collections:
POSTMAN_API_KEY=""
POSTMAN_WORKSPACE=""🔐 How to Get Your Postman API Key
- Login to Postman\
- Visit:
https://www.postman.com/settings/me/api-keys\ - Click Generate API Key\
- Copy and paste into your
.env
🧭 How to Find Your Postman Workspace ID
Open your workspace in Postman\
Look at the URL:
https://www.postman.com/<username>/workspaces/<workspace-id>Copy the
<workspace-id>section\Paste into your
.env
Document Handling (MinIO)
Required if your project deals with documents, images, or file uploads.
MINIO_ROOT_USER=
MINIO_ROOT_PASSWORD=📦 Required NPM Packages in Your Project
npm install prisma minio multer uuid dotenv csv-parser fuse-js🧰 Commands
Initialize a new generator setup
chapchapapi initor
npx chapchapapi init🗺 Roadmap
- [ ] Add JWT authentication scaffolding\
- [ ] Support for NestJS\
- [ ] Support for TypeScript\
- [ ] GraphQL endpoint generation\
- [ ] Swagger/OpenAPI auto-generation\
- [ ] CLI plugin system
🤝 Contributing
Contributions are welcome!
- Fork repo\
- Create feature branch\
- Submit PR
📄 License
MIT License © 2025 Arthur Codex
