Npm package
Garaga is available as an npm package, making it easy to integrate into your Node.js projects. This guide will help you get started with installation and usage.
Quick Start
The recommended way to install Garaga is through the npm registry:
npm install garagaVersion Compatibility: Use the same version as your pip package (garaga==X.Y.Z → garaga@X.Y.Z) to ensure calldata compatibility with generated verifiers and maintained contracts.
Or if you prefer using Yarn:
yarn add garagaAvailable Functions
The package exports several functions that you can use in your project. For a complete list of available functions and their usage, check out the API Reference. This file contains all the exported functions and their TypeScript definitions.
Package Details
NPM Registry: garaga on npmjs.com
Source Code: GitHub Repository
Building from Source
If you need to build the package from source (e.g., for development or custom modifications), follow these steps:
Prerequisites
Manual Build
Clone the repository:
Install dependencies and build:
Install the generated package:
Docker Build (Recommended)
For reproducible builds, use Docker:
Clone the repository:
Build using Docker:
Install the generated package:
Troubleshooting
If you encounter any issues during installation:
Ensure you have the latest version of Node.js installed
Clear your npm cache:
npm cache clean --forceDelete
node_modulesandpackage-lock.json, then runnpm installagainFor build issues, make sure you have the latest version of Rust and wasm-pack
Support
For additional help or to report issues:
See Support
Last updated
Was this helpful?