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_/issuer-sdk

v0.2.1

Published

TypeScript SDK for operating an Wisp issuer service and publishing roots

Readme

@wisp_/issuer-sdk

TypeScript SDK for operating a Wisp issuer — register on-chain, manage corridors, publish compliance roots, and conformance-test your issuer API.

Beta / demo release only. Intended for evaluation and testnet issuer integrations; not production compliance infrastructure.

Pairs with the portable Wisp layers: read on-chain state with @wisp_/client, validate packages with @wisp_/core, and keep your KYC stack of choice — Wisp only consumes the published roots.

Install

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

Quick start

import { WispIssuerClient, loadIssuerConfig } from "@wisp_/issuer-sdk";

const cfg = loadIssuerConfig();
const issuer = new WispIssuerClient(cfg);

// Register issuer on compliance contract
await issuer.registerIssuerAndSend(
  { metadataUri: "https://issuer.example/.well-known/wisp-issuer.json" },
  operatorSigner,
);

// Publish merkle + sanctions + jurisdiction roots
await issuer.publishIssuerRootsAndSend(
  {
    merkleRoot: "0x…",
    sanctionsRoot: "0x…",
    jurisdictionRoot: "0x…",
  },
  operatorSigner,
);

// Register a travel-rule corridor (e.g. US → MX)
await issuer.registerCorridorAndSend(
  {
    corridorId: 1,
    sourceJurisdictionRoot: "0x…",
    destAddressRoot: "0x…",
    corridorConfigHash: "0x…",
  },
  operatorSigner,
);

Environment

| Variable | Required | Description | | -------- | -------- | ----------- | | COMPLIANCE_CONTRACT_ID | yes | Compliance contract ID | | OPERATOR_PUBLIC_KEY | yes | Signing operator (or ISSUER_PUBLIC_KEY) | | ISSUER_PUBLIC_KEY | — | Issuer identity on-chain | | STELLAR_RPC_URL | — | Soroban RPC | | NETWORK_PASSPHRASE | — | Network passphrase |

Uses loadWispEnv() from @wisp_/sdk — reads .wisp/*.env.

Signer

Pass a Stellar keypair or wallet adapter:

const signer = {
  publicKey: "G…",
  signTransaction: async (tx) => { /* sign + return */ },
};

Conformance testing

Validate your issuer HTTP API against the Wisp spec:

import { runIssuerConformance } from "@wisp_/issuer-sdk";

const result = await runIssuerConformance({
  issuerUrl: "http://127.0.0.1:3000",
  issuerPublicKey: process.env.ISSUER_PUBLIC_KEY!,
  sender: "G...",
  recipient: "G...",
  corridorId: 1,
  simulateSettle: false,
});

CLI: pnpm test:issuer-conformance (from repo root).

HTTP issuer service

For off-chain proof packages and merkle paths, run the Rust issuer-service alongside this SDK:

export ISSUER_API_TOKEN=demo-token
export COMPLIANCE_CONTRACT_ID=…
cargo run -p issuer-service

Then use HttpIssuerAdapter for real issuer APIs and DemoIssuerClient only for the demo fixture + mock-KYC flow.

API surface

| Export | Purpose | | ------ | ------- | | WispIssuerClient | On-chain issuer/corridor/roots mutations | | loadIssuerConfig | Env-backed config | | normalizeRootHashToBytes | Root hash encoding for contract calls | | runIssuerConformance | HTTP API conformance suite |

Build from source

pnpm build:js
pnpm --filter @wisp_/issuer-sdk test

Related