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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@agentic-trust/8004-ext-sdk

v1.0.34

Published

ERC-8004 Agentic Trust SDK - A TypeScript SDK for managing AI agents with ENS integration, identity management, and reputation systems

Downloads

4,107

Readme

ERC-8004 Agentic Trust SDK

A TypeScript SDK for managing AI agents with ENS integration, identity management, and reputation systems on Ethereum L1 and L2. This SDK extends the core ERC-8004 SDK with agent-specific functionality.

Features

  • AI Agent Management: Complete lifecycle management for AI agents
  • ENS Integration: Seamless integration with Ethereum Name Service for agent naming
  • Multi-Chain Support: Works on Ethereum L1 and L2 networks (Base, Optimism)
  • Identity Management: Agent identity registration and metadata management
  • Reputation System: Feedback and scoring for AI agents
  • Organization Support: Tools for managing agent organizations

Installation

npm install @agentic-trust/8004-ext-sdk
# or
yarn add @agentic-trust/8004-ext-sdk
# or
pnpm add @agentic-trust/8004-ext-sdk

Quick Start

import { AIAgentENSClient, AIAgentIdentityClient } from '@agentic-trust/8004-ext-sdk';
import { sepolia } from 'viem/chains';

// Create an ENS client for agent management
const ensClient = new AIAgentENSClient(
  sepolia,
  'https://eth-sepolia.g.alchemy.com/v2/YOUR_KEY',
  adapter,
  '0x...', // ENS Registry
  '0x...', // ENS Resolver
  '0x...'  // Identity Registry
);

// Create an identity client
const identityClient = new AIAgentIdentityClient(
  11155111, // ETH Sepolia chain ID
  'https://eth-sepolia.g.alchemy.com/v2/YOUR_KEY',
  '0x...'  // Identity Registry
);

// Get agent identity by name
const { agentId, account } = await ensClient.getAgentIdentityByName('alice.agent.eth');

Core Components

AIAgentENSClient

Handles ENS operations for AI agents:

import { AIAgentENSClient } from '@agentic-trust/8004-ext-sdk';

const ensClient = new AIAgentENSClient(chain, rpcUrl, adapter, ensRegistry, ensResolver, identityRegistry);

// Get agent identity by ENS name
const { agentId, account } = await ensClient.getAgentIdentityByName('alice.agent.eth');

// Get agent account by ENS name
const account = await ensClient.getAgentAccountByName('alice.agent.eth');

// Get reverse resolution (account to ENS name)
const { agentId, ensName } = await ensClient.getAgentIdentityByAccount('0x...');

AIAgentIdentityClient

Manages agent identity and metadata:

import { AIAgentIdentityClient } from '@agentic-trust/8004-ext-sdk';

const identityClient = new AIAgentIdentityClient(chainId, rpcUrl, identityRegistry);

// Get agent metadata
const metadata = await identityClient.getMetadata(agentId, 'agentName');

// Get agent name
const name = await identityClient.getAgentName(agentId);

// Get agent EOA by account
const eoa = await identityClient.getAgentEoaByAgentAccount(agentAccount);

AIAgentReputationClient

Handles reputation and feedback:

import { AIAgentReputationClient } from '@agentic-trust/8004-ext-sdk';

const reputationClient = new AIAgentReputationClient(chain, orgAdapter, agentAdapter, reputationRegistry);

// Give feedback to an agent
await reputationClient.giveFeedback({
  agent: '0x...',
  score: 5,
  feedback: 'Excellent service!',
  metadata: [{ key: 'category', value: 'quality' }]
});

// Get reputation score
const score = await reputationClient.getReputationScore('0x...');

AIAgentL2ENSDurenClient

L2-specific ENS operations:

import { AIAgentL2ENSDurenClient } from '@agentic-trust/8004-ext-sdk';

const l2Client = new AIAgentL2ENSDurenClient(chain, rpcUrl, adapter, ensRegistry, ensResolver, identityRegistry);

// L2-specific agent operations
const account = await l2Client.getAgentAccountByName('alice.agent.base');

OrgIdentityClient

Organization management utilities:

import { OrgIdentityClient } from '@agentic-trust/8004-ext-sdk';

const orgClient = new OrgIdentityClient(adapter, { ensRegistry: '0x...', rpcUrl: 'https://...' });

// Get organization account by ENS name
const account = await orgClient.getOrgAccountByName('myorg.eth');

// Get organization EOA by account
const eoa = await orgClient.getOrgEoaByAccount(orgAccount);

Supported Networks

  • Ethereum Sepolia (Chain ID: 11155111)
  • Base Sepolia (Chain ID: 84532)
  • Optimism Sepolia (Chain ID: 11155420)

Dependencies

This SDK depends on:

  • @agentic-trust/8004-sdk - Core ERC-8004 functionality
  • viem - Ethereum library
  • ethers - Alternative Ethereum library
  • @metamask/smart-accounts-kit - MetaMask Smart Accounts integration
  • @thenamespace/mint-manager - ENS minting
  • @thenamespace/indexer - ENS indexing

Development

Building

npm run build

Development Mode

npm run dev

Cleaning

npm run clean

Architecture

The Agentic Trust SDK is built on top of the core ERC-8004 SDK and provides:

  1. Agent-Specific Extensions: Specialized classes for AI agent management
  2. ENS Integration: Seamless naming and resolution for agents
  3. Multi-Chain Support: Works across different Ethereum networks
  4. Reputation Management: Feedback and scoring systems
  5. Organization Tools: Utilities for managing agent organizations

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

Changelog

v1.0.0

  • Initial release
  • Full AI agent management support
  • ENS integration for L1 and L2
  • Reputation and feedback systems
  • Organization management tools
  • Multi-chain support