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

zkwasm-service-helper

v1.0.0

Published

helper lib to communicate with zkwasm cloud service

Readme

zkWasm-service-helper

Introduction

This lib is to help communicate with zkwasm service

How to use it

This lib main provide a ZkWasmServiceHelper class to help user to communicate to zkwasm service backend. It mainly provide API to add tasks and get informations to zkwasm service backend.

like:

  • async queryImage(md5: string);
  • async loadTasks(query: QueryParams);
  • async addNewWasmImage(task: WithSignature);
  • async addProvingTask(task: WithSignature);

Examples

There are several examples of how to use this lib in the examples folder.

How to run the examples

0. Change to the examples directory as the current working directory

cd examples

1. Install dependencies

npm install

2. Update Config

User specific config values must be provided in the .env file:

  • Change the values of SERVER_URL and PRIVATE_KEY to your own.
  • Update the CHAIN_ID to a network chain id which have been deployed on the server, and update PROVIDER_URL to a valid RPC url.
  • Update the following env variables as per your test:
    • SUBMIT_AUTO_SUBMIT_PROOF: Set to true for submitting an Auto proof, otherwise false for Manual proof.
    • MANUAL_TASK_ID_TO_VERIFY: Set to the task id of an existing task in which you want to verify the proof.
    • AUTO_TASK_ID_TO_VERIFY: Set to the task id of any tasks within the auto submit batch which you want to verify.
    • TASK_ID_TO_QUERY: Set to task id to query, by default this is used to fetch the external host table tar gz file.
    • MD5_TO_QUERY: Set image MD5 to query, by default this is used for various task fetches in query script.
  • To customize further you may change various variables within each of the scripts.

3. Run the examples

Running tasks examples:

# Add a new image using wasm in `data/image.wasm`.
npx tsx src/tasks/addNewImage.ts

# Add a new proof for image previously added. This can be Auto or Manual, see `SUBMIT_AUTO_SUBMIT_PROOF`.
npx tsx src/tasks/submitProofTask.ts

Running verify examples:

# Verify proof of task id `MANUAL_TASK_ID_TO_VERIFY`
npx tsx src/verify/verifyProof.ts

# Verify auto submit batch which includes task id `AUTO_TASK_ID_TO_VERIFY`
npx tsx src/verify/verifyAutoSubmitProof.ts

Running query examples:

# Run task related queries
npx tsx src/queries/task.ts

# Run auto submit task related queries
npx tsx src/queries/autosubmit.ts