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

@ace_won/conduit-sdk

v1.0.1

Published

Official TypeScript SDK for Conduit — USDC payment infrastructure on Arc Network. Create payment links, escrow, splits, and webhooks programmatically.

Readme

@ace_won/conduit-sdk

Official TypeScript SDK for Conduit — USDC payment infrastructure on Arc Network. Create payment links, escrow, split payments, and webhooks programmatically with full type safety.

npm install @ace_won/conduit-sdk

Quick start

import { ConduitClient } from "@ace_won/conduit-sdk";

const conduit = new ConduitClient({
  address: "0xYourWalletAddress", // default owner for create/list calls
});

// Create a payment link
const link = await conduit.links.create({
  title: "Logo design",
  amount: 50,
});

console.log(conduit.links.payUrl(link.id));
// → https://www.conduitpay.xyz/pay/<id>

Configuration

const conduit = new ConduitClient({
  baseUrl: "https://www.conduitpay.xyz", // optional, this is the default
  address: "0xYourWallet",           // optional default owner address
  fetch: customFetch,                // optional, for Node <18
});

Payment Links

const link = await conduit.links.create({
  title: "Invoice #102",
  amount: "25.00",
  description: "Consulting — June",
});

const all = await conduit.links.list();          // your links
const one = await conduit.links.get(link.id);    // single link
const url = conduit.links.payUrl(link.id);        // hosted pay page

Escrow

const escrow = await conduit.escrow.create({
  title: "iPhone 15 Pro",
  amount: 800,
  sellerContact: "@seller on Telegram",
  deliveryDays: 7,
});

const escrows = await conduit.escrow.list();
const url = conduit.escrow.payUrl(escrow.id);

Split Payments

// Percentages must sum to 100
const split = await conduit.splits.create({
  title: "Team revenue split",
  amount: 1000,
  recipients: [
    { address: "0xAlice...", percentage: 50, label: "Alice" },
    { address: "0xBob...",   percentage: 30, label: "Bob" },
    { address: "0xCarol...", percentage: 20, label: "Carol" },
  ],
});

const url = conduit.splits.payUrl(split.id);
// One payment auto-distributes to all recipients, gaslessly.

Webhooks

Register an endpoint

const webhook = await conduit.webhooks.create({
  url: "https://your-app.com/webhooks/conduit",
  events: ["payment.completed", "escrow.released", "split.distributed"],
});

console.log(webhook.secret); // whsec_... — save this, shown only once

Other operations:

await conduit.webhooks.list();
await conduit.webhooks.update(webhook.id, { active: false });
await conduit.webhooks.test(webhook.id);
await conduit.webhooks.delete(webhook.id);

Verify incoming webhooks

Conduit signs every delivery with HMAC-SHA256 in the X-Conduit-Signature header. Always verify it.

import { constructWebhookEvent } from "@ace_won/conduit-sdk";

// Next.js App Router
export async function POST(req: Request) {
  const raw = await req.text();
  const sig = req.headers.get("x-conduit-signature") ?? "";

  try {
    const event = constructWebhookEvent(raw, sig, process.env.CONDUIT_WEBHOOK_SECRET!);

    switch (event.event) {
      case "payment.completed":
        console.log("Paid:", event.data.amount, "USDC");
        break;
      case "split.distributed":
        console.log("Split done:", event.data.payouts);
        break;
    }

    return new Response("ok");
  } catch {
    return new Response("Invalid signature", { status: 401 });
  }
}

Or verify manually:

import { verifyWebhookSignature } from "@ace_won/conduit-sdk";

const valid = verifyWebhookSignature(rawBody, signature, secret);

Webhook events

| Event | Fires when | |---|---| | payment.completed | A payment link is paid | | escrow.funded | A buyer funds an escrow | | escrow.released | Escrow funds are released to the seller | | escrow.disputed | A buyer disputes an escrow | | escrow.refunded | An escrow is refunded to the buyer | | split.funded | A split link is paid into | | split.distributed | A split finishes distributing to all recipients |

Error handling

import { ConduitApiError } from "@ace_won/conduit-sdk";

try {
  await conduit.links.create({ title: "Test", amount: 10 });
} catch (err) {
  if (err instanceof ConduitApiError) {
    console.error(err.status, err.message);
  }
}

License

MIT