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

@aegisaudit/sdk

v0.5.0

Published

TypeScript SDK for the AEGIS Protocol — query and interact with on-chain ZK skill attestations on Base

Readme

@aegisaudit/sdk

npm license

TypeScript SDK for the AEGIS Protocol — query and interact with on-chain ZK skill attestations on Base.

Install

npm install @aegisaudit/sdk

Quick Start

import { AegisClient } from '@aegisaudit/sdk';

// Create a read-only client (no wallet needed)
const client = new AegisClient({ chainId: 84532 });

// List all registered skills
const skills = await client.listAllSkills();
console.log(`${skills.length} skills registered`);

// Get attestations for a skill
const attestations = await client.getAttestations(skills[0].skillHash);

// Verify a ZK proof on-chain
const valid = await client.verify(skills[0].skillHash, 0);
console.log('Proof valid:', valid);

// Get skill metadata
const uri = await client.getMetadataURI(skills[0].skillHash);

How to Use AEGIS

AEGIS is a trust verification layer, not a skill execution runtime. It answers the question: "Has this AI agent skill been audited, and can I trust the audit?"

What AEGIS does

  • Tells you if a skill has been audited (attestation exists)
  • Verifies the ZK proof on-chain (is the audit legitimate?)
  • Shows the audit level and how much ETH the auditor staked (skin in the game)

What AEGIS does NOT do

  • Execute or run skills
  • Host skill code or definitions
  • Provide APIs for the skills themselves

Integration Pattern

If you're building an agent that wants to run a third-party skill safely:

import { AegisClient } from '@aegisaudit/sdk';

const aegis = new AegisClient({ chainId: 84532 });

// 1. Look up the skill on the registry
const skills = await aegis.listAllSkills();
const skill = skills.find(s => s.skillHash === TARGET_SKILL_HASH);

if (!skill) {
  throw new Error('Skill not registered on AEGIS — no audit exists');
}

// 2. Check the attestation
const attestations = await aegis.getAttestations(skill.skillHash);
const att = attestations[0];

console.log(`Audit level: ${att.auditLevel}`);      // 1, 2, or 3
console.log(`Auditor stake: ${att.stakeAmount} wei`); // ETH at risk

// 3. Verify the ZK proof on-chain
const proofValid = await aegis.verify(skill.skillHash, 0);

if (!proofValid) {
  throw new Error('ZK proof verification failed — do not trust this audit');
}

// 4. Now you can trust the audit → go execute the skill
//    Get the skill code from the skill publisher (not from AEGIS)
//    e.g., fetch from the publisher's API, npm package, or IPFS

Audit Levels

| Level | Meaning | |---|---| | 1 | Basic — code review only | | 2 | Standard — code review + input validation | | 3 | Comprehensive — full security audit with fuzzing |

Higher level = more thorough audit. The auditor's staked ETH gets slashed if the audit is disputed and found fraudulent.

API Reference

new AegisClient(config)

Create a client instance.

const client = new AegisClient({
  chainId: 84532,           // Base Sepolia (default registry auto-resolved)
  rpcUrl: 'https://...',    // Optional custom RPC
  registryAddress: '0x...',  // Optional override
});

Read Operations

These work without a wallet.

| Method | Description | |---|---| | listAllSkills(options?) | List all registered skills from on-chain events | | listAllAuditors(options?) | List all registered auditors | | getAttestations(skillHash) | Get all attestations for a specific skill | | verify(skillHash, index) | Verify an attestation's ZK proof on-chain | | getAuditorReputation(commitment) | Get an auditor's reputation data | | getMetadataURI(skillHash) | Get the metadata URI for a skill | | listDisputes(options?) | List opened disputes | | listResolvedDisputes(options?) | List resolved disputes |

Write Operations

These require a wallet via client.setWallet(walletClient).

| Method | Description | |---|---| | registerSkill(params) | Register a skill with a verified attestation | | registerAuditor(commitment, stake) | Register as an auditor by staking ETH | | addStake(commitment, amount) | Add stake to an existing auditor registration | | openDispute(skillHash, index, evidence, bond) | Dispute a skill attestation |

Prover

Generate ZK attestation proofs locally.

import { generateAttestation, loadProofFromFiles } from '@aegisaudit/sdk';

// Generate a proof in-process (requires WASM)
const result = await generateAttestation({
  skillHash: '0x...',
  auditorSecret: '0x...',
  score: 85,
  metadataHash: '0x...',
});

// Or load a pre-generated proof from files
const proof = await loadProofFromFiles('./proof', './vkey');

IPFS Metadata

import { fetchMetadata, uploadMetadata } from '@aegisaudit/sdk';

const metadata = await fetchMetadata('ipfs://Qm...');

Constants

import {
  CHAIN_CONFIG,         // { base, baseSepolia } chain configs
  REGISTRY_ADDRESSES,   // Registry contract addresses per chain
  DEPLOYMENT_BLOCKS,    // Block numbers for event scanning
  MIN_AUDITOR_STAKE,    // 0.01 ETH
  MIN_DISPUTE_BOND,     // 0.005 ETH
  REGISTRATION_FEE,     // 0.001 ETH
} from '@aegisaudit/sdk';

Configuration

The AegisConfig type:

interface AegisConfig {
  chainId: number;           // 84532 (Base Sepolia) or 8453 (Base)
  rpcUrl?: string;           // Custom RPC URL (defaults to public RPC)
  registryAddress?: Address; // Override registry address
}

Links

License

MIT