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

@nia-agent-cyber/agent-trust-elizaos

v0.1.0

Published

ElizaOS plugin for Agent Trust SDK — trust-gated actions, evaluators, and providers for AI agents

Readme

@nia-agent-cyber/agent-trust-elizaos

ElizaOS plugin for Agent Trust — add on-chain trust-tier gating to AI agents built with ElizaOS.

Installation

npm install @nia-agent-cyber/agent-trust-elizaos @nia-agent-cyber/agent-trust-sdk @elizaos/core ethers

Quick Start

import { AgentTrust } from '@nia-agent-cyber/agent-trust-sdk';
import { createAgentTrustPlugin } from '@nia-agent-cyber/agent-trust-elizaos';
import { ethers } from 'ethers';

const provider = new ethers.JsonRpcProvider('https://sepolia.base.org');
const agentTrust = new AgentTrust({ network: 'baseSepolia', provider });

const plugin = createAgentTrustPlugin({
  agentTrust,
  requiredTier: 'contributor',   // minimum trust tier required
  addressKey: 'callerAddress',   // where to find the address in message.content
});

const runtime = new AgentRuntime({
  plugins: [plugin],
  // ...
});

Components

TrustCheckAction (CHECK_AGENT_TRUST)

An ElizaOS Action that looks up the on-chain trust tier of a wallet address mentioned in a message.

import { createTrustCheckAction } from '@nia-agent-cyber/agent-trust-elizaos';

const action = createTrustCheckAction({
  agentTrust,
  requiredTier: 'contributor',   // optional: check against minimum
  addressKey: 'address',         // content key or fallback to text scan
});

The action:

  • validate: returns true if a valid Ethereum address is found
  • handler: calls getTier() + getScore(), invokes callback with result
  • callback payload: { text: "...", trustCheck: TrustCheckResult }

TrustGuardEvaluator (TRUST_GUARD)

An ElizaOS Evaluator that post-processes messages and writes trust results to state.

import { createTrustGuardEvaluator } from '@nia-agent-cyber/agent-trust-elizaos';

const evaluator = createTrustGuardEvaluator({
  agentTrust,
  requiredTier: 'trusted',
  addressKey: 'address',
});

Writes state.trustGuardResult after each turn:

{
  address: '0x...',
  passed: true,                    // whether tier requirement was met
  tier: { level: 2, name: 'trusted' },
  requiredTier: 'trusted',
}

TrustProvider

An ElizaOS Provider that enriches agent state with trust tier context.

import { createTrustProvider } from '@nia-agent-cyber/agent-trust-elizaos';

const provider = createTrustProvider({ agentTrust, addressKey: 'address' });

Returns a formatted string injected into the agent's context:

[Trust Context]
Address: 0x...
Tier: trusted (level 2)
Score: 72
Verified: no

createAgentTrustPlugin

Factory that bundles all three components into a single ElizaOS plugin:

const plugin = createAgentTrustPlugin({
  agentTrust,
  requiredTier: 'contributor',
  addressKey: 'address',
});
// plugin.actions   → [TrustCheckAction]
// plugin.evaluators → [TrustGuardEvaluator]
// plugin.providers  → [TrustProvider]

Tier Reference

| Level | Name | Description | |-------|------|-------------| | 0 | unverified | Default | | 1 | contributor | Active with basic reputation | | 2 | trusted | Established with peer vouches | | 3 | verified | Highly trusted, strong validation | | 4 | expert | Elite, exceptional track record |

Testing

All tests are offline (no live RPC calls):

cd packages/elizaos && npm test
# 74 tests passing

ElizaOS Type Shim

This package includes a minimal type shim for @elizaos/core types in src/eliza-types.ts. Real ElizaOS types are resolved at consumer install time via peerDependencies.