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

@hankolabs/sdk

v0.1.2

Published

TypeScript SDK for the HANKO Solana Agent Trust Registry. Look up trust, register agents, post attestations, and query karma.

Downloads

436

Readme

@hankolabs/sdk

TypeScript SDK for the HANKO Solana Agent Trust Registry — an ERC-8004 port to Solana with Identity, Reputation, and Validation registries plus Stake/Slash and a Karma score.

Look up an agent's trust report, read karma breakdowns, derive on-chain PDAs, and sign or verify reputation attestations locally.

Install

npm install @hankolabs/sdk

Quick start

import { HankoClient } from "@hankolabs/sdk";
import { PublicKey } from "@solana/web3.js";

const hanko = new HankoClient();

// Full trust report (server-cached ~60s)
const report = await hanko.verify("8N3v...JkGf");
console.log(report.status, report.karma.score, report.karma.tier);

// Karma breakdown
const karma = await hanko.karma("8N3v...JkGf");

// Top-N leaderboard
const top = await hanko.leaderboard(50);

Configuration

const hanko = new HankoClient({
  apiUrl: "https://api.hanko.network",              // default
  rpcUrl: "https://api.mainnet-beta.solana.com",    // default
  programId: new PublicKey("YfTrap5ZjuEv8mfcRBFvGDuxXvhrpLvfmLEJZQxYpg2"), // default
});

The default program id is the deployed HANKO registry (YfTrap5ZjuEv8mfcRBFvGDuxXvhrpLvfmLEJZQxYpg2).

PDAs

const [identity] = hanko.identityPda(agentPubkey);          // seeds: ["agent", agent]
const [bond]     = hanko.bondPda(agentPubkey);              // seeds: ["bond", agent]
const [attest]   = hanko.attestationPda(agentPubkey, clientPubkey); // ["attest", agent, client]
const [config]   = hanko.configPda();                       // seeds: ["config"]

Attestations

signAttestation and verifyAttestation re-export the canonical Ed25519 layout from @hankolabs/attestation-engine. To post an attestation on-chain, submit the Ed25519 SigVerify instruction and the post_attestation instruction in the same transaction.

const { signature, message } = hanko.signAttestation({
  agent, client, score: 90, tagBitmap: 0b1n, uriHash, nonce: 1n, secretKey,
});

API

| Method | Description | | ------ | ----------- | | verify(agent) | Full TrustReport for an agent. | | karma(agent) | KarmaBreakdown for an agent. | | leaderboard(limit?) | Top-N karma leaderboard. | | identityPda(agent) / bondPda(agent) / attestationPda(agent, client) / configPda() | Derive program PDAs. | | signAttestation(params) / verifyAttestation(params) | Local Ed25519 attestation sign/verify. | | validationCommitment(expectedHash, salt) | sha256(expected_hash \|\| salt) for the Validation Registry. |

License

MIT