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

@zkbounty/zk-sdk

v1.0.0

Published

Prove real-world physical action on Solana with hardware attestation and zero-knowledge. Capture, redact PII, prove, and settle on-chain.

Readme

@zkbounty/sdk

Prove a real-world action happened - at a specific coordinate, in a specific Solana slot, on a specific device - using hardware attestation and zero-knowledge. The SDK reads device metadata, strips personal identifiers, generates a succinct proof, and settles it against the on-chain verifier program. No proving infrastructure to run.

npm install @zkbounty/sdk

Quickstart

import { ZkBounty } from "@zkbounty/sdk";

const zk = new ZkBounty({ cluster: "mainnet-beta" });

// 1. Capture - reads enclave signature, GPS lock, sensor signature + slot hash
const attested = await zk.capture({
  bountyId: "bnt_3f9a…",
  action: "photo",
});

// 2. Prove - strips PII, generates the zk proof locally
const proof = await zk.prove(attested, {
  geofence: { lat: -3.46531, lng: -54.7233, radiusM: 120 },
  requiredAttestations: ["enclave", "geo", "sensor", "slot"],
  deviceClass: "secure-enclave",
});

// 3. Submit - the verifier program settles in one transaction
const receipt = await zk.submit(proof);

console.log(receipt.status); // "verified"
console.log(receipt.slot);   // 353_120_991
console.log(receipt.payout); // { sol: 12, lamports: 12_000_000_000 }

Or the whole flow in one call:

const receipt = await zk.proveAndSubmit(
  { bountyId: "bnt_3f9a…", action: "photo" },
  { geofence: { lat: -3.46531, lng: -54.7233, radiusM: 120 } },
);

Privacy

Personal identifiers are stripped on the device, before any proof is generated. prove() redacts automatically; call redact() explicitly for control:

const redacted = zk.redact(attested, {
  faces: "blur+drop", // bystander privacy
  deviceId: "drop",   // no device fingerprint
  exif: "drop",       // no embedded identity
  keep: ["contentHash"],
});

const proof = await zk.prove(redacted, criteria);
// proof.publicInputs -> { coordInGeofence: true, slotInWindow: true, ... }
// nothing else leaves the device

API

new ZkBounty(config?)

| option | default | description | | ------------ | ------------------------ | -------------------------------------------- | | cluster | "mainnet-beta" | Solana cluster to settle against | | apiUrl | https://api.zk-bounty.com | REST + WS API base | | rpcUrl | public RPC for cluster | Solana JSON-RPC endpoint | | enclaveKey | generated | hex ed25519 device key (from secure enclave) | | apiKey | - | bearer token for authenticated calls | | fetch | globalThis.fetch | custom fetch (non-browser runtimes) |

Methods

  • capture(options)AttestedCapture - read device metadata and produce the four hardware attestations (enclave, geo, sensor, slot).
  • redact(capture, options?)AttestedCapture - strip PII locally.
  • prove(capture, criteria?)Proof - generate the zero-knowledge proof and compute public inputs against the bounty criteria.
  • submit(proof)SubmitReceipt - settle on-chain via the verifier program.
  • proveAndSubmit(options, criteria?)SubmitReceipt - the full pipeline.
  • recentSlot(){ slot, slotHash } - current slot + recent block hash.

All types are exported (AttestedCapture, Proof, BountyCriteria, SubmitReceipt, …).

Runtimes

Works in the browser (uses the Geolocation API automatically) and in Node 18+, Deno, and Bun (pass coordinate explicitly when there's no Geolocation API).

License

MIT