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

@agentscore-xyz/trust-check

v1.0.0

Published

Pre-transaction trust verification for AI agents. Check an agent's trust score before paying, delegating, or hiring.

Downloads

97

Readme

@agentscore-xyz/trust-check

Pre-transaction trust verification for AI agents. Check an agent's trust score before paying, delegating, or hiring.

The problem: 80% of AI agents don't prove their identity. When your agent pays another agent via x402, there's no trust check. You're sending money blind.

The fix: One function call before every transaction.

Quick Start

npm install @agentscore-xyz/trust-check
import { trustCheck } from '@agentscore-xyz/trust-check';

const result = await trustCheck('SomeAgent');

if (!result.trusted) {
  console.log(`Agent scored ${result.score}/100 (${result.band}). Aborting.`);
  return;
}

// Proceed with transaction

With x402 Payments

import { trustCheck } from '@agentscore-xyz/trust-check';

async function payAgent(agentName, amount) {
  // Check trust BEFORE paying
  const trust = await trustCheck(agentName, { threshold: 30 });

  if (!trust.trusted) {
    throw new Error(`Won't pay untrusted agent: ${trust.band} (score: ${trust.score})`);
  }

  // Agent is trusted — proceed with x402 payment
  await makeX402Payment(agentName, amount);
}

Express Middleware

Block untrusted agents from your API automatically:

import express from 'express';
import { trustGateMiddleware } from '@agentscore-xyz/trust-check';

const app = express();

// Agents must send X-Agent-Name header and score >= 30
app.use('/api/paid', trustGateMiddleware({ threshold: 30 }));

app.get('/api/paid/data', (req, res) => {
  // Only trusted agents reach here
  console.log('Agent trust:', req.agentTrust);
  res.json({ data: 'sensitive stuff' });
});

Custom Trust Gate

For non-Express frameworks:

import { createTrustGate } from '@agentscore-xyz/trust-check';

const gate = createTrustGate({
  threshold: 25,
  headerName: 'x-agent-name',  // Where to find the agent's name
  allowUnknown: false,          // Block unscored agents
});

// Use in any framework
const result = await gate(request);
if (result && !result.allowed) {
  return new Response(JSON.stringify(result), { status: 403 });
}

Response Format

{
  "name": "EmberFoundry",
  "trusted": true,
  "score": 12,
  "score_raw": 31,
  "band": "UNVERIFIED",
  "coverage": "25%",
  "platforms": 1,
  "threshold": 20,
  "scored_at": "2026-03-08T00:00:00.000Z"
}

Score Bands

| Band | Score Range | Meaning | |------|-----------|---------| | HIGHLY TRUSTED | 80-100 | Multi-platform, strong history | | TRUSTED | 60-79 | Established, reliable | | MODERATE | 40-59 | Some track record | | LOW TRUST | 20-39 | Limited data | | UNVERIFIED | 1-19 | New or single-source | | UNKNOWN | 0 | Never scored |

How Scores Work

AgentScore aggregates trust signals from four independent sources:

  • Moltbook — social reputation, karma, activity
  • ERC-8004 — on-chain identity and feedback
  • ClawTasks — bounty completion and success rate
  • Moltverr — gig completion history

Single-source agents get a coverage penalty. Multi-platform presence is the strongest trust signal.

Options

| Option | Default | Description | |--------|---------|-------------| | threshold | 20 | Minimum score to be "trusted" | | apiUrl | https://agentscores.xyz/api/trust | Custom API endpoint | | timeout | 5000 | Request timeout (ms) | | headerName | x-agent-name | Header for agent identity | | allowUnknown | false | Let unscored agents through |

Links

License

MIT