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

@protocol-01/stark-prover

v0.1.1

Published

Quantum-resistant STARK prover for Protocol 01 — drop-in WASM-backed proof generator + on-chain verifier submitter for @protocol-01/privacy-sdk. No trusted setup, no elliptic curves, post-quantum safe.

Readme

@protocol-01/stark-prover

Quantum-resistant STARK proof generator for Protocol 01. Drop-in prover for @protocol-01/privacy-sdk. No trusted setup, no elliptic curves.

Install

pnpm add @protocol-01/stark-prover @protocol-01/privacy-sdk @solana/web3.js

Usage

import { Connection, Keypair } from '@solana/web3.js';
import { Privacy } from '@protocol-01/privacy-sdk';
import { createStarkProver } from '@protocol-01/stark-prover';

const connection = new Connection(process.env.RPC_URL!, 'confirmed');
const payer = Keypair.fromSecretKey(/* ... */);

// 1. Spin up a prover bound to your connection + payer.
const prover = createStarkProver({
  connection,
  payer,
  onProgress: (step) => console.log('[STARK]', step),
});

// 2. Wire it into the privacy-sdk.
const sdk = new Privacy({ connection, wallet: payer });
sdk.setProverConfig({
  generateStarkProof: prover.generateStarkProof,
});

// 3. All shield/transfer/unshield operations on the variable-amount pool now
//    use STARK proofs end-to-end. No snarkjs anywhere.
await sdk.shield({ amount: 1_000_000n, mint: USDC_MINT });

Circuit IDs

| ID | Name | Public inputs | |----|-----------------------|--------------------------------------------------------| | 0 | subscriber_ownership | [commitment] | | 1 | pool_commitment | [nullifier, commitment] | | 2 | balance_proof | [commitment, token_mint] | | 3 | merkle_path | [leaf, root] | | 4 | confidential_balance | [old_commitment, new_commitment, amount_hash, mint] | | 5 | transfer | [null_1, null_2, out_1, out_2, public_amount, mint] | | 6 | merkle_update | [old_leaf, new_leaf, old_root, new_root, depth]* |

* Circuit 6 is implemented in the Rust source but not yet exported by the bundled WASM (stark/wasm-out/p01_stark_bg.wasm). Rebuild the WASM with wasm-pack build stark --target web --out-dir wasm-out from the repo root to enable it.

Runtime support

| Runtime | Status | Notes | |----------------------|------------|-------| | Node 22+ | First-class | Loads wasm/p01_stark_bg.wasm via import.meta.url. | | Modern browsers | First-class | Same path; bundlers should copy wasm/ to the output. | | Browser extensions | Supported | Pass WasmSource.base64 (MV3 disallows wasm-eval). | | React Native (WebView) | Supported | Pass the WASM base64 to the WebView and proxy the bindings. | | React Native (native) | Unsupported | No WebAssembly engine in Hermes. Use the WebView fallback. |

Architecture

generateStarkProof(circuitId, privateInputs)
    │
    ├── 1. initStarkWasm()          → wasm/p01_stark_bg.wasm
    ├── 2. generateProofBytes()     → JSON parse, hex decode
    └── 3. uploadAndVerify()        → Solana RPC
            ├── init_proof_buffer
            ├── resize × N (10 KB each)
            ├── write_proof_chunk × N (1000 B each)
            ├── verify_stark_proof_v2  (Phase 1: FRI + boundary)
            └── verify_deep_ali_phase2 (Phase 2: DEEP-ALI at OOD)

Returns StarkProofOutcome { proofBuffer, circuitId, publicInputs } — the proof buffer PDA is retained on-chain so the consuming instruction (zk_shielded.shield_stark, transfer_stark, etc.) can read it cross-program.

License

This package is released under the same terms as the Protocol 01 monorepo. See the LICENSE file at the repository root.

A soft license gate (license.ts) is included for production use. Development, evaluation, testing and hackathon use require no license key. For commercial production deployments, contact [email protected].