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

@veritynpm/sdk

v0.1.12

Published

TypeScript SDK for querying Verity Protocol agent scores and EAS attestations

Readme

@veritynpm/sdk

TypeScript SDK for Verity Protocol — on-chain reliability scoring for autonomous agents.

Scores agents 0–1000 across Economic, Solver, Governance, and Base Layer verticals. Every score is attested on-chain via EAS on Base.

Install

npm install @veritynpm/sdk
# or
pnpm add @veritynpm/sdk

Zero dependencies. ESM only — requires "type": "module" or a bundler. Works in Node.js and the browser via native fetch.

Quick start

import { VerityClient } from '@veritynpm/sdk'

const verity = new VerityClient({
  baseUrl: 'https://verity.tenpound.xyz',
})

const score = await verity.getScore('virtuals', '0xYourProviderAddress')
console.log(score.verticals[0].score)           // 0–1000
console.log(score.verticals[0].confidenceBand)  // 'insufficient' | 'low' | 'moderate' | 'high'
console.log(score.attestation?.easUid)           // EAS UID on Base

API

getScore(registryType, platformId)

Public — no payment required. Returns the latest Reliability Index per vertical and the most recent EAS attestation UID.

const score = await verity.getScore('erc8004', '42')

for (const v of score.verticals) {
  console.log(`${v.vertical}: ${v.score} (${v.confidenceBand})`)
}
// economic: 720 (moderate)
// base_layer: 540 (low)

getBreakdown(registryType, platformId, opts?)

Full signal breakdown — BSS, ROI, bot fingerprint, copy-trade detection, consistency. Gated behind x402 ($0.01 USDC on Base) in production. Bypassed on localhost.

import { VerityPaymentRequiredError } from '@veritynpm/sdk'

try {
  const breakdown = await verity.getBreakdown('virtuals', '0xabc...')
  console.log(breakdown.breakdown[0].bssRaw)
} catch (err) {
  if (err instanceof VerityPaymentRequiredError) {
    console.log('Payment required:', err.x402Details)
  }
}

verifyAttestation(easUid)

Verifies an EAS attestation directly on Base — does not call the Verity API.

const score = await verity.getScore('erc8004', '42')
const uid = score.attestation?.easUid

if (uid) {
  const attest = await verity.verifyAttestation(uid)
  if (attest && !attest.revoked) {
    console.log('Verified on Base:', attest.id)
  }
}

Gating pattern

import { VerityClient, VerityNotFoundError } from '@veritynpm/sdk'

const verity = new VerityClient({ baseUrl: 'https://verity.tenpound.xyz' })

async function isEligible(registryType, platformId) {
  try {
    const score = await verity.getScore(registryType, platformId)
    const economic = score.verticals.find(v => v.vertical === 'economic')
    if (!economic) return false

    return (
      economic.score >= 600 &&
      ['moderate', 'high'].includes(economic.confidenceBand) &&
      !!score.attestation
    )
  } catch (err) {
    if (err instanceof VerityNotFoundError) return false
    throw err
  }
}

Registry types

| registryType | platformId | Verticals | |---|---|---| | virtuals | Provider wallet address (0x…) | Economic | | erc8004 | ERC-721 token ID (uint256) | Economic, Base Layer, Solver | | warden | Space ID (uint64 string) | Solver | | fetchai | Agentverse address (agent1q…) | Base Layer | | wallet | EVM wallet address (0x…) | Economic, Governance | | olas | Olas token ID (uint256) | Base Layer |

Error handling

import { VerityError, VerityNotFoundError, VerityPaymentRequiredError } from '@veritynpm/sdk'

try {
  const score = await verity.getScore(registryType, platformId)
} catch (err) {
  if (err instanceof VerityNotFoundError) {
    console.log('Agent not indexed:', err.hint)
  } else if (err instanceof VerityPaymentRequiredError) {
    console.log('x402 payment required:', err.x402Details)
  } else if (err instanceof VerityError) {
    console.log('API error:', err.status, err.message)
  }
}

Links