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

@conduitprotocol/sdk

v0.3.0

Published

Conduit Protocol SDK + branded CLI: discover capabilities, pay via x402, settle USDC on Solana, fulfil hosted-mode provider jobs.

Downloads

561

Readme

@conduitprotocol/sdk

The four-call SDK + CLI for the Conduit Protocol — discover, pay, settle, profit.

Install

npm install @conduitprotocol/sdk @solana/web3.js

Try it without writing code

The SDK ships with a conduit CLI. No setup, no API keys — just point it at any Conduit-compatible endpoint (defaults to the live mainnet API):

npx @conduitprotocol/sdk manifest
# → live catalog of every capability + best price across providers

npx @conduitprotocol/sdk health
# → ping the api-server, report latency

npx @conduitprotocol/sdk holdings <your-solana-pubkey>
# → show your SOL + USDC + token balances

Output is colored, branded, and dogfoods the same SDK methods you'd call programmatically — so what you see in the terminal is exactly what your code gets back.

What this gives you

A typed client for every public Conduit endpoint, with the x402 lifecycle baked in. Bring any wallet that can sendTransaction (Phantom, Backpack, Solflare, Mobile Wallet Adapter, a server-side Keypair); the SDK handles the rest.

Four endpoints, four lines of code

import { Conduit } from "@conduitprotocol/sdk";
import { PublicKey } from "@solana/web3.js";

const conduit = new Conduit({
  apiBase: "https://conduit.network/api",
  rpcUrl: "https://api.mainnet-beta.solana.com",
});

// 1. Discover every live capability + provider + price
const manifest = await conduit.manifest();

// 2. Pay for and invoke a resource in one call (x402 challenge → sign →
//    finalize → POST with payment proof)
const result = await conduit.call({
  resourceId: manifest.apiListings[0].id,
  payload: { url: "https://example.com" },
  signer,
  mint: new PublicKey(manifest.mint!),
});

console.log(result.body);      // provider's response
console.log(result.signature); // Solana tx sig on devnet/mainnet

Lower-level: the three-stage x402 lifecycle

If you want the explicit stages (e.g. to show a step-by-step UI), use the primitives directly:

// 1. Issue 402 challenge
const challenge = await conduit.requestChallenge({ apiId: 17 });

// 2. Build, sign, submit, wait for finalized, verify on backend
const paid = await conduit.payAndVerify(challenge, signer, mint);

// 3. (Optional) hit the per-resource gateway URL with the proof
await fetch(`${apiBase}/v1/resources/17/query`, {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-Payment-Proof": `${paid.referenceId}:${paid.signature}`,
  },
  body: JSON.stringify({ ... }),
});

What's different vs idle

  • More generous economics — provider gets 92% (vs idle's 85%). Fee split is a single atomic transaction (provider + treasury + operator transfers in one signed tx).
  • Relay layer — anyone can run a relay node and earn for verifying routes. Idle has no equivalent layer.
  • Streaming Settlement — per-second / per-token continuous billing via on-chain Anchor program (Phase 2 rollout).
  • On-chain staking + governance + slashing — protocol-level trust guarantees.
  • SIWS wallet auth — every mutation cryptographically bound to a Solana signature, not an API key.

Wallet shape

The SDK accepts anything that satisfies ConduitSigner:

interface ConduitSigner {
  publicKey: PublicKey;
  sendTransaction(
    transaction: Transaction,
    connection: Connection,
    options?: { ... },
  ): Promise<string>;
}

Phantom / Backpack / Solflare's useWallet() return matches this directly. For server-side use, wrap a Keypair in a small adapter.

License

(c) Conduit Protocol — see LICENSE.