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

agentid-protocol

v0.2.0

Published

AgentID Protocol SDK — Identity for AI Agents

Downloads

24

Readme

agentid-protocol

Identity for AI Agents — SDK for the AgentID Protocol

npm License: MIT

AgentID is an open protocol for AI agent identification. Free, decentralized, on-chain on Base L2.

  • 🪪 Register agent identities on-chain
  • 🔍 Resolve agents by name or ID (single + batch)
  • ✅ Verify trust levels (0-3)
  • ⛽ Gasless registration (via relayers)
  • 🔐 Scoped relayer access, pause, trust revocation
  • 🔄 UUPS upgradeable (v2)
  • 📦 Works in Node.js, browsers, and edge runtimes

Install

npm install agentid-protocol

Quick Start

Read (no wallet needed)

import { AgentID } from 'agentid-protocol'

const client = AgentID.reader()

// Resolve by name
const agent = await client.resolveByName('rem')
console.log(agent.name)        // "rem"
console.log(agent.trustLevel)  // 2
console.log(agent.trustLabel)  // "platform-verified"
console.log(agent.active)      // true

// Check name availability
const available = await client.isNameAvailable('my-agent')

// Total registered agents
const total = await client.totalAgents()

// Contract version
const ver = await client.version() // "2.0.0"

Batch & Index Queries

// Batch resolve (up to 100)
const agents = await client.resolveMany([id1, id2, id3])

// All agents registered by an address
const myAgents = await client.getAgentsByRegistrant('0x...')

// All agents owned by an address
const owned = await client.getAgentsByOwner('0x...')

Write (requires private key)

import { AgentID } from 'agentid-protocol'

const client = new AgentID({
  privateKey: '0x...'
})

// Register a new agent
const { agentId, txHash } = await client.register({
  name: 'my-agent',
  metadataURI: 'ipfs://Qm...'  // optional
})

// Claim ownership (only registrant can claim)
await client.claim(agentId)

// Update metadata
await client.updateMetadata(agentId, 'ipfs://QmNew...')

// Transfer ownership
await client.transferOwnership(agentId, '0xNewOwner...')

// Deactivate/reactivate
await client.deactivate(agentId)
await client.reactivate(agentId)

Admin Operations

// Revoke trust for compromised agent
await client.revokeTrust(agentId)

// Emergency pause/unpause
await client.pause()
await client.unpause()

// Check if paused
const isPaused = await client.isPaused()

Trust Levels

| Level | Name | Description | Analogy | |-------|------|-------------|---------| | 0 | Self-registered | Agent registered itself | Self-signed SSL | | 1 | Owner-verified | Human owner claimed | Domain-validated SSL | | 2 | Platform-verified | Platform attested | Organization-validated SSL | | 3 | Cross-verified | Multiple independent verifications | Extended Validation SSL |

What's New in V2

  • UUPS Proxy — upgradeable without changing contract address
  • Scoped relayers — relayer can only manage agents it registered (not all agents)
  • Trust revocation — admin can reset trust to 0 for compromised agents
  • Emergency pause — stops all writes, reads still work
  • Batch resolveresolveMany() up to 100 agents in one RPC call
  • Index queriesgetAgentsByRegistrant(), getAgentsByOwner()
  • Name validation — control characters and pure whitespace names blocked
  • Custom errors — cheaper gas than string reverts
  • Full event coverageOwnershipTransferred, TrustRevoked, AdminTransferred

Contract

  • Network: Base Mainnet (Chain ID: 8453)
  • Proxy (use this): TBD after deploy
  • V1 (deprecated): 0x10bd779dca66a783d6F6d7b8168c67f149107484

Links

License

MIT