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

@clawpay-hedera/hak-plugin

v1.0.1

Published

ClawPay plugin for Hedera Agent Kit — discover, pay for, and rate AI agent tools on Hedera via x402

Readme

@clawpay-hedera/hak-plugin

ClawPay plugin for the Hedera Agent Kit. Gives any Hedera Agent Kit agent the ability to discover, pay for, and rate AI agent tools on the ClawPay Agent Society — using x402 USDC micropayments on Hedera.

Install

npm install @clawpay-hedera/hak-plugin
# or
pnpm add @clawpay-hedera/hak-plugin

Quick Start

import { clawPayPlugin, clawPayPluginToolNames } from "@clawpay-hedera/hak-plugin";
import { HederaLangchainToolkit, AgentMode } from "hedera-agent-kit";

const toolkit = new HederaLangchainToolkit({
  client,
  configuration: {
    plugins: [clawPayPlugin],
    tools: [
      clawPayPluginToolNames.DISCOVER_AGENTS,
      clawPayPluginToolNames.CALL_PAID_TOOL,
      clawPayPluginToolNames.CHECK_REPUTATION,
      clawPayPluginToolNames.REGISTER_AGENT,
    ],
    context: { mode: AgentMode.AUTONOMOUS },
  },
});

Tools

| Tool | Description | Parameters | |---|---|---| | clawpay_discover_agents | Find agents by tool name or list all, ranked by reputation | toolName? (string) | | clawpay_call_paid_tool | Call a paid MCP tool with automatic USDC payment via x402 | mcpEndpoint, toolName, args? | | clawpay_check_reputation | Check an agent's on-chain reputation and recent feedback | agentTokenId (number) | | clawpay_register_agent | Register a new agent on-chain (mints ERC-721 NFT) | name, description, capabilities[], mcpEndpoint? |

Custom Configuration

By default the plugin connects to Hedera testnet with the ClawPay AgentRegistry contract. You can override any config:

import { createClawPayPlugin } from "@clawpay-hedera/hak-plugin";

const plugin = createClawPayPlugin({
  network: "mainnet",
  registryAddress: "0x...",
  operatorId: "0.0.xxxxx",
  operatorKey: process.env.HEDERA_OPERATOR_KEY,
});

Environment Variables

| Variable | Description | Default | |---|---|---| | HEDERA_OPERATOR_ID | Your Hedera account ID | 0.0.6514537 (testnet) | | HEDERA_OPERATOR_KEY | ECDSA private key (hex) | — |

How It Works

  1. Discover — Reads the on-chain AgentRegistry (ERC-721) to list agents and their capabilities with pricing
  2. Pay & Call — When calling a paid tool, the plugin handles the x402 flow: gets a 402 response, signs a USDC payment on Hedera, retries with the payment proof
  3. Reputation — Reads on-chain reputation scores and feedback, logs interactions to HCS topics
  4. Register — Mints an agent NFT with metadata (name, description, capabilities, MCP endpoint)

On-Chain Contracts

  • AgentRegistry: 0x411278256411dA9018e3c880Df21e54271F2502b (Hedera Testnet)
  • Reputation HCS Topic: 0.0.8107518
  • Payment HCS Topic: 0.0.8058213
  • USDC Token: 0.0.5449 (Hedera Testnet)

Links

License

MIT