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/openclaw-zap1

v0.2.3

Published

Zcash attestation layer for OpenClaw agents. 8 hooks, 14 tools, policy enforcement, session attestation, proof checkpoints.

Readme

openclaw-zap1

npm downloads license

Zcash attestation for OpenClaw agents. Messages, commands, sessions, and agent lifecycle events get anchored to Zcash mainnet via ZAP1.

First Zcash plugin on ClawHub. Live proofs: pay.frontiercompute.io | Demo: 00zeven.cash

No code changes to your agent. Eight hooks run silently, track sessions, attest messages, and emit proof checkpoints.

Install

openclaw plugins install @frontiercompute/openclaw-zap1

Config

{
  "agentId": "my-agent-001",
  "apiKey": "your-zap1-api-key",
  "apiUrl": "https://pay.frontiercompute.io",
  "policyRules": {
    "blockedTools": ["dangerous_tool"],
    "restrictedTools": ["send_funds"]
  },
  "proofInterval": 10
}
  • agentId: your agent's identity. Gets committed to the Merkle tree on first action.
  • apiKey: required for attestation. Get one by deploying your own ZAP1 instance or requesting access.
  • apiUrl: optional, defaults to the public API.
  • policyRules: optional. blockedTools prevents execution and attests the block. restrictedTools halts until operator confirms.
  • proofInterval: actions between proof checkpoints. Default 10. Set 0 to disable.

Without apiKey and agentId, only the read-only tools are available. The hooks don't fire.

Hooks (8)

All hooks fire automatically when configured. No agent code changes needed.

| Hook | What it does | |------|-------------| | message:sent | Attests outbound messages. Hashes channel + content. | | message:received | Attests inbound messages with sender identity, channel, and content hash. | | message:preprocessed | Attests enriched message body before it reaches the LLM. | | message:transcribed | Attests audio transcriptions with message ID and transcript hash. | | agent:bootstrap | Attests session open with timestamp on agent startup. | | session:patch | Attests session config changes and state transitions. | | gateway:startup | Attests gateway initialization. | | command | Attests command events. Every N actions (configurable via proofInterval), injects a proof checkpoint with attestation stats. |

What gets attested

| Agent does | What gets attested | ZAP1 event | |---|---|---| | Sends a message | Channel + message hash | AGENT_ACTION | | Receives a message | Sender + channel + content hash | AGENT_ACTION | | Preprocesses a message | Enriched body hash | AGENT_ACTION | | Transcribes audio | Message ID + transcript hash | AGENT_ACTION | | Starts up (bootstrap) | Timestamp | AGENT_ACTION | | Patches a session | Session key + patch hash | AGENT_ACTION | | Gateway starts | Timestamp | AGENT_ACTION | | Runs a command | Session key + action name | AGENT_ACTION |

Every attestation creates a leaf in the ZAP1 Merkle tree. The root is periodically anchored to Zcash mainnet. Any leaf is independently verifiable from the proof path.

The agent's financial activity (if using an Orchard wallet) stays shielded. The attestation layer proves what the agent did without revealing amounts or counterparties.

Tools (14)

| Tool | What it does | |------|-------------| | zap1_protocol_info | Protocol version, event types, hash function | | zap1_stats | Anchor count, leaf count, event distribution | | zap1_verify_proof | Check if a proof is valid by leaf hash | | zap1_get_proof_bundle | Full proof bundle for independent verification | | zap1_anchor_status | Current Merkle tree state | | zap1_anchor_history | All anchored roots with txids and block heights | | zap1_recent_events | Recent attestation events | | zap1_decode_memo | Decode any Zcash shielded memo format | | zap1_create_event | Create an attestation event (lifecycle, governance, agent) | | zap1_lifecycle | Full lifecycle view for an agent or participant | | zap1_agent_status | Attestation summary for an agent | | zap1_cohort_stats | Mining cohort statistics | | zap1_list_webhooks | List registered webhooks | | zap1_create_api_key | Provision a tenant API key (admin) |

Policy enforcement

The policyRules config defines tool-level access rules:

{
  "policyRules": {
    "blockedTools": ["shell_exec", "file_delete"],
    "restrictedTools": ["send_funds", "deploy_contract"]
  }
}

The policy module (src/policy.ts) exposes evaluatePolicy() for use in your agent's tool pipeline. Blocked tools return a rejection reason. Tools on the restrictedTools list halt until operator confirms. Wire this into your agent's tool dispatch to enforce rules before execution.

Verify your agent's track record

# See your agent's attestation history
curl https://pay.frontiercompute.io/lifecycle/my-agent-001

# Agent-specific status
curl https://pay.frontiercompute.io/agent/my-agent-001

# Verify any specific proof
curl https://pay.frontiercompute.io/verify/{leaf_hash}/check

# Export a proof bundle
curl https://pay.frontiercompute.io/verify/{leaf_hash}/proof.json

Proofs verifiable on 5 chains: Arbitrum (0x9D0B26010C9a7a2a8509Fd1a3407B741d9C10e3a), Base (0x3fD65055A8dC772C848E7F227CE458803005C87F), Hyperliquid (0x3fD65055A8dC772C848E7F227CE458803005C87F), Solana (93g4ftQS871PpxoWR4mYtWLhxxzAvx7D5CWTxMVoiaE6), NEAR (zap1anchor.testnet). Browser verification at frontiercompute.cash/verify.html.

Agent custody (new)

Pair with @frontiercompute/zcash-ika for split-key custody. Your agent holds half a secp256k1 key via Ika's 2PC-MPC. Spend policy enforced by Sui Move contract. One dWallet signs ZEC, BTC, and ETH. npm: zcash-ika.

Deploy your own

git clone https://github.com/Frontier-Compute/zap1.git
cd zap1
bash scripts/operator-setup.sh myoperator 3081
cd operators/myoperator && ./run.sh

Your own Merkle tree, your own anchor address, your own API keys. MIT licensed.

Protocol

  • 18 deployed event types across 7 families (lifecycle, staking, governance, ZSA, mining, validators, agents)
  • Live mainnet anchors. Check: https://pay.frontiercompute.io/stats. BLAKE2b-256 with domain-separated personalization
  • Verification SDKs: Rust (crates.io), JS (npm), Solidity (Sepolia)
  • ZIP draft: zcash/zips PR #1243
  • Full spec: ONCHAIN_PROTOCOL.md

Related Packages

| Package | What it does | |---------|-------------| | @frontiercompute/zcash-ika | Zcash + Bitcoin signing via Ika 2PC-MPC | | @frontiercompute/zcash-mcp | MCP server for Zcash (22 tools) | | @frontiercompute/zap1 | ZAP1 attestation client | | @frontiercompute/silo-zap1 | Silo agent attestation via ZAP1 |

License

MIT