{"library":"watr","type":"library","category":null,"description":"watr is a lightweight, zero-dependency WAT (WebAssembly Text format) compiler written in JavaScript. Current stable version is 4.5.0, with frequent releases adding support for upcoming WebAssembly proposals. It compiles WAT to binary (wasm), parses into AST, pretty-prints, minifies, optimizes, and polyfills newer features to MVP. Key differentiators: small bundle size (~84KB minified, ~24KB gzipped), high throughput (~4460 op/s vs 700-2200 for alternatives), spec-complete with GC, exception handling, and stack switching, built-in CLI, and a unique tagged template literal for instant wasm exports with JS interop.","language":"javascript","status":"active","version":"4.5.0","tags":["javascript","wat","wasm","webassembly","compiler","wat2wasm","wabt","wast","parser","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install watr","imports":["import watr from 'watr'","import { compile } from 'watr'","import { parse } from 'watr'","import { print } from 'watr'","import type { WatNode } from 'watr'"]},{"cmd":"yarn add watr","imports":[]},{"cmd":"pnpm add watr","imports":[]}],"homepage":null,"github":"https://github.com/dy/watr","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/watr","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}