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

paymongo-cli

v1.4.4

Published

Developer-first CLI tool for PayMongo integration development with local webhook forwarding, payment testing, and team collaboration features. See USER_GUIDE.md for comprehensive documentation.

Readme

PayMongo CLI

A developer-first CLI for PayMongo integration with local webhook forwarding.

PayMongo CLI is the official-feel command-line tool designed to streamline your development process with PayMongo. It solves the biggest pain point in payment integration: testing webhooks locally.

npm version License: MIT TypeScript


Key Features

  • Local Webhook Forwarding: Seamlessly receive PayMongo webhooks on your localhost using integrated ngrok tunneling.
  • Zero-Config Setup: Get started in seconds with paymongo init.
  • Payment Testing: Create and monitor payment intents and payments directly from your terminal.
  • Real-time Monitoring: Watch webhook events as they happen with formatted terminal logs.
  • Privacy-First Analytics: Optional local webhook event tracking to improve your development workflow (opt-in only).
  • Team Collaboration: Sync configurations across your team using GitHub integration.
  • Bulk Operations: Import/export payments and webhooks for easy migration between environments.
  • Rate Limiting Protection: Built-in API abuse prevention with configurable limits and automatic backoff.
  • Secure Management: Encrypted storage for your API keys.

Installation

Prerequisites

  • Node.js: v20.0.0 or higher
  • ngrok account: Required for webhook forwarding (free tier works great!)

Install via npm (Recommended)

npm install -g paymongo-cli

Setup ngrok Authtoken

To use the dev server with webhook forwarding, you need an ngrok authtoken:

  1. Sign up at ngrok.com
  2. Copy your authtoken from the ngrok dashboard
  3. Configure it in the CLI:
paymongo config set ngrok.authtoken YOUR_AUTHTOKEN

Quick Start

1. Initialize Project

mkdir my-paymongo-app
cd my-paymongo-app
paymongo init

2. Start Development Server

This command sets up a tunnel and starts forwarding webhooks to your local app.

paymongo dev --port 3000

3. Trigger a Test Webhook

In another terminal, simulate a successful payment:

paymongo trigger --event payment.paid

Rate Limiting Protection

PayMongo CLI includes built-in rate limiting to prevent accidental API abuse and protect your test credits. Rate limits are automatically enforced with:

  • Default Limits: 100 requests/minute in test environment, 50 in live
  • Endpoint-Specific Limits: Stricter limits for expensive operations like webhook creation
  • Automatic Backoff: Failed requests are automatically retried with exponential backoff
  • Configurable Settings: Customize limits via paymongo config rate-limit

Managing Rate Limits

# Enable rate limiting
paymongo config rate-limit enable

# Set maximum requests per minute
paymongo config rate-limit set-max-requests 200

# Set time window in seconds
paymongo config rate-limit set-window 120

# Check current status
paymongo config rate-limit status

# Disable rate limiting (not recommended)
paymongo config rate-limit disable

Global Override

Use --no-rate-limit with any command to temporarily disable rate limiting:

paymongo payments list --no-rate-limit
---

## Analytics (Optional)

PayMongo CLI can optionally track webhook events to provide insights into your development workflow. All analytics data is stored locally and never transmitted to external servers.

### Privacy-First Design

- **Opt-in Only**: Analytics is disabled by default and must be explicitly enabled
- **Local Storage**: All data remains on your machine
- **No External Transmission**: Data is never sent to PayMongo or third parties
- **Full Control**: Disable anytime and clear all stored data

### Enabling Analytics

```bash
# Enable webhook event tracking
paymongo config analytics enable

# View current analytics status
paymongo config analytics status

# Disable analytics (default)
paymongo config analytics disable

Analytics Features

When enabled, the CLI tracks:

  • Webhook Events: Successful and failed webhook deliveries
  • Event Types: Payment events, source events, and more
  • Response Times: Processing performance metrics
  • Error Analysis: Failed webhook reasons and patterns

Analytics data helps you:

  • Monitor webhook reliability during development
  • Identify integration issues early
  • Optimize your webhook handling code
  • Track testing patterns and event frequencies

Commands Reference

| Command | Description | | :--------------------------- | :------------------------------------------------------ | | paymongo init | Initialize a new project and set up credentials. | | paymongo dev | Start local development server with webhook forwarding. | | paymongo payments | Manage payments and payment intents. | | paymongo webhooks | List, create, and manage PayMongo webhooks with filtering by status and event type. | | paymongo config | View and modify CLI configuration. | | paymongo config analytics | Configure webhook analytics settings. | | paymongo config rate-limit | Configure rate limiting settings. | | paymongo team | Sync configurations with your team via GitHub. | | paymongo trigger | Simulate webhook events locally for testing. |

Use paymongo <command> --help for detailed information on any command.


Documentation


Built for Filipino Developers

PayMongo CLI is crafted to empower Filipino developers building the next generation of fintech solutions.

License

This project is licensed under the MIT License - see the LICENSE file for details.