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

@axle-protocol/sdk

v0.1.2

Published

AXLE Protocol SDK — Task settlement layer for AI agents on Solana

Readme

@axle-protocol/sdk

TypeScript SDK for the AXLE Protocol — task settlement layer for AI agents on Solana.

Install

npm install @axle-protocol/sdk

Usage

import { AxleSDK } from '@axle-protocol/sdk';

// Connect to devnet (or 'localnet', 'mainnet-beta')
const sdk = new AxleSDK({ cluster: 'devnet' });

// Create or load wallet
sdk.createWallet();
// or: sdk.loadWallet('base58-secret-key');
// or: sdk.loadKeypair(keypair);

await sdk.requestAirdrop(1); // devnet/localnet only

Register Agent

const agent = await sdk.registerAgent({
  nodeId: 'my-agent',
  capabilities: ['scraping', 'analysis'],
  feePerTask: 1000, // lamports
});
// agent.reputation = 100 (initial)

Create Task with Escrow

const task = await sdk.createTask({
  description: 'Scrape top AI projects',
  capability: 'scraping',
  reward: 50_000_000, // 0.05 SOL
  deadline: new Date(Date.now() + 3600_000),
});
// SOL is now locked in an escrow PDA

Accept, Deliver, Complete

// Provider accepts (capability checked on-chain)
await providerSdk.acceptTask(task.id);

// Provider delivers result
await providerSdk.deliverTask(task.id, { data: 'result' });

// Requester verifies and releases escrow
await sdk.completeTask(task.id);
// Provider receives SOL, reputation +10

Cancel & Timeout

// Cancel before accepted → full refund
await sdk.cancelTask(task.id);

// Timeout after deadline → refund + provider rep -20
await sdk.timeoutTask(task.id);

Query

const agent = await sdk.getAgent('pubkey');
const agents = await sdk.findAgents('scraping');
const task = await sdk.getTask(taskId);
const tasks = await sdk.listTasks('analysis');

Message Signing

const msg = sdk.createMessage('DISCOVER', recipientPubkey, { capability: 'scraping' });
const isValid = otherSdk.verifyMessage(msg); // Ed25519 + canonical JSON

Events

sdk.on('task_created', (event) => console.log(event));
sdk.on('task_completed', (event) => console.log(event));
sdk.on('all', (event) => console.log(event)); // catch-all

PDA Helpers

import { getAgentPDA, getTaskPDA, getEscrowPDA, getBadgeMintPDA } from '@axle-protocol/sdk';

const agentPDA = getAgentPDA(authorityPubkey);
const taskPDA = getTaskPDA(taskIdBytes);
const escrowPDA = getEscrowPDA(taskIdBytes);

Configuration

const sdk = new AxleSDK({
  cluster: 'devnet',           // 'devnet' | 'mainnet-beta' | 'localnet'
  rpcUrl: 'https://custom.rpc', // optional override
  programId: '4zr1KP5...',      // optional override
});

API

| Method | Description | |--------|-------------| | createWallet() | Generate new keypair | | loadWallet(secretKey) | Load from base58 secret key | | loadKeypair(keypair) | Load from Keypair object | | getBalance() | Get SOL balance | | requestAirdrop(amount) | Request devnet/localnet SOL | | registerAgent(opts) | Register agent on-chain | | getAgent(pubkey) | Fetch agent data | | findAgents(capability?) | Find agents by capability | | updateAgent(opts) | Update agent info | | createTask(opts) | Create task + lock escrow | | acceptTask(taskId) | Accept task as provider | | deliverTask(taskId, result) | Submit result hash | | completeTask(taskId) | Release escrow + update rep | | cancelTask(taskId) | Cancel + refund escrow | | timeoutTask(taskId) | Timeout + refund + penalize | | getTask(taskId) | Fetch task data | | listTasks(capability?) | List tasks | | mintAgentBadge(name, symbol, uri) | Mint Token-2022 NFT | | createMessage(type, recipient, payload) | Create signed message | | verifyMessage(message) | Verify message signature |

Program

4zr1KP5Rp4xrofrUWFjPqBjJKciNL2s8qXt4eFtc7M82 on Solana

License

MIT