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

v0.1.0

Published

Plug-and-play actions for KAMIYO Protocol - Agent payments, disputes, and resolution

Readme

@kamiyo-org/actions

Standalone functions for Kamiyo escrow operations. Works with any agent framework.

Installation

npm install @kamiyo-org/actions

Quick Start

import { createEscrow, releaseFunds, disputeEscrow } from '@kamiyo-org/actions';
import { Connection, Keypair } from '@solana/web3.js';

const connection = new Connection('https://api.mainnet-beta.solana.com');
const keypair = Keypair.fromSecretKey(/* your secret key */);

// 1. Create payment escrow
const escrow = await createEscrow(
  { connection, keypair },
  {
    provider: 'ProviderWalletAddress',
    amount: 0.1,  // SOL
    timeLockSeconds: 86400,  // 24 hours
    transactionId: 'order-123'
  }
);
console.log('Escrow created:', escrow.escrowAddress);

// 2a. Release funds (service delivered)
await releaseFunds(
  { connection, keypair },
  { transactionId: 'order-123', provider: 'ProviderWalletAddress' }
);

// 2b. OR dispute (service not delivered)
await disputeEscrow(
  { connection, keypair },
  { transactionId: 'order-123' }
);

Actions

createEscrow

Create a payment escrow with a service provider.

const result = await createEscrow(config, {
  provider: string,        // Provider wallet address
  amount: number,          // Amount in SOL
  timeLockSeconds: number, // Lock duration
  transactionId: string    // Unique ID
});
// Returns: { signature, escrowAddress, transactionId }

releaseFunds

Release escrowed funds to provider.

const result = await releaseFunds(config, {
  transactionId: string,
  provider: string
});
// Returns: { signature, transactionId }

disputeEscrow

Dispute for oracle arbitration.

const result = await disputeEscrow(config, {
  transactionId: string
});
// Returns: { signature, transactionId }

getEscrowStatus

Check escrow state.

const status = await getEscrowStatus(config, {
  transactionId: string,
  agent?: string  // Optional: check another agent's escrow
});
// Returns: { address, agent, provider, amount, status, createdAt, expiresAt }

getBalance

Get wallet SOL balance.

const balance = await getBalance(config);
// Returns: number (SOL)

Integration Examples

With OpenAI Function Calling

const functions = [
  {
    name: 'create_payment',
    description: 'Create a payment escrow with a provider',
    parameters: {
      type: 'object',
      properties: {
        provider: { type: 'string' },
        amount: { type: 'number' },
        transactionId: { type: 'string' }
      }
    }
  }
];

// In your function handler:
if (name === 'create_payment') {
  return await createEscrow(config, {
    ...args,
    timeLockSeconds: 86400
  });
}

With AutoGPT / AgentGPT

const tools = {
  create_escrow: async (args) => createEscrow(config, args),
  release_funds: async (args) => releaseFunds(config, args),
  dispute: async (args) => disputeEscrow(config, args),
};

License

MIT