{"library":"unwasm","type":"library","category":null,"description":"unwasm provides a suite of universal WebAssembly (Wasm) tools for JavaScript, designed to simplify the integration of `.wasm` modules across various JavaScript runtimes, frameworks, and build environments. It currently stands at version 0.5.3, with a release cadence that includes frequent patch and minor updates. The project's core mission is to align with the WebAssembly/ES Module Integration proposal while maintaining broad compatibility with existing ecosystem libraries. Its key differentiators include automated resolution of WebAssembly imports, dynamic generation of code bindings tailored for bundlers, and a flexible API supporting both static and dynamic `.wasm` module imports. This includes explicit support for import objects and direct `WebAssembly.Module` instances via a `?module` suffix, catering to environments both with and without top-level `await` capabilities.","language":"javascript","status":"active","version":"0.5.3","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install unwasm","imports":["import { sum } from 'unwasm/examples/sum.wasm';","import initRand, { rand } from 'unwasm/examples/rand.wasm';\n// ... await initRand({ env: { seed: () => () => Math.random() * Date.now() } });","import _sumMod from 'unwasm/examples/sum.wasm?module';"]},{"cmd":"yarn add unwasm","imports":[]},{"cmd":"pnpm add unwasm","imports":[]}],"homepage":"https://unwasm.dev","github":"https://github.com/unjs/unwasm","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/unwasm","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/unwasm/compatibility"}}