wasm-patterns
Installation
SKILL.md
WebAssembly Patterns
Practical reference for compiling Rust to WebAssembly, integrating with JavaScript, and deploying to production.
When to Activate
- Compiling Rust code to WebAssembly (browser or server-side)
- Setting up wasm-pack for JS/TS integration
- Exposing Rust functions to JavaScript via wasm-bindgen
- Running WebAssembly in non-browser environments (WASI)
- Optimizing WASM binary size and performance
- Offloading CPU-intensive computation (parsing, encoding, crypto) from JavaScript to a WASM Web Worker
- Defining language-agnostic component interfaces using the WIT format and WebAssembly Component Model