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

satrank-mcp

v3.0.1

Published

SatRank MCP server — Lightning trust oracle for AI agents on L402. 3 tools: intent (paid 2-sat ranked catalog lookup), get_endpoint_score (free per-endpoint Bayesian snapshot), verify_assertion (offline Schnorr verify). Bitcoin-pure, no x402/EVM.

Readme

SatRank MCP server

Lightning trust oracle for AI agents on L402. Bitcoin-pure.

[email protected] exposes 3 tools that let any MCP-compatible AI agent (Claude Code, Cursor, Codex, n8n, Claude Desktop) discover L402 endpoints, read their Bayesian trust posterior, and verify Nostr trust assertions offline.

This is the Bitcoin-pure trust layer that sits BEFORE the payment hop. Agents pay with whatever Lightning wallet they're configured with ; SatRank decides what's worth paying for and exposes the offline-verifiable signed oracle output.

What you get with one install

| Tool | What | |---|---| | intent | Category + budget + SLA → ranked L402 candidates with full Bayesian breakdown. Paid 2 sats per call via L402 (your wallet settles the invoice). | | get_endpoint_score | Per-endpoint trust snapshot (sha256 url_hash). Same posteriors + freshness, scoped to one URL. Free. | | verify_assertion | Offline Schnorr verify of a SatRank Nostr trust assertion (kind 30782). No network. Free. |

That's the entire surface. No fulfill proxy, no audit chain — V3 is the Bitcoin-pure trust layer, nothing more.

Install

Claude Code

claude mcp add satrank -- npx -y satrank-mcp

Or via the configuration file (~/.config/claude/mcp.json):

{
  "mcpServers": {
    "satrank": {
      "command": "npx",
      "args": ["-y", "satrank-mcp"]
    }
  }
}

Cursor / Codex / n8n / any MCP client

Same idea — point your MCP client at npx -y satrank-mcp. Stdio transport.

Self-hosted

Set SATRANK_API_BASE to your own SatRank deployment URL. The MCP package is HTTP-only ; it does not talk to Postgres or LND directly.

SATRANK_API_BASE=https://your-host.example npx -y satrank-mcp

Environment

| Var | Required | Default | What | |---|---|---|---| | SATRANK_API_BASE | no | https://satrank.dev | HTTP API the MCP proxies to |

Example agent flow

1. agent → satrank.intent(category="data", budget_sats=20, optimize="latency")
   → returns 3 ranked candidates {url, p_e2e, ci95, stage_posteriors,
     median_latency_ms, price_sats}. Paid 2 sats once via L402.

2. agent → satrank.get_endpoint_score(url_hash="<sha256>")
   → independent verification of one candidate's posterior. Free.

3. agent pays the chosen L402 endpoint with its own wallet.
   SatRank is NOT in the payment path.

4. (optional) agent → satrank.verify_assertion(event=<nostr_kind_30782>)
   → offline Schnorr verify. Useful for caching trust assertions and
     re-checking later without re-querying SatRank.

Multi-call discovery (deposit credits)

The HTTP API also exposes a deposit primitive — pre-pay N sats once, spend across many intent calls without a Lightning round-trip per call. Useful when an agent will make tens or hundreds of discovery calls in a window.

# 1. Mint a 100-sat deposit macaroon
curl -s -X POST https://satrank.dev/api/deposit \
  -H 'Content-Type: application/json' \
  -d '{"sats":100}'
# → returns {macaroon: "deposit_<id>", invoice: "lnbc...", payment_hash: "..."}

# 2. Pay the BOLT11 invoice with any Lightning wallet.

# 3. Subsequent calls use the deposit as a bearer:
curl -s -X POST https://satrank.dev/api/intent \
  -H 'Authorization: L402 deposit_<id>:<preimage_hex>' \
  -H 'Content-Type: application/json' \
  -d '{"category":"data"}'

# 4. Check remaining balance any time:
curl -s https://satrank.dev/api/deposit/<id>

Lightning-pure stance

SatRank only emits and consumes Lightning sats. No x402, no Base, no EVM. This is doctrine, not configuration.

License & links

  • License: MIT
  • Homepage: https://satrank.dev
  • Source: https://github.com/proofoftrust21/satrank