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

@ethproofs/airbender-wasm-stark-verifier

v0.5.0

Published

WASM wrapper for Airbender STARK verifier - verify STARK proofs in browsers and Node.js

Downloads

137

Readme

Airbender WASM STARK Verifier

WebAssembly bindings for the Airbender STARK verifier. Verify Ethereum STF ZK proofs in browsers and Node.js.

Installation

npm install @ethproofs/airbender-wasm-stark-verifier

Usage

Browser / Bundler (React, Next.js, Vite, etc.)

import init, { main, verify_stark } from '@ethproofs/airbender-wasm-stark-verifier';

// Initialize WASM module
await init();

// Initialize the verifier (sets up panic hook and default config)
main();

// Verify a proof - returns true if valid
const isValid = verify_stark(proofBytes);

Node.js

import { main, verify_stark } from '@ethproofs/airbender-wasm-stark-verifier/pkg-node/airbender_wasm_stark_verifier.js';

// Initialize the verifier
main();

// Verify a proof
const isValid = verify_stark(proofBytes);

Advanced Usage

For more control over the verification process:

import init, {
  main,
  deserialize_proof_bytes,
  verify_proof,
  init_with,
} from '@ethproofs/airbender-wasm-stark-verifier';

await init();
main();

// Deserialize and verify in separate steps
const handle = deserialize_proof_bytes(proofBytes);
const result = verify_proof(handle);

if (result.success) {
  console.log('Proof is valid');
} else {
  console.error('Verification failed:', result.error());
}

// Or use custom setup/layout for non-default circuit versions
init_with(setupBin, layoutBin);

API Reference

  • main() - initializes the panic hook and default verifier configuration. Call this once before verifying proofs.

  • verify_stark(proofBytes: Uint8Array): boolean - verifies a proof and returns true if valid.

  • deserialize_proof_bytes(proofBytes: Uint8Array): ProofHandle - deserializes proof bytes into a handle for verification.

  • verify_proof(handle: ProofHandle): VerifyResult - verifies a deserialized proof. Returns an object with success boolean and error() method.

  • init_with(setupBin: Uint8Array, layoutBin: Uint8Array) - initializes the verifier with custom setup and layout binaries for non-default circuit versions.

  • init_defaults() - initializes the verifier with default configuration (called automatically by main()).

Building

# Build for bundlers (default)
npm run build

# Build for Node.js
npm run build:node

# Build all targets
npm run build:all

Testing

# Run Node.js test with a proof file
npm run test:node -- path/to/proof.bin

License

MIT