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

erc-8259

v1.3.1

Published

Standard interfaces and ERC8259Guard for AI agent identity, reputation, and decentralized threat registry (ERC-8259).

Readme

erc-8259

Ethereum ERC-8259 PR #2142 Merged License: CC0-1.0 NPM Version

Standard Solidity interfaces and ERC8259Guard for ERC-8259: AI Agent Identity & Threat Registry.

Protect your DeFi protocols and smart contracts from rogue autonomous AI agents in 2 lines of code.


[!CAUTION] CRITICAL SECURITY FIX - v1.3.0 - UPGRADE IMMEDIATELY Versions prior to 1.3.0 contained a logic flaw where deactivated agents retained verified status:

  • getEffectiveTier(agent) returned non-zero for deactivated agents with unexpired tiers.
  • isVerified(agent) returned true for deactivated agents.
  • calculateTrustScore(agent) awarded full trust score to deactivated agents. This allowed banned/compromised agents to bypass ERC8259Guard checks. Found by internal audit (2026-11-04) - present since v1.0.0. Upgrade to v1.3.0 immediately. See CHANGELOG.md for details.

[!IMPORTANT] UPGRADE NOTICE FOR USERS OF v1.0.x / v1.1.0: Versions prior to 1.2.0 contained a desynchronized version of IAgentIdentityRegistry.sol:

  • Missing uint256 verificationExpiry in AgentIdentity.
  • Missing getEffectiveTier(address).
  • Incorrectly accepted verificationTier in registerAgent(), which allowed self-assigned verification tiers.

Upgrade to v1.2.1 immediately. In v1.2.0+, newly registered agents strictly initialize at Tier 0 (unverified), and verification status expires dynamically via getEffectiveTier(). See CHANGELOG.md for details.


📦 Installation

npm install erc-8259

Or with yarn / pnpm:

yarn add erc-8259
pnpm add erc-8259

With Foundry:

forge install sigui-protocol/contracts

🛡️ Quickstart: 2-Line Integration

Inherit ERC8259Guard and append onlySafeAgent to any function you want to protect against known rogue agents or exploit bots:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

// 1. Import
import {ERC8259Guard} from "erc-8259/contracts/ERC8259Guard.sol";

// 2. Protect sensitive logic
contract Vault is ERC8259Guard {
    constructor(address _threatRegistry) 
        ERC8259Guard(_threatRegistry, address(0)) {}

    function withdrawLiquidity(uint256 amount) external onlySafeAgent {
        // Attackers flagged in the decentralized registry are reverted instantly.
    }
}

🔍 Available Modifiers

| Modifier | Description | |---|---| | onlySafeAgent | Reverts if the caller (msg.sender) is marked as an attacker in IThreatRegistry. | | onlyVerifiedAgent | Requires the agent to be safe AND registered with a verification tier (Tier > 0). | | minTrustScore(threshold) | Enforces a minimum trust score (0 to 1000 basis points, e.g. 700 = 70.0%). |


📍 Live Deployments

[!WARNING] ⚠️ DEPRECATED CONTRACT NOTICE (Sepolia): The Vyper contract deployed at 0x3806aeb76eDD2E22D3cF66A163113c4b24243b29 predates ERC-8259 PR #2137 and does NOT include verification_expiry, get_effective_tier, or incident lifecycle (retract_attack/resolve_attack). It accepts verification_tier directly at registration (privilege escalation risk). DO NOT use this address in production or as a reference implementation. A corrected deployment is tracked at Redeployment Issue #2.

| Network | Contract | Status | Address | |---|---|---|---| | Ethereum Sepolia | AgentIdentityRegistry | ⚠️ DEPRECATED (Pre-PR #2137) | 0x3806aeb76eDD2E22D3cF66A163113c4b24243b29 | | Aptos Testnet | agent_reputation | ⏳ Not deployed — source only | — (deployment planned; full tx hash will be published upon deployment) |


📜 Standard Specification