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

mockey-patcher-cli

v1.1.1

Published

Global CLI tool for managing Mockey Patcher backend services with Docker Compose - API mocking and request redirection made simple

Readme

🔧 Mockey Patcher CLI

Global CLI tool for managing Mockey Patcher backend services with Docker Compose - API mocking and request redirection made simple.

📦 Installation

npm install -g mockey-patcher-cli

🚀 Quick Start

# Install globally
npm install -g mockey-patcher-cli

# Initialize project (creates folder automatically)
mockey-patcher setup my-project
cd my-project

# Start services
mockey-patcher start

# Check status
mockey-patcher status

📋 Commands

mockey-patcher setup

🚀 Initialize a new Mockey Patcher project.

mockey-patcher setup [project-name] [options]

Arguments:
  project-name                     Name of the project folder to create

Options:
  -p, --port <number>              Backend API port (default: 3000)
  --postgres-port <number>         PostgreSQL port (default: 5432)
  -u, --docker-username <username> Docker Hub username (default: shivarajbakale)
  -f, --force                      Overwrite existing configuration
  --no-interactive                 Skip interactive prompts

Examples:

# Interactive setup
mockey-patcher setup

# Create project with custom name
mockey-patcher setup my-api-project

# Non-interactive with custom port
mockey-patcher setup my-api --port 8080 --no-interactive

# Force overwrite existing project
mockey-patcher setup my-api --force

mockey-patcher start

▶️ Start all services.

mockey-patcher start [options]

Options:
  -d, --detach    Run in detached mode
  --pull          Pull latest images before starting
  --build         Build images before starting

mockey-patcher stop

⏹️ Stop all services.

mockey-patcher stop [options]

Options:
  -v, --volumes   Remove volumes

mockey-patcher status

📊 Check service status.

mockey-patcher status [options]

Options:
  -v, --verbose   Show detailed status information
  --json          Output in JSON format

mockey-patcher restart

🔄 Restart all services.

mockey-patcher restart [options]

Options:
  --pull    Pull latest images before restarting
  --build   Build images before restarting

mockey-patcher logs

📋 Show service logs.

mockey-patcher logs [service] [options]

Arguments:
  service               Service name (backend, postgres)

Options:
  -f, --follow         Follow log output
  -t, --tail <number>  Number of lines to show
  --since <string>     Show logs since timestamp

mockey-patcher reset

🗑️ Reset project (remove containers, volumes, and data).

mockey-patcher reset [options]

Options:
  -f, --force   Skip confirmation

💡 Usage Examples

Basic Usage

# Create new project
mockey-patcher setup my-api
cd my-api

# Start services
mockey-patcher start

# Test API
curl http://localhost:3000/health

# Stop services
mockey-patcher stop

Development Workflow

# Start with latest images
mockey-patcher start --pull

# Monitor logs
mockey-patcher logs --follow

# Check status
mockey-patcher status --verbose

# Restart services
mockey-patcher restart

Custom Configuration

# Setup with custom ports
mockey-patcher setup my-api --port 8080 --postgres-port 5433
cd my-api

# Start with latest images
mockey-patcher start --pull

# Monitor logs
mockey-patcher logs --follow

Troubleshooting

# Check detailed status
mockey-patcher status --verbose

# View specific service logs
mockey-patcher logs backend --tail 50

# Reset everything
mockey-patcher reset --force

🛠️ Requirements

  • Node.js 16 or higher
  • Docker and Docker Compose
  • npm or yarn

🔧 Development

# Clone the repository
git clone https://github.com/shivarajbakale/redirector-app.git
cd redirector-app/packages/backend/cli

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Link for local development
npm link

📄 License

MIT