npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

chapchapapi

v1.0.1

Published

A Node.js CLI tool for automating CRUD, search, pagination, and CSV endpoints in Prisma + Express projects.

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.

Donate with
PayPal


🪙 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.prisma automatically\
  • ⚙️ 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 chapchapapi

Then initialize your backend project:

chapchapapi init

Run 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

  1. Login to Postman\
  2. Visit:
    https://www.postman.com/settings/me/api-keys\
  3. Click Generate API Key\
  4. Copy and paste into your .env

🧭 How to Find Your Postman Workspace ID

  1. Open your workspace in Postman\

  2. Look at the URL:

    https://www.postman.com/<username>/workspaces/<workspace-id>
  3. Copy the <workspace-id> section\

  4. 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 init

or

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!

  1. Fork repo\
  2. Create feature branch\
  3. Submit PR

📄 License

MIT License © 2025 Arthur Codex