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

@ruponchain/modu

v0.1.13

Published

CLI to monetize any HTTP API with x402 micropayments on Algorand

Readme

@ruponchain/modu

Turn any existing HTTP API endpoint into a pay-per-request endpoint settled with x402 on Algorand — with zero payment code written by the developer.

npm version License: MIT TypeScript Node.js Algorand


Quick Install

Install globally:

npm install -g @ruponchain/modu

Or run instantly without installing:

npx @ruponchain/modu --help

Once installed, the modu command is available everywhere in your terminal:

modu --help

Quick Start

1. Configure Authentication & Payout Wallet

modu config

Opens your browser to authorize your CLI session, then prompts for your Algorand payout wallet address where all endpoint micropayments settle.

2. Monetize Any API Endpoint

modu register

Or pass options directly:

modu register --url https://httpbin.org/get --price 0.02 --asset USDC --path my-api

Output:

⚡ Endpoint Registered Successfully!

Endpoint ID:    07ec880f
Proxy URL:      https://modu-proxy.onrender.com/p/f21408
Origin URL:     https://httpbin.org/get
Price:          0.02 USDC
Payout To:       YAVQWCPKM6D4HR63K7GYTR5AFR727RCA3VNWSMSJ7VTUJHNRRHEIIJJP4A

⚡ Pay via browser:
  modu get https://modu-proxy.onrender.com/p/f21408

💡 Tip: AI agents can also pay this endpoint automatically via MCP.
  Run `modu mcp:serve` to connect it to Claude Desktop or Claude Code.

3. Call & Pay with modu get

modu get https://modu-proxy.onrender.com/p/f21408

When challenged with HTTP 402, modu automatically opens a browser page to connect and sign via Lute wallet, then retrieves the paid 200 OK response.


The x402 Micropayment Protocol

When consumers call your proxy:

  1. Unpaid Request (HTTP 402):

    curl -i https://modu-proxy.onrender.com/p/f21408

    Returns an HTTP 402 Payment Required challenge containing recipient address, price, and a one-time cryptographic nonce.

  2. Consumer Pays on Algorand: Consumer transfers 0.02 USDC on Algorand testnet with transaction note modu:<nonce>.

  3. Paid Request (HTTP 200):

    curl -i -H "X-PAYMENT-TXID: <txid>" https://modu-proxy.onrender.com/p/f21408

    The edge proxy queries the Algorand indexer, verifies the payment, prevents replays, settles revenue into your account, and streams back the origin API response with the X-PAYMENT-RESPONSE settlement receipt.


CLI Command Reference

| Command | Description | | :--- | :--- | | modu config [address] | Configure authentication and Algorand payout destination (--address, --relogin) | | modu register [options] | Monetize an origin endpoint (--url, --price, --asset, --path) or interactive wizard | | modu get <url> / modu call <url> | Call an x402 endpoint with automated browser payment via Lute wallet | | modu list | List all registered endpoints, today's volume, and revenue | | modu stats <endpointId> | View detailed revenue summary, daily volume, and top payers | | modu logs <endpointId> [--follow] | View recent request logs or stream live traffic (-f, -n <limit>) | | modu revoke <endpointId> | Immediately revoke an endpoint (HTTP 410 Gone) | | modu wallet create | Generate a fresh Algorand keypair locally (mnemonic shown once) | | modu wallet connect <address> | Set your payout Algorand wallet address |


License

MIT (c) Rupam Ghosh