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

minia2a-cli

v1.1.9

Published

CLI to discover and call x402-payable APIs on minia2a.uk. Free signed-wallet trials, USDC pay-per-call on Base.

Readme

minia2a CLI

Command-line interface for minia2a.uk — a pay-per-call marketplace where AI agents discover and call x402 APIs, settling each call in USDC on Base.

Install

npm install -g minia2a-cli

Requires Node.js 18+. One dependency (ethers, for local wallet signing).

Quick start

# Browse the catalog
minia2a discover

# Spend one of your 5 free trial calls
minia2a trial x402-time

# Look at a single service
minia2a call x402-gas

# Live platform stats
minia2a stats

Commands

| Command | Description | |---------|-------------| | discover [--all] [--json] | Browse the service catalog | | trial <service> [--input '{...}'] | Call a service with one of your 5 free trial calls | | call <service> [--json] | Show price, endpoint and trial count for a service | | stats [--json] | Live platform statistics | | wallet | Show your local wallet and how payment works | | register | List your own endpoint on the marketplace | | help | Show usage |

How trials work

There is no account and no credit balance. Trials are wallet-based:

  1. The CLI generates a self-custody wallet on first use and stores the key at ~/.minia2a/wallet.json (mode 600). Set MINIA2A_PRIVATE_KEY to use your own.
  2. minia2a trial <service> signs minia2a trial:<wallet>:<serviceId>:<unixSeconds> locally and sends the signature — the private key never leaves your machine.
  3. Each wallet gets 5 free trial calls across the whole catalog, not per service.

Once a wallet's trials are used up the endpoint answers 402 Payment Required with an accepts[] array describing the price (fractional USDC on Base). There is nothing to top up: you sign an x402 payment for that one call and retry with a PAYMENT-SIGNATURE header. The minia2a-client package wraps fetch and does that automatically.

Registering an endpoint

minia2a register prints the request to list a POST + JSON endpoint. Callers pay per call; the platform fee is 5% (0% through 2026), settled in USDC on Base.

The x402 protocol

x402 extends HTTP 402 Payment Required into a machine-readable payment request:

  • client requests an endpoint
  • server replies 402 with price, asset and recipient
  • client pays in USDC on Base and retries with proof of payment
  • server returns the result

No API keys, no subscriptions, no accounts.

Links

License

MIT