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/orchard

v0.1.0-alpha.4

Published

Causeway Orchard shielded helpers for TypeScript — bech32m address codec + two-phase user spend flow (coordinator drives PCZT/Halo 2/FROST-RedPallas).

Readme

@causeway-sh/orchard

Causeway TypeScript SDK — Orchard shielded helpers.

Mirror of @causeway-sh/sapling for the Orchard pool. Provides:

  • bech32m Orchard address codec (uorchardmain1… / uorchardtest1… / uorchardreg1…). NOT canonical ZIP-316 Unified Addresses — Causeway uses an Orchard-only HRP for compactness.
  • Vault address fetcherfetchOrchardVaultAddress(coordinator) returns the configured vault's deposit address.
  • Per-user address + balancefetchUserOrchardAddress / fetchUserOrchardBalance for a (tenant, user_pubkey) tuple.
  • Two-phase user spendprepareUserOrchard → caller-driven initiate_orchard_send Solana ix → runUserOrchardbroadcastOrchard. PCZT building, Halo 2 proving, and FROST-RedPallas signing all happen inside the coordinator daemon — this SDK is purely a coordinator-RPC wrapper.

Install

pnpm add @causeway-sh/core @causeway-sh/orchard

Quick start

import { GrpcWebCoordinatorClient } from "@causeway-sh/core";
import {
  fetchOrchardVaultAddress,
  prepareUserOrchard,
  runUserOrchard,
  broadcastRunResult,
} from "@causeway-sh/orchard";

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

// 1. Display the vault's deposit address.
const vault = await fetchOrchardVaultAddress(coordinator);
console.log("deposit to:", vault.bech32m);

// 2. Prepare a user spend. Coordinator runs Halo 2 (~12s).
const prep = await prepareUserOrchard({
  coordinator,
  vault: vaultPda,                   // 32 bytes
  recipientPaymentAddressRaw,        // 43 bytes (decodeOrchardAddress)
  amountZat: 100_000n,
  feeZat: 10_000n,
  derivationPathHash,                // 32 bytes
  tenantProgramId,                   // 32 bytes
  userPubkey,                        // 32 bytes
});

// 3. Caller commits prep.sighashToSign on-chain via
//    `tenant_demo::initiate_orchard_send` (see @causeway-sh/tenant
//    `buildInitiateOrchardSend`). Coordinator's RunOrchardSigningRound
//    will reference the resulting SigningRequest PDA.

// 4. Drive the FROST-RedPallas round.
const run = await runUserOrchard({
  coordinator,
  sessionId: prep.sessionId,
  signingRequestPda,
  vault: vaultPda,
  derivationPathHash,
});

// 5. Broadcast.
const broadcast = await broadcastRunResult(coordinator, run);
console.log("orchard tx:", Buffer.from(broadcast.txid).toString("hex"));

License

Apache-2.0