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

@wisp_/sdk

v0.2.1

Published

TypeScript SDK for proving, settling, and auditing Wisp compliant transfers on Stellar

Readme

@wisp_/sdk

TypeScript SDK for proving, settling, and auditing Wisp compliant transfers on Stellar.

Beta / demo release only. Intended for evaluation and testnet flows; expect API and protocol changes before production use.

This is the umbrella package. It bundles the modular Wisp layers and re-exports each via a subpath, so you can install everything here or embed just the layer you need:

| Import | Re-exports | Standalone package | | ------ | ---------- | ------------------ | | @wisp_/sdk | full prove/settle/audit facade | — | | @wisp_/sdk/core | validation, root compare, types | @wisp_/core | | @wisp_/sdk/client | issuer adapter + chain reads | @wisp_/client | | @wisp_/sdk/flows | transfer orchestration | @wisp_/flows | | @wisp_/sdk/demo | demo issuer + mock KYC | @wisp_/demo |

Issuer and compliance integrations that don't need the prover can depend on the standalone packages directly and skip the rest of the bundle.

Install

npm install @wisp_/[email protected] @wisp_/[email protected]

Peer deps are bundled; you also need circuit artifacts (WASM + zkey) for proving.

Quick start

import { WispClient, DemoIssuerClient } from "@wisp_/sdk";

const client = WispClient.fromEnv();
const issuer = new DemoIssuerClient(client.cfg.issuerUrl);
const pkg = await issuer.getDemoTransfer();

await client.validatePackage(pkg, {
  issuerPublicKey: process.env.ISSUER_PUBLIC_KEY!,
  corridorId: Number(pkg.transfer?.corridor_id ?? 1),
});

const proven = await client.prove({ package: pkg });
await client.approveSacForComplianceWithKeypair(pkg, senderSecret);
const tx = await client.settleWithKeypair(proven, pkg, senderSecret);
const audit = await client.audit(proven.nullifier, senderPublicKey);

For a real issuer API, swap DemoIssuerClient for HttpIssuerAdapter and fetch a package from POST /v1/proof-packages.

Environment

Loaded from .wisp/*.env, repo .env, or process.env via loadWispEnv().

| Variable | Required | Description | | -------- | -------- | ----------- | | STELLAR_RPC_URL | — | Soroban RPC (default: testnet) | | COMPLIANCE_CONTRACT_ID | yes* | Compliance contract | | VERIFIER_CONTRACT_ID | — | Verifier contract | | SAC_CONTRACT_ID | yes* | Asset SAC for settlement | | ISSUER_PUBLIC_KEY | yes* | Issuer G-address | | ISSUER_URL | — | Issuer HTTP base (default: http://127.0.0.1:3000) | | WISP_FIXTURE_PROFILE | — | local or testnet | | WISP_ARTIFACT_DIR | — | Circuit artifacts dir | | VALIDATE_START_LEDGER | — | Event scan start for root validation |

*Required for settle/validate on testnet.

Use DemoIssuerClient only for the demo fixture + mock-KYC flow. Production issuer integrations should use HttpIssuerAdapter or a custom IssuerAdapter.

Browser proving

const proven = await client.prove({
  package: pkg,
  browser: true,
  wasmUrl: "/circuits/compliance_corridor.wasm",
  zkeyUrl: "/circuits/compliance_corridor_final.zkey",
});

Wallet settle (Freighter)

import type { WalletSigner } from "@wisp_/sdk";

await client.approveSacForCompliance(pkg, wallet);
await client.settleWithWallet(proven, pkg, wallet);

API surface

| Export | Purpose | | ------ | ------- | | WispClient | Facade: prove · validate · settle · audit | | DemoIssuerClient | Fetch demo proof packages | | HttpIssuerAdapter | Custom issuer HTTP client | | validatePackage | Pre-flight package + on-chain root checks | | loadConfig / loadWispEnv | Config from env | | getLatestChainRoots | Read issuer/corridor roots from chain events |

Testnet fixtures

export WISP_FIXTURE_PROFILE=testnet
# fixture: bindings/fixtures/demo-transfer-testnet.json

Build from source

pnpm build:js          # from repo root
pnpm --filter @wisp_/sdk test

Related