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

yapper-cli

v2.1.0

Published

yapper is highly opionated cli tool that lets you generate strucutred Apis,modules and production ready setups instantly.

Readme

yapper

😺 Yapper is a highly opinionated CLI tool that lets you generate structured APIs, modules, and production-ready Express + Mongoose setups instantly.

It handles all the boilerplate of setting up an production grade Express.js application and allows you to easily generate new API modules (controllers, services, routes, and schemas) with a single command.

Installation

Install yapper globally via npm to use its commands from anywhere:

npm install -g yapper-cli

Usage

1. Create a New Project

To generate a new, fully configured Express + Mongoose project, use the yapper command:

yapper <project-name>

This will create a new folder named <project-name> containing:

  • A structured Express app with best practices
  • Centralized error handling and standardized API responses
  • Pre-configured logger and dotenv
  • A MongoDB connection setup using Mongoose
  • TypeScript support and standard configurations (tsconfig.json, package.json, etc.)
  • Dockerization Setup: A production-ready multi-stage Dockerfile, .dockerignore, and a pre-configured docker-compose.yml (with a health-checked MongoDB instance).
  • Prettier Setup: Pre-configured code formatting via .prettierrc and .prettierignore, with npm scripts to run Prettier.

Once generated, navigate into your new project, check dependencies, and start the dev server:

cd <project-name>
npm run dev

2. Generate a New Module

To add a new API module to your project, use the yapp command from within your project's root directory:

yapp <module-name>

For example, running yapp user will automatically generate the following files:

  • src/schemas/user.schema.ts
  • src/services/user.service.ts
  • src/controllers/user.controller.ts
  • src/routes/user.route.ts

These files come pre-filled with standard CRUD boilerplate, completely hooked up and ready to be imported into your main application.

3. Docker Support

Yapper generates everything needed to run your application in Docker out of the box.

Configuration Files Generated:

  • Dockerfile: A multi-stage build optimized for production (using node:20-alpine). The builder stage compiles TypeScript, and the production stage packages only the build artifacts and production dependencies (npm ci --omit=dev).
  • docker-compose.yml: Orchestrates the application container and a health-checked mongo:7 database container.
  • .dockerignore: Prevents build context bloat by excluding files like node_modules, dist, .env, and git configs.

Steps to Run with Docker:

  1. Navigate to the project directory:

    cd <project-name>
  2. Open the .env file (or copy from .env.example) and configure the MONGO_URI to use the mongo service name as the hostname. For example:

    MONGO_URI=mongodb://mongo:27017/<project-name>
  3. Spin up the application and database services:

    docker compose up --build

    (Or docker-compose up --build if you are using Docker Compose V1)

The server will start up once the MongoDB container health check passes, and will be accessible at the port specified in your .env (defaults to 3000).


Contributing

Contributions, ideas, and improvements are welcome.

Open an issue or submit a PR.

  • Connect With Me

Suggestions are welcome.

https://anshumancdx.xyz/blog

  • Newsletter

https://newsletter.anshumancdx.xyz/

Support the Project

If you find this useful, consider giving the repo a star at

https://github.com/anshumancodes/yapper