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

@tokamak-zk-evm/subcircuit-library

v2.1.5

Published

Prebuilt R1CS subcircuit library package for Tokamak zk-EVM

Readme

@tokamak-zk-evm/subcircuit-library

Prebuilt circuit artifacts consumed by the Tokamak zk-EVM Synthesizer and proving backends. The repository directory retains the historical qap-compiler name because it also contains maintainer-side generation tools.

Install

npm install @tokamak-zk-evm/subcircuit-library

Consumers install the npm package. They do not need to run the QAP compiler or rebuild the circuits.

When to use this package

Most applications should let the Synthesizer, CLI, or proving backend select and resolve this package. Import it directly only when an integration needs a specific published circuit file or is implementing one of those runtimes.

R1CS means rank-1 constraint system: the compiled constraints used during setup and proving. Each matching WASM file generates witness values for one subcircuit.

How it is used

| Consumer | Use | | ----------------------------------------------- | ------------------------------------------------------------- | | Synthesizer | Loads metadata and matching WASM witness generators | | Native backend | Uses binary R1CS files during setup and proving | | Browser backend | Converts and validates compatible runtime artifacts | | CLI | Installs the synchronized library in the local proof workflow |

The Node Synthesizer resolves installed assets at runtime. The Web Synthesizer bundles the matching JSON and WASM assets at build time.

Published artifacts

All files are acquired from the same installed npm package version:

| Path | Role | Format | Example | | --------------------------------------------- | -------------------------------------------------------- | --------------------------- | ------------------ | | subcircuits/library/r1cs/subcircuit<N>.r1cs | Compiled constraints used by setup and proving | Circom binary R1CS | subcircuit0.r1cs | | subcircuits/library/wasm/subcircuit<N>.wasm | Witness generator for one subcircuit | WebAssembly | subcircuit0.wasm | | subcircuits/library/json/subcircuit<N>.json | Compiler metadata for one subcircuit | JSON | subcircuit0.json | | subcircuits/library/setupParams.json | Circuit capacity and setup parameters | JSON numeric object | Published file | | subcircuits/library/globalWireList.json | Global-to-local wire mapping | JSON two-number tuple array | Published file | | subcircuits/library/subcircuitInfo.json | Subcircuit catalog, wire ranges, and flattening metadata | JSON record array | Published file | | subcircuits/library/frontendCfg.json | Frontend buffer and subcircuit configuration | JSON | Published file | | subcircuits/library/generate_witness.js | Witness-generation entry point | JavaScript module | Published file | | subcircuits/library/witness_calculator.js | Runtime witness calculator | JavaScript module | Published file | | subcircuits/circom/constants.circom | Constants synchronized with the generated library | Circom source | Published file | | build-metadata.json | Build identity and dependency versions | JSON | Package root |

The supported acquisition path is npm. Keep R1CS, WASM, metadata, constants, and setup artifacts on one compatible release line.

Direct Node consumers can resolve a file without assuming an installation directory:

import { createRequire } from 'node:module';

const require = createRequire(import.meta.url);
const setupParamsPath = require.resolve('@tokamak-zk-evm/subcircuit-library/subcircuits/library/setupParams.json');

Compatibility

  • Consumer artifacts are platform-neutral.
  • Maintainer-side regeneration requires Node.js 18+, Circom, and the validation process in the maintainer documentation.
  • The package is versioned with the other supported Tokamak zk-EVM packages.

npm publication

| Item | Value | | ----------------- | -------------------------------------------------------------------------------------------------------- | | Package | @tokamak-zk-evm/subcircuit-library | | Published version | npm view @tokamak-zk-evm/subcircuit-library version | | Release notes | Repository CHANGELOG.md |

Security and application responsibilities

Pin a compatible package version and verify the package source according to the application's supply-chain policy. Do not combine artifacts from different builds. Published constraints and witness generators do not by themselves establish that a circuit, setup ceremony, integration, or surrounding protocol is secure.

Project and license

Dual-licensed under MIT OR Apache-2.0.