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

@pinata/erc8004

v1.1.0

Published

Interactive wizard to register ERC-8004 AI agents with Pinata IPFS

Readme

@pinata/erc8004

Interactive terminal wizard to register ERC-8004 AI agents on-chain with Pinata IPFS.

Quick Start

npx @pinata/erc8004

Or with Bun:

bunx @pinata/erc8004

Or run the CLI directly:

pinata-8004

Prerequisites

  1. Pinata account (free tier works)

  2. Native tokens for gas on your chosen network

    • Testnets: Get free tokens from faucets (links shown in wizard)
    • Mainnets: Small amount of native currency (ETH, POL, BNB, etc.)
  3. Wallet private key

    • The wallet that will own your agent NFT

Supported Networks

| Network | Type | |---------|------| | Ethereum Mainnet | mainnet | | Ethereum Sepolia | testnet | | Base Mainnet | mainnet | | Base Sepolia | testnet | | Polygon Mainnet | mainnet | | Polygon Amoy | testnet | | Monad Mainnet | mainnet | | Monad Testnet | testnet | | BSC Mainnet | mainnet | | BSC Testnet | testnet |

Features

Create Agent

  • Select any supported network (mainnet or testnet)
  • Enter agent details (name, description, image)
  • Configure all ERC-8004 service types (MCP, A2A, OASF, ENS, DID, email)
  • Set trust models and x402 payment support
  • Register on-chain and store metadata on Pinata IPFS

Update Agent

  • Update URI: Re-upload agent card to IPFS and update on-chain
  • Set payment wallet: Configure the on-chain address for receiving payments

Verify Agent

  • Look up any agent by ID
  • Validate schema against ERC-8004 spec
  • Check registration matching
  • Verify endpoint domains via .well-known

Payment Wallet

The payment wallet is stored on-chain, not in the agent card JSON. This ensures clients always get the authoritative payment address by querying the contract directly.

  • x402 Support (in agent card): A boolean flag indicating your agent accepts x402 payments
  • Payment Wallet (on-chain): The actual address where payments are sent

By default, the payment wallet is the owner's address (whoever registered the agent). To use a different wallet:

  1. Go to Update Agent > Set payment wallet
  2. Enter your agent ID
  3. Enter the private key of the wallet you want to receive payments
  4. The new wallet signs an EIP-712 message proving consent
  5. The owner submits the transaction to update the on-chain record

Clients looking to pay your agent will:

  1. Check x402Support: true in your agent card
  2. Call getAgentWallet(agentId) on-chain to get the payment address

What is ERC-8004?

ERC-8004 is an open standard for AI agent identity and trust. It gives your agent:

  • Portable identity — Your agent exists as an NFT, not tied to any platform
  • Discoverable endpoints — Other agents can find your MCP server, A2A endpoint, and more
  • Composable reputation — Feedback builds a track record that follows your agent

Learn more: ERC-8004 Specification

Development

bun install
bun run dev

Build

bun run build

Outputs dist/index.js for standalone use.

Programmatic Usage

For scripting and automation, see the example scripts in the same repo: github.com/PinataCloud/erc8004

License

MIT