{"_id":"@demox-labs/gpu-wasm-expose","_rev":"6-e6dbf23ed2306163d730b603c4b800f8","name":"@demox-labs/gpu-wasm-expose","dist-tags":{"latest":"0.3.25"},"versions":{"0.3.25":{"name":"@demox-labs/gpu-wasm-expose","version":"0.3.25","keywords":["Aleo","Blockchain","Zero Knowledge","ZK"],"license":"GPL-3.0","_id":"@demox-labs/gpu-wasm-expose@0.3.25","maintainers":[{"name":"chirswomack","email":"chris@demoxlabs.xyz"},{"name":"fulltimemike","email":"mike@demoxlabs.xyz"},{"name":"evanmars","email":"evan@demoxlabs.xyz"}],"homepage":"https://github.com/AleoHQ/sdk#readme","bugs":{"url":"https://github.com/AleoHQ/sdk/issues"},"dist":{"shasum":"9f62a6d76df033e946b19b44fecfdb12ba9d2b6c","tarball":"https://registry.npmjs.org/@demox-labs/gpu-wasm-expose/-/gpu-wasm-expose-0.3.25.tgz","fileCount":12,"integrity":"sha512-XcrTmOl+dOWJ5CahoEosWBoWyCqDKrSD9leGdwfVUhby+/jo28siHsiJtmPEk4+b/IV88O6IFOtcHMxM/JZm0g==","signatures":[{"sig":"MEYCIQC8+PyQlfFzAHH2TnSAJX6tatRDkR+3zfo0WMODtT67uQIhAM0U8pW/jpWV7AC3p19IZ7QzgYHiShBrCb+sQFUf3iT2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18896462},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","browser":"./dist/index.js","exports":{".":"./dist/index.js","./worker.js":"./dist/worker.js"},"gitHead":"b37e5a92537524dbc7600af5ead82010fe4e24d6","scripts":{"test":"node test.js","build":"rimraf dist && rollup -c rollup.config.js && cpr js/types dist && rimraf dist/wasm*","prepublish":"yarn build"},"_npmUser":{"name":"fulltimemike","email":"mike@demoxlabs.xyz"},"repository":{"url":"git+https://github.com/AleoHQ/sdk.git","type":"git"},"_npmVersion":"9.8.0","description":"Wasm build for the SDK","directories":{},"_nodeVersion":"20.5.1","collaborators":["The Aleo Team <hello@aleo.org>"],"_hasShrinkwrap":false,"devDependencies":{"cpr":"^3.0.1","rimraf":"^5.0.1","rollup":"^3.27.2","@wasm-tool/rollup-plugin-rust":"^2.4.2"},"_npmOperationalInternal":{"tmp":"tmp/gpu-wasm-expose_0.3.25_1705098191313_0.8897572469877795","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-01-12T22:23:11.175Z","modified":"2025-11-04T19:41:32.932Z","0.3.25":"2024-01-12T22:23:11.587Z"},"bugs":{"url":"https://github.com/AleoHQ/sdk/issues"},"license":"GPL-3.0","homepage":"https://github.com/AleoHQ/sdk#readme","keywords":["Aleo","Blockchain","Zero Knowledge","ZK"],"repository":{"url":"git+https://github.com/AleoHQ/sdk.git","type":"git"},"description":"Wasm build for the SDK","maintainers":[{"email":"mike@demoxlabs.xyz","name":"fulltimemike"},{"email":"evan@demoxlabs.xyz","name":"evanmars"},{"email":"john@demoxlabs.xyz","name":"johndonavon"},{"email":"dennis@demoxlabs.xyz","name":"dagarcia"},{"email":"kevin@demoxlabs.xyz","name":"krwang4094"},{"email":"julian@demoxlabs.xyz","name":"julian-demox"}],"readme":"[![Crates.io](https://img.shields.io/crates/v/aleo-wasm.svg?color=neon)](https://crates.io/crates/aleo-wasm)\n[![Authors](https://img.shields.io/badge/authors-Aleo-orange.svg)](https://aleo.org)\n[![License](https://img.shields.io/badge/License-GPLv3-blue.svg)](./LICENSE.md)\n\n[![github]](https://github.com/AleoHQ/sdk)&ensp;[![crates-io]](https://crates.io/crates/aleo-wasm)&ensp;[![docs-rs]](https://docs.rs/aleo-wasm/latest/aleo-wasm/)\n\n[github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github\n[crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust\n[docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs\n\n# Aleo Wasm\n\nAleo JavaScript and WebAssembly bindings for building zero-knowledge web applications.\n\n`Rust` compiles easily to `WebAssembly` but creating the glue code necessary to use compiled WebAssembly binaries \nfrom other languages such as JavaScript is a challenging task. `wasm-bindgen` is a tool that simplifies this process by \nauto-generating JavaScript bindings to Rust code that has been compiled into WebAssembly. \n\nThis crate uses `wasm-bindgen` to create JavaScript bindings to Aleo source code so that it can be used to create zero \nknowledge proofs directly within `web browsers` and `NodeJS`.\n\nFunctionality exposed by this crate includes:\n* Aleo account management objects\n* Aleo primitives such as `Records`, `Programs`, and `Transactions` and their associated helper methods\n* A `ProgramManager` object that contains methods for authoring, deploying, and interacting with Aleo programs\n\nMore information on these concepts can be found at the [Aleo Developer Hub](https://developer.aleo.org/concepts).\n\n## Usage\n\nThe [rollup-plugin-rust](https://github.com/wasm-tool/rollup-plugin-rust/) tool is used to compile the Rust code in this crate into JavaScript\nmodules which can be imported into other JavaScript projects.\n\n#### Installation\n\nFollow the [installation instructions](https://github.com/wasm-tool/rollup-plugin-rust/#installation) on the rollup-plugin-rust README.\n\n### Build Instructions\n\n```bash\nyarn build\n```\n\nThis will produce `.js` and `.wasm` files inside of the `dist` folder.\n\n## Testing\n\nRun tests in NodeJS\n```bash\nwasm-pack test --node\n```\n\nRun tests in a browser\n```bash\nwasm-pack test --[firefox/chrome/safari]\n```\n\n## Building Web Apps\n\nFurther documentation and tutorials as to how to use the modules built from this crate to build web apps  will be built \nin the future. However - in the meantime, the [aleo.tools](https://aleo.tools) website is a good\nexample of how to use these modules to build a web app. Its source code can be found in the \n[Aleo SDK](https://github.com/AleoHQ/sdk) repo in the `website` folder.\n","readmeFilename":"README.md"}