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

@pactpay/cli

v0.1.1

Published

PactPay CLI for authentication, token usage plans, API tokens, and growing organization workflows

Readme

PactPay CLI

PactPay CLI is a command-line tool for working with PactPay from your terminal.

Today it is mainly focused on token usage plans and API tokens, and support for organizations-related workflows is also being expanded.

Install

Install from npm:

npm install -g @pactpay/cli

Then confirm the CLI is available:

pactpay --help

What You Can Do

  • Sign in with your PactPay account from the browser
  • View and switch the current organization
  • List and inspect token usage plans
  • Check plan balances
  • List API tokens under a plan
  • Create new API tokens from the terminal

Get Started

After installing the CLI, start by signing in:

pactpay auth login

The CLI will open your browser, complete the login flow, and save your local session automatically.

You can then check your current session:

pactpay auth status

Common Commands

Authentication:

pactpay auth login
pactpay auth status
pactpay auth logout

Organizations:

pactpay org list
pactpay org current
pactpay org switch --org-id <orgId>
pactpay org switch --org-name <orgName>

Plans:

pactpay plan list
pactpay plan list --with-balance
pactpay plan find --name <planName>
pactpay plan show --plan-id <planId>
pactpay plan balance --plan-id <planId>

API tokens:

pactpay token list --plan <planId-or-planName>
pactpay token create --plan <planId-or-planName> --name <tokenName>
pactpay token create --plan <planId-or-planName> --name <tokenName> --limited --remain-amount 10

Login Behavior

Commands that need authentication will use your saved local session automatically.

If the CLI does not find a valid session, it will:

  1. Open the PactPay login page in your browser
  2. Wait for the login callback on your machine
  3. Save the session locally for future commands

Working With Plans

Commands that target a token usage plan use:

--plan <planId-or-planName>

The CLI will first try to match an exact plan id, then an exact plan name, then a partial plan name.

If more than one plan matches, it will stop and ask you to use a more specific value.

Output

By default, list-style commands print readable tables in the terminal.

If you want to use the CLI in scripts, add:

--json

Environment Variables

  • PACTPAY_BASE_URL: Override API base URL. Default: https://pactpay.app
  • PACTPAY_WEB_BASE_URL: Override web base URL for browser login. Default: https://pactpay.app