{"repo":"wasmerio/wasmer-js","free":true,"listed":false,"github":"https://github.com/wasmerio/wasmer-js","clone":"git clone https://github.com/wasmerio/wasmer-js.git","description":"Monorepo for Javascript WebAssembly packages by Wasmer","language":"Rust","stars":1103,"topics":["webassembly","nodejs","npm-package","wasi","wasix"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"The Wasmer JavaScript SDK Javascript library for running Wasmer packages at ease, including WASI and WASIX modules. Getting Started Install from NPM For instaling @wasmer/sdk , run this command in your shell: You can now run packages from the Wasmer registry: Use with a tag (without bundler) It is possible to avoid needing to use a bundler by importing @wasmer/sdk from your script tag in unpkg. Using a custom Wasm file By default, init will load the Wasmer SDK WebAssembly file from the package. If you want to customize this behavior you can pass a custom url to the init, so the the wasm file of the Wasmer SDK can ve served by your HTTP server instead: Using a JS with the Wasm bundled You can also load Wasmer-JS with a js file with the Wasmer SDK WebAssembly file bundled into it (using base64 encoding), so no extra requests are required. If that's your use case, you can simply import @wasmer/sdk/wasm-inline : Cross-Origin Isolation Browsers have implemented security measures to mitigate the Spectre and Meltdown vulnerabilities. These measures restrict the sharing of SharedArrayBuffer objects with Web Workers unless the execution context is deemed secure. The @wasmer/sdk package uses a threadpool built on Web Workers and requires sharing the same SharedArrayBuffer across multiple workers to enable WASIX threads to access the same address space. This requirement is crucial even for running single-threaded WASIX programs because the SDK internals rely on SharedArrayBuffer for com","default_branch":null,"files":null,"tree":[],"storefront":"/r/wasmerio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wasmerio/wasmer-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}