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 🙏

© 2025 – Pkg Stats / Ryan Hefner

zkrune-cli

v1.0.0

Published

CLI tool for zkRune - Compile and manage zero-knowledge circuits

Readme

zkrune-cli

CLI tool for zkRune - Compile and manage zero-knowledge circuits powered by Zcash's Groth16.

Installation

npm install -g zkrune-cli

Quick Start

1. Initialize a new project

zkrune init
cd my-zkrune-project
npm install

2. Create a circuit from template

zkrune create MyCircuit --template age-verification

3. Compile the circuit

zkrune compile MyCircuit.circom

4. Test the circuit

zkrune test MyCircuit --input input.json

Commands

zkrune init

Initialize a new zkRune project with proper structure and dependencies.

zkrune init

zkrune create <name>

Create a new circuit from a template.

zkrune create MyCircuit --template age-verification

Options:

  • -t, --template <template> - Template to use

zkrune compile <circuit>

Compile a Circom circuit to WASM and generate proving/verification keys.

zkrune compile MyCircuit.circom
zkrune compile MyCircuit.circom --output ./build --optimize

Options:

  • -o, --output <dir> - Output directory (default: ./build)
  • --optimize - Optimize circuit constraints

zkrune test <circuit>

Test a circuit with sample inputs.

zkrune test MyCircuit
zkrune test MyCircuit --input custom-input.json

Options:

  • -i, --input <file> - Input JSON file

zkrune templates

List all available circuit templates.

zkrune templates

Available Templates

Identity & Access

  • age-verification - Prove age without revealing exact date
  • membership-proof - Prove group membership without identity

Financial

  • balance-proof - Prove minimum balance without amount
  • range-proof - Prove value in range without exact number

Governance

  • private-voting - Vote anonymously with proof

Example Workflow

# 1. Create a new project
zkrune init my-age-verifier
cd my-age-verifier

# 2. Install dependencies
npm install

# 3. Create an age verification circuit
zkrune create AgeCheck --template age-verification

# 4. Navigate to circuit directory
cd AgeCheck

# 5. Compile the circuit
zkrune compile AgeCheck.circom

# 6. Test with sample input
zkrune test AgeCheck --input input.json

# 7. Use in your app
# Import the compiled circuit in your Next.js/React app

Integration with zkrune-sdk

The CLI generates circuits that work seamlessly with zkrune-sdk:

import { generateProof } from 'zkrune-sdk';

const proof = await generateProof({
  templateId: 'age-verification',
  circuitPath: './build/AgeCheck',  // Path from CLI compile
  inputs: { birthYear: '1995', currentYear: '2024', minimumAge: '18' }
});

Features

  • Template System - 13+ ready-to-use circuit templates
  • One-Command Compilation - Automated build pipeline
  • Testing - Verify circuits with sample inputs
  • Project Scaffolding - Complete project initialization
  • TypeScript Support - Fully typed API
  • Zcash-Powered - Using battle-tested Groth16 protocol

Development

# Install dependencies
npm install

# Build
npm run build

# Test locally
npm link
zkrune --help

Links

License

MIT


Built for ZypherPunk Hackathon 2025
Powered by Zcash's Groth16 zk-SNARKs