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

@krexa/kya

v1.0.0

Published

KYA (Know Your Agent) — open standard for AI agent identity and trust verification

Readme

@krexa/kya

KYA (Know Your Agent) is the open standard for AI agent identity and trust verification on Solana. One credential, seven sections, cryptographically signed — verify any agent in 3 lines of code.

Quick Start

npm install @krexa/kya
import { KYA } from '@krexa/kya';

const kya = new KYA();
const credential = await kya.resolve('agent.sol');
if (await kya.meetsThreshold('agent.sol', 'trusted')) {
  // agent is trusted — allow operation
}

Trust Tiers

| Tier | Score | Badge | Credit Level | |------|-------|-------|-------------| | Unverified | 0-199 | ○ Unverified | L0 ($0) | | Identified | 200-299 | ◐ Identified | L1 ($500) | | Provisional | 300-499 | ◑ Provisional | L1 ($500) | | Trusted | 500-649 | ✓ Trusted | L2 ($10K) | | Established | 650-749 | ✦ Established | L3 ($100K) | | Premium | 750-850 | ★ Premium | L4 ($500K) |

API Reference

| Method | Description | |--------|-------------| | kya.resolve(input) | Full KYA credential for a wallet, .sol domain, or name | | kya.quickCheck(input) | Fast minimal check (score, tier, defaults) | | kya.verify(credential) | Verify signature, expiry, and issuer trust | | kya.meetsThreshold(input, tier) | Does this agent meet a minimum trust tier? |

Credential Example

{
  "version": "1.0",
  "standard": "KYA-SOL-V1",
  "identity": {
    "wallet": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
    "domain": "alpha-bot.sol",
    "name": "Alpha Bot",
    "type": "trader",
    "registeredAt": 1713800000,
    "issuer": "KRXoracLe1111111111111111111111111111111111",
    "pdaWallet": null
  },
  "principal": {
    "wallet": "9wFZ...",
    "domain": null,
    "verified": true,
    "jurisdiction": "US"
  },
  "permissions": {
    "canTrade": true,
    "canBorrow": true,
    "canLend": false,
    "canServeApi": false,
    "allowedVenues": ["jupiter", "raydium"],
    "maxTxSize": 10000,
    "dailyLimit": 50000,
    "custom": {}
  },
  "score": {
    "value": 720,
    "level": 3,
    "trustTier": "established",
    "components": {
      "repaymentHistory": 95,
      "profitability": 78,
      "behavioralHealth": 85,
      "usagePatterns": 70,
      "accountMaturity": 60
    },
    "snsBonus": 10,
    "lastUpdated": 1713886400
  },
  "reputation": {
    "totalBorrowed": 250000,
    "totalRepaid": 248500,
    "onTimeRate": 98.5,
    "defaultCount": 0,
    "operatingDays": 180,
    "totalTransactions": 12400,
    "totalRevenue": 45000,
    "creditCycles": 24
  },
  "financial": {
    "currentDebt": 1500,
    "creditLimit": 100000,
    "healthFactor": 2.4,
    "apr": 8.5,
    "walletBalance": 15000
  },
  "attestation": {
    "issuer": "KRXoracLe1111111111111111111111111111111111",
    "issuedAt": 1713886400,
    "expiresAt": 1714491200,
    "signature": "base64-ed25519-signature...",
    "onChainAccount": null,
    "slot": null
  }
}

Specification

See SPEC.md for the full KYA v1.0 specification, including credential format, signing process, verification, and API details.

License

MIT