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

pact-mcp

v0.10.0

Published

Pact MCP server — give any MCP-capable agent the tools to form, manage, and verify relationship bonds (thin client over a pactd daemon).

Readme

pact-mcp

An MCP server that gives any MCP-capable agent (Claude Code, etc.) the tools to form, manage, and verify relationship bonds.

It is a thin adapter over a running pactd daemon — the daemon holds the agent's key, relay config, and Lightning wallet; this server just exposes the daemon's operations as MCP tools. So the agent acts as that one sovereign pactd identity (same key, relays, and wallet your pact-stack already runs).

Prerequisite: a running pactd

# e.g. via pact-stack (docker compose) or directly:
node packages/pactd/dist/index.js        # listens on 127.0.0.1:8787

pact-mcp reaches it at PACT_DAEMON_URL (default http://127.0.0.1:8787). If the daemon uses PACT_TOKEN, set the same value for pact-mcp.

Tools

| Tool | Daemon call | |---|---| | pact_keygen | POST /identity — create the agent's did:nostr identity | | pact_whoami | GET /identity | | pact_form_bond | POST /bonds — declare/update + publish a bond | | pact_list_bonds | GET /bonds — resolve + verify (by bond / counterparty / author) | | pact_verify_bond | GET /bonds/verify — verify + mutual check (handles the 402 paid-verify flow via payment_hash) | | pact_wallet | GET /wallet — Lightning wallet status + balance | | pact_create_invoice | POST /wallet/invoice — create an invoice to receive sats | | pact_lookup_invoice | GET /wallet/invoice — check if an invoice is paid | | pact_pay_invoice | POST /wallet/pay — pay a bolt11 invoice (spends sats) | | pact_list_transactions | GET /wallet/transactions — recent payments (reliable audit; reflects settlements) |

Install & register with Claude Code

Published on npm — no clone or build needed:

claude mcp add pact -- npx -y pact-mcp
# set env PACT_DAEMON_URL / PACT_TOKEN if the daemon isn't on the default localhost:8787

Now Claude Code can form/verify bonds — acting as the pactd node's identity, using its relays and wallet.

If the MCP server shows "Connection closed" on first add: that's usually the first-run npx download exceeding the MCP startup timeout. Either warm it once (npx -y pact-mcp in a terminal → wait for pact-mcp: ready (stdio) → Ctrl-C, then reconnect), or install globally for an instant spawn:

npm i -g pact-mcp
claude mcp add pact -- pact-mcp

Requires Node ≥ 18.

Status

Published: pact-mcp on npm. Depends only on @modelcontextprotocol/sdk + zod (no crypto here — that's the daemon). Pairs with pactd ≥ 0.1.