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/sdk

v0.1.0

Published

TypeScript SDK for KAMIYO - Agent Identity and Conflict Resolution Protocol

Readme

@kamiyo-org/sdk

TypeScript SDK for KAMIYO - Agent Identity and Conflict Resolution Protocol on Solana.

Installation

npm install @kamiyo-org/sdk

Devnet Smoke Test

Validate full agent lifecycle (create agent, create agreement, dispute) on devnet:

pnpm --filter @kamiyo-org/sdk run smoke:devnet

Optional env overrides:

SOLANA_RPC_URL=https://api.devnet.solana.com
KAMIYO_PROGRAM_ID=3ZYPtFBF8rfRYvLi5QUnU4teHPzFEpHuz6dUZry9FRKr
AGENT_KEYPAIR_PATH=~/.config/solana/id.json

Usage

import { KamiyoClient, AgentType } from '@kamiyo-org/sdk';
import { Connection, Keypair } from '@solana/web3.js';
import { Wallet } from '@coral-xyz/anchor';
import { BN } from '@coral-xyz/anchor';

const connection = new Connection('https://api.mainnet-beta.solana.com');
const keypair = Keypair.generate();
const wallet = new Wallet(keypair);

const client = new KamiyoClient({ connection, wallet });

// Create agent with 0.5 SOL stake
const signature = await client.createAgent({
  name: 'TradingBot',
  agentType: AgentType.Trading,
  stakeAmount: new BN(500_000_000)
});

// Fetch agent
const [agentPDA] = client.getAgentPDA(wallet.publicKey);
const agent = await client.getAgent(agentPDA);

// Create escrow agreement
await client.createAgreement({
  provider: providerPubkey,
  amount: new BN(100_000_000),
  timeLockSeconds: 86400,
  transactionId: 'order-123'
});

// Release funds on success
await client.releaseFunds('order-123', providerPubkey);

// Or dispute for arbitration
await client.markDisputed('order-123');

API

KamiyoClient

constructor(config: {
  connection: Connection;
  wallet: Wallet;
  programId?: PublicKey;
})

Agent Operations

createAgent(params: CreateAgentParams): Promise<string>
getAgent(pda: PublicKey): Promise<AgentIdentity | null>
getAgentPDA(owner: PublicKey): [PublicKey, number]
updateAgent(params: UpdateAgentParams): Promise<string>
deactivateAgent(): Promise<string>

Agreement Operations

createAgreement(params: CreateAgreementParams): Promise<string>
getAgreement(pda: PublicKey): Promise<Agreement | null>
getAgreementPDA(agent: PublicKey, txId: string): [PublicKey, number]
releaseFunds(txId: string, provider: PublicKey): Promise<string>
markDisputed(txId: string): Promise<string>

Oracle Operations

submitOracleVote(params: OracleVoteParams): Promise<string>
getOracleRegistry(): Promise<OracleRegistry | null>

Types

enum AgentType {
  Trading = 0,
  DataProvider = 1,
  Validator = 2,
  Aggregator = 3,
  Custom = 4
}

enum AgreementStatus {
  Active = 0,
  Released = 1,
  Disputed = 2,
  Resolved = 3,
  Expired = 4
}

interface CreateAgentParams {
  name: string;
  agentType: AgentType;
  stakeAmount: BN;
}

interface CreateAgreementParams {
  provider: PublicKey;
  amount: BN;
  timeLockSeconds: number;
  transactionId: string;
  tokenMint?: PublicKey;
}

Program Addresses

| Network | Program ID | |---------|------------| | Mainnet | 3ZYPtFBF8rfRYvLi5QUnU4teHPzFEpHuz6dUZry9FRKr | | Devnet | 3ZYPtFBF8rfRYvLi5QUnU4teHPzFEpHuz6dUZry9FRKr |

License

MIT