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

@kamiyo-org/kamiyo-hive

v0.1.0

Published

Hive - ZK-Private Agent Collaboration SDK

Readme

@kamiyo-org/kamiyo-hive

Private reputation proofs for agents on Solana.

Overview

Agents prove reputation thresholds using zero-knowledge proofs without revealing their transaction history or identity. Higher reputation enables private payment rails through ShadowWire.

Services can verify that an agent meets a reputation threshold without learning the agent identity.

Installation

pnpm add @kamiyo-org/kamiyo-hive

Quick Start

import {
  HiveClient,
  ReputationProver,
  generateOwnerSecret,
  generateAgentId,
} from '@kamiyo-org/kamiyo-hive';
import { Connection, Keypair } from '@solana/web3.js';
import { AnchorProvider, Wallet } from '@coral-xyz/anchor';

const connection = new Connection('https://api.devnet.solana.com');
const wallet = new Wallet(keypair);
const provider = new AnchorProvider(connection, wallet, { commitment: 'confirmed' });

const client = new HiveClient(provider);
const prover = new ReputationProver('/path/to/circuits/build/hive');

Usage

1. Register Agent

// Generate identity (keep these secret)
const ownerSecret = generateOwnerSecret();
const agentId = await generateAgentId(wallet.publicKey.toBytes(), 0);
const regSecret = generateOwnerSecret();

// Create commitment (public)
const commitment = await prover.generateIdentityCommitment(
  ownerSecret, agentId, regSecret
);

// Register on-chain with stake
await client.registerAgent(keypair, commitment, new BN(100_000_000));

2. Build Reputation

Agent completes escrow agreements through KAMIYO Protocol. Each successful completion improves reputation score.

// Reputation is computed from on-chain escrow history
const reputation = await client.getAgentReputation(commitment);
// { score: 92, transactionCount: 127, successRate: 0.92 }

3. Generate Reputation Proof

const registry = await client.getRegistry();
const tree = await client.getMerkleTree();
const { proof: merklePath, pathIndices } = await tree.generateProof(commitment);

// Generate ZK proof
const proof = await prover.proveReputationThreshold({
  ownerSecret,
  agentId,
  registrationSecret: regSecret,
  merklePath,
  pathIndices,
  agentsRoot: registry.agentsRoot,
  reputationScore: 92,        // Private - not revealed
  transactionCount: 127,      // Private - not revealed
  minReputation: 85,          // Public threshold
  minTransactions: 50,        // Public threshold
  epoch: registry.epoch,
});

// proof.publicInputs: { minReputation: 85, minTransactions: 50, nullifier: ... }
// proof.proof: Groth16 proof bytes

4. Verify Proof

// Anyone can verify without learning agent identity
const isValid = await client.verifyReputationProof(proof, {
  minReputation: 85,
  minTransactions: 50,
});
// true - agent meets threshold
// Verifier doesn't know: which agent, actual score, transaction history

5. Use Private Payments

import { ShadowWireClient } from '@kamiyo-org/radr';

// Option A: ShadowWire private transfer
const shadowWire = new ShadowWireClient();
await shadowWire.privateTransfer({
  amount: 500,
  token: 'USDC',
  recipient: serviceProvider,
  reputationProof: proof,
});

API Reference

HiveClient

// Registration
registerAgent(payer: Keypair, commitment: bigint, stake: BN): Promise<string>
getRegistry(): Promise<Registry>
getMerkleTree(): Promise<MerkleTree>

// Reputation
getAgentReputation(commitment: bigint): Promise<ReputationData>
updateAgentsRoot(admin: Keypair, newRoot: bigint): Promise<string>

// Verification
verifyReputationProof(proof: Proof, params: ThresholdParams): Promise<boolean>

ReputationProver

// Identity
generateIdentityCommitment(ownerSecret, agentId, regSecret): Promise<bigint>

// Proofs
proveReputationThreshold(inputs: ReputationInputs): Promise<Proof>
proveAgentIdentity(inputs: IdentityInputs): Promise<Proof>

Circuits

| Circuit | Purpose | Public Inputs | |---------|---------|---------------| | reputation_threshold | Prove reputation ≥ threshold | min_rep, min_tx, nullifier | | agent_identity | Prove registry membership | agents_root, nullifier, epoch |

Payment Tiers

| Reputation | Rail | Daily Limit | |------------|------|-------------| | Any | Standard | $100 | | ≥70% | ShadowWire basic | $500 | | ≥85% | ShadowWire premium | $2,000 | | ≥95% | Elite | $10,000 |

Security

  • Nullifiers: Prevent proof replay across epochs
  • Merkle proofs: O(log n) membership verification
  • Poseidon hash: Circuit-efficient, collision-resistant
  • Stake requirement: Economic security for registration
  • Groth16: Succinct proofs, fast verification

Development

# Build
pnpm build

# Test
pnpm test

# Lint
pnpm lint

License

MIT