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

mudra-zkvm

v1.0.2

Published

Mudra — hash-chain sealed zero-knowledge virtual machine

Readme

mudra-zkvm

npm WASM License

Verify ZK proofs in the browser. Lightweight WASM — no CLI, no Rust toolchain, no params required.

Quick Start

import { init, loadProofArtifacts, verifyProof } from 'mudra-zkvm';

await init();

// Load proof artifacts from a CLI output directory
const { proof, vk, publicInputs } = await loadProofArtifacts('./output');

// Verify
const valid = verifyProof(proof, vk, publicInputs);
console.log(valid ? 'Proof is valid' : 'Proof is INVALID');

That's it. Three functions. One import.

Installation

npm:

npm install mudra-zkvm

CDN (esm.sh):

import { init, verifyProof, loadProofArtifacts } from 'https://esm.sh/mudra-zkvm';

CDN (unpkg):

import { init, verifyProof, loadProofArtifacts } from 'https://unpkg.com/mudra-zkvm/pkg/index.js';

Usage

Verify a Proof

The simplest path — artifacts are already loaded:

import { init, verifyProof } from 'mudra-zkvm';
await init();

const valid = verifyProof(proofBytes, vkBytes, publicInputsBytes);

For full cryptographic verification (recommended for production), pass the Halo2 params:

const params = await fetch('./params').then(r => r.arrayBuffer());
const valid = verifyProof(proofBytes, vkBytes, publicInputsBytes, new Uint8Array(params));

Load & Verify from a Directory

Load everything from a mudra prove --outdir directory and verify in one call:

import { init, verifyFromDirectory } from 'mudra-zkvm';
await init();

const valid = await verifyFromDirectory('./output');

Or load first, then verify:

import { init, loadProofArtifacts, verifyProof } from 'mudra-zkvm';
await init();

const { proof, vk, publicInputs } = await loadProofArtifacts('./output');
const valid = verifyProof(proof, vk, publicInputs);

Verify from Arweave

If the proof was posted to Arweave, verify it directly by TXID:

import { init, verify_from_arweave } from 'mudra-zkvm';
await init();

const valid = await verify_from_arweave('your-txid-here');

Where Proofs Come From

This package verifies proofs. Proofs are generated by the mudra CLI (mudra prove). The CLI runs natively (Rust) and produces proof.bin, vk.bin, and public_inputs.bin — the three files this package expects.

See the main repository and CLI docs for proof generation.

API Overview

| Export | Kind | What it does | |--------|------|-------------| | verifyProof(proof, vk, inputs, params?) | Helper | One-call proof verification | | loadProofArtifacts(dirUrl) | Helper | Fetch proof.bin, vk.bin, public_inputs.bin from a URL | | verifyFromDirectory(dirUrl, params?) | Helper | Load + verify in one call | | verify_from_arweave(txid) | WASM | Fetch and verify a proof from Arweave by TXID | | Proof | WASM class | Low-level proof type (new Proof(bytes), .verify(), .as_bytes()) | | VerifyingKey | WASM class | Verification key management | | ProvingKey | WASM class | Proving key management | | init() / initSync() | WASM init | Load the WASM module |

For most use cases, the three helper functions are all you need. Use the WASM classes directly only when you need fine-grained control over byte arrays. See api.md for the full reference.

Features

  • Lightweight WASM verifier — checks one hash chain, not thousands of instruction constraints
  • Constant circuit size — 21 field elements regardless of program complexity. One verifying key for everything.
  • Browser-compatible — verify proofs in any modern browser
  • Arweave audit trail — permanent, immutable, one-time cost
  • Private by default — only hashes touch the network; formulas and data stay local

Arweave: Free by Default

Verification is free by default, thanks to Ardrive Turbo's free tier (100 KiB per upload). Genesis anchors (params, VK, verifier WASM) are deterministic per spec_digest/k — pre-published once by the project. Only the per-execution hash chain record (~6 KB) is uploaded per run.

| Artifact | Size | How It's Handled | |---|---|---| | Hash chain record + proof | ~6 KB | Uploaded per execution — always free | | Verification Key (VK) | ~17 KB | Pre-published by project as genesis anchor, referenced by default | | Verifier WASM | ~403 KB | Pre-uploaded by project as well-known TXID | | Halo2 Params (k=15) | ~2 MB | Pre-uploaded by project as well-known TXID |

No payment required. See docs/arweave-verification.md.

Quick Links

| For | See | |-----|-----| | Project overview | codeberg.org/PatrickM123/mudra | | JS/TypeScript API | docs/api.md | | Browser / npm guide | docs/npm-package.md | | Arweave verification | docs/arweave-verification.md | | Architecture | docs/ARCHITECTURE.md |

License

AGPL-3.0-only — See LICENSE for details.