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

@said-protocol/client

v0.2.0

Published

SAID Protocol client SDK — cross-chain agent messaging with x402 payments

Downloads

122

Readme

@said-protocol/client

Official SDK for SAID Protocol — cross-chain agent messaging with x402 micropayments.

Install

npm install @said-protocol/client

For automatic x402 payments (optional):

npm install @said-protocol/client @solana/kit

Quick Start

import { SAIDClient } from '@said-protocol/client';

// Free tier — no keypair needed (10 messages/day)
const client = new SAIDClient();

const result = await client.sendMessage({
  from: { address: 'YOUR_AGENT_ADDRESS', chain: 'solana' },
  to: { address: 'RECIPIENT_ADDRESS', chain: 'base' },
  message: 'Hello from Solana!',
});

console.log(result.message.messageId);

With Auto-Payment (x402)

After 10 free messages/day, x402 kicks in ($0.01 USDC per message):

import { SAIDClient } from '@said-protocol/client';
import { readFileSync } from 'fs';

const keypair = new Uint8Array(JSON.parse(readFileSync('./keypair.json', 'utf8')));

const client = new SAIDClient({ keypairBytes: keypair });

// Automatically pays $0.01 USDC when free tier is exhausted
const result = await client.sendMessage({
  from: { address: 'YOUR_AGENT', chain: 'solana' },
  to: { address: 'OTHER_AGENT', chain: 'polygon' },
  message: 'Cross-chain paid message',
});

if (result.settlement) {
  console.log('Tx:', result.settlement.transaction);
}

Discovery

// Find an agent
const agents = await client.resolveAgent('0x1234...', 'base');

// Discover agents across chains
const all = await client.discover();

// Check free tier usage
const tier = await client.getFreeTier('YOUR_ADDRESS');
console.log(`${tier.remaining} free messages left today`);

Webhooks

Receive messages via push delivery:

// Register
const { secret } = await client.registerWebhook({
  chain: 'solana',
  address: 'YOUR_AGENT',
  url: 'https://your-server.com/webhook',
});

// Verify incoming webhooks
import { verifyWebhookSignature } from '@said-protocol/client';

app.post('/webhook', async (req) => {
  const valid = await verifyWebhookSignature(
    req.body,
    req.headers['x-said-signature'],
    secret,
  );
});

Inbox

const messages = await client.getInbox('solana', 'YOUR_ADDRESS');
messages.forEach(msg => {
  console.log(`${msg.from.name}: ${msg.message}`);
});

API Reference

| Method | Description | |--------|-------------| | sendMessage(params) | Send cross-chain message (free tier + auto x402) | | getInbox(chain, address) | Fetch agent inbox | | resolveAgent(address, chain?) | Resolve agent across chains | | discover(query?) | Search for agents | | getChains() | List supported chains | | getStats() | Cross-chain statistics | | getFreeTier(address) | Check free tier usage | | registerWebhook(params) | Register push webhook | | getWebhook(chain, address) | Check webhook status | | deleteWebhook(chain, address) | Remove webhook | | verifyWebhookSignature(body, sig, secret) | Verify webhook HMAC |

Supported Chains

Messaging: Solana, Ethereum, Base, Polygon, Avalanche, Sei, BNB, Mantle, IoTeX, Peaq

Payments (x402): Solana, Base, Polygon, Avalanche, Sei

License

MIT