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

@zkp2p/peer-pay-cli

v0.12.0

Published

Test Peer Pay locally and manage your merchant account from the terminal

Readme

Peer Pay CLI

Test Peer Pay locally and manage your merchant account from the terminal. Requires Node.js 22 or newer.

npm install -g @zkp2p/peer-pay-cli

Run peer-pay-cli in a terminal to choose from a menu, or peer-pay-cli --help to list commands.

Test locally

Start the mock backend in one terminal:

peer-pay-cli serve --state ./peer-pay.json

In another terminal, register your local webhook handler and run an order:

peer-pay-cli --local webhooks create --url http://localhost:3000/webhooks/peer-pay --events ORDER_FULFILLED
peer-pay-cli --local orders create --amount 10
peer-pay-cli --local payments create ORDER_ID --rail venmo
peer-pay-cli --local simulate ORDER_ID --event PAYMENT_SETTLED
peer-pay-cli --local status

Replace ORDER_ID with the returned order ID. The mock listens on 127.0.0.1:4020 and calls your localhost handler directly. No account, database, or tunnel is needed, and no money moves.

Set up your merchant

peer-pay-cli login --email [email protected]
peer-pay-cli setup

Enter the code from the email, answer the setup questions, and review the changes before they apply. For scripts, sign in first and run peer-pay-cli setup --file setup.json --dry-run or --yes. peer-pay-cli sandbox enable enables your hosted sandbox and switches to its profile.

Continue with a coding agent

peer-pay-cli handoff --harness codex --project ./my-store --launch

Supports Codex (codex), Claude Code (claude), OpenCode (opencode), and Gemini CLI (gemini); install the agent separately. Use --harness prompt to only write the instructions. The instructions name your profile but contain no credentials.

Handoff also starts a setup run that your Peer Pay dashboard follows: the agent reports its milestones with peer-pay-cli progress, and handoff reports when the agent exits.

Profiles and credentials

Login saves your merchant as a profile and makes it active, so commands then target your Peer Pay account. Add --local, or run peer-pay-cli use local, to target the mock. peer-pay-cli profiles lists saved profiles.

Output redacts credentials. Export them to a new private file instead:

peer-pay-cli credentials export --output .env.peer-pay --webhook-id WEBHOOK_ID

Keep exported credentials and local state out of version control.

Documentation