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

@frontiercompute/zcash-402

v0.1.0

Published

Shielded x402 payment facilitator for AI agents. Pay for HTTP resources with ZEC via split-key MPC signing and ZAP1 attestation.

Readme

@frontiercompute/zcash-402

Shielded x402 payment facilitator for AI agents. Part of the ShieldedVault agent custody stack.

What this does

An MCP server that lets AI agents pay for HTTP resources using shielded ZEC. The payment flow:

  1. Agent encounters an x402-gated resource (HTTP 402)
  2. zcash-402 negotiates payment terms with the resource server
  3. Constructs a shielded ZEC transaction via split-key MPC signing
  4. Attests the payment via ZAP1 (creates a verifiable Merkle receipt)
  5. Submits payment proof to unlock access

The agent never holds the full spending key. Policy enforcement lives on-chain via Ika 2PC-MPC. Every payment has a ZAP1 attestation anchored on Zcash mainnet.

Tools (4 MCP tools)

| tool | description | |------|-------------| | pay_resource | Pay for an x402-gated HTTP resource using shielded ZEC | | check_balance | Check available shielded balance for payments | | verify_receipt | Verify a ZAP1 attestation receipt from a prior payment | | list_payments | List recent payments with attestation status |

Quick start

npm install @frontiercompute/zcash-402

Configure environment:

export ZAP1_API_KEY="your-api-key"
export IKA_DWALLET_ID="your-dwallet-id"
export ZEC_PAYMENT_ADDRESS="your-shielded-address"
export ZEBRA_RPC_URL="http://127.0.0.1:8232"  # optional, defaults to localhost

Run as MCP server:

npx @frontiercompute/zcash-402

Discovery

This package includes a .well-known/mcp.json server card for auto-discovery by MCP-compatible clients (Claude Desktop, Cursor, Windsurf, VS Code).

Architecture

Agent (via MCP)
    |
    v
zcash-402 (this package)
    |
    +-- x402/negotiate.ts    parse 402 response, extract payment terms
    +-- x402/construct.ts    build shielded ZEC tx via Zebra RPC
    +-- x402/submit.ts       submit payment proof to resource server
    +-- attestation/         create ZAP1 receipt for the payment
    |
    v
zcash-ika (split-key MPC)   agent signs, never holds full key
    |
    v
Zcash mainnet                transaction broadcast + ZAP1 anchor

ShieldedVault properties

This package implements two of the five ShieldedVault agent custody properties:

  • Non-drainable: the agent can pay but never holds the full spending key (Ika 2PC-MPC)
  • Attested: every payment produces a ZAP1 Merkle receipt anchored on Zcash mainnet

Related packages

| package | description | |---------|-------------| | @frontiercompute/zcash-mcp | MCP server for Zcash (12 tools) | | @frontiercompute/zcash-ika | Split-key MPC custody via Ika | | @frontiercompute/zap1 | ZAP1 attestation protocol SDK | | @frontiercompute/openclaw-zap1 | AI agent attestation wrapper |

License

MIT