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

@causeway-sh/sapling

v0.1.0-alpha.4

Published

Causeway Sapling shielded helpers for TypeScript — bech32 z-address parse/encode + sendToZaddr end-to-end (coordinator drives PCZT/Groth16/FROST).

Readme

@causeway-sh/sapling

npm License status Causeway

Zcash Sapling shielded helpers for Causeway. Bech32 z-address parse/encode plus high-level wrappers around the coordinator's BuildAndSignSaplingSpend and BroadcastSaplingTx RPCs. The whole shielded pipeline runs through the threshold operator quorum — your dApp never touches a spend-auth key or a Groth16 prover.

Install

pnpm add @causeway-sh/core@alpha @causeway-sh/sapling@alpha

Quickstart

import { GrpcWebCoordinatorClient } from "@causeway-sh/core";
import { sendToZaddr } from "@causeway-sh/sapling";

const coordinator = new GrpcWebCoordinatorClient({
  baseUrl: "https://coordinator.causeway.sh",
});

const result = await sendToZaddr({
  coordinator,
  to: "zs1q3qpr6wt3rzymfrg3pyzfmjny2synhk2ut9as6dyxqpvcdlq94jscze8pww28rnqyplzwz7hpjx",
  amountZat: 50_000n,
  feeZat: 15_000n,
});

console.log("broadcast txid:", result.broadcastTxid);
console.log("sighash:        ", result.sighashHex);

That's the entire shielded spend: coordinator builds the PCZT, runs the FROST-RedJubjub round across 5 of 7 operators, returns a broadcast-ready v5 transaction, and we send it to mainnet.

API

  • bech32 z-address helpersdecodeSaplingAddress(s) and encodeSaplingAddress(network, raw43). Handles zs1… (mainnet), ztestsapling1… (testnet), and zregtestsapling1… (regtest). Strict bech32 (not bech32m) so mangled unified-address strings fail closed.
  • sendToZaddr({...}) — end-to-end convenience: decode bech32, call the coordinator, broadcast via the coordinator's lightwalletd, return { broadcastTxid, sighashHex, rawTxHex }.
  • fetchSaplingVaultAddress(coordinator) — ask the coordinator for the active vault's bech32 z-address + raw 43 bytes.
  • zcashdRpcCall(...) — minimal JSON-RPC client for callers that want to broadcast through their own zcashd instead of the coordinator. fetch-based, works in Node 20+ and browsers (with CORS configured).

Why the SDK doesn't run Groth16

Sapling spend-auth signing requires the vault's nsk for the SNARK witness. In Causeway's threshold model that material lives only in the coordinator process and is never exposed to dApps or tenant programs. The SDK therefore never runs Groth16 — it asks the coordinator for a signed raw_tx and broadcasts it.

Status

Alpha. Real Sapling shielded mainnet broadcasts have completed end-to-end through this SDK. The on-chain program is unverified bytecode and the protocol is not audited. Do not move funds you can't afford to lose.

License

Apache-2.0

Links