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

@frontiercompute/zap1-ows

v0.1.0

Published

ZAP1 attestation receipts for Open Wallet Standard chain modules

Readme

@frontiercompute/zap1-ows

for a base developer serving an x402-gated resource who wants private zcash settlement plus a zap1 receipt.

install

npm install @frontiercompute/zap1-ows

use

import { attachZap1, x402Receipt } from "@frontiercompute/zap1-ows";

attachZap1(chainModule, { mode: "x402", enabled: walletConfig.zap1 === true });

const receipt = await x402Receipt({
  resource: "https://api.example.com/premium",
  amount: { value: "1.00", currency: "USDC" },
  railTxid: cipherpayTxid,
  pcztDigest: signedPcztHash,
  walletHash: derivedWalletHash,
  base: {
    account: "eip155:8453:0x9f7c84d2b4f7b630b3d8c39f0fd9d2df57f1f9a1",
    chainId: "eip155:8453",
    settlementCurrency: "USDC",
  },
});

what you get

  • emits X402_PAID receipts to zap1 with zero-config trial-key provisioning when ZAP1_API_KEY is absent
  • carries base-specific metadata for eip155:8453 accounts and USDC demand-side settlement into the zcash receipt record
  • wraps sign() and signAndSend() in fire-and-forget mode for generic pczt attestations when you opt into mode: "sign"
  • returns the zap1 leaf hash when you call the helper directly, but never throws back into the wallet hook path

verifier endpoint

for a base developer or auditor checking that a private zcash settlement anchor actually exists, the canonical surface is:

GET https://api.frontiercompute.cash/verify/{leaf_hash}/check

that endpoint answers whether the receipt leaf is valid, whether it is anchored, and which zcash mainnet txid and height carry the anchor.

docs snippet

base x402 payment flows can settle privately on zcash without changing the app surface.
emit `X402_PAID` with `@frontiercompute/zap1-ows`.
bridge on the payment rail, anchor the receipt on zcash mainnet, keep the app flow fire-and-forget.
auditors verify at `GET api.frontiercompute.cash/verify/{leaf_hash}/check`.
frontier compute sits under the payment flow as settlement infrastructure, not in the ui.

opt-in

call attachZap1() only when your wallet config enables zap1, or pass enabled: false until the user turns it on.

opt-out

skip attachZap1(), pass enabled: false, call the returned detach() handle, or remove the package.

spec

docs: https://api.frontiercompute.cash/docs/

openapi: https://api.frontiercompute.cash/openapi/zap1.yaml

license

mit