WebAssembly (WASM) integration, WASI, component model, Rust/Go to WASM compilation. Use when implementing WASM modules, browser/edge compute, or polyglot runtime.
Scanned 9/5/2026
Install to Claude Code
npx -y skills add TheBeardedBearSAS/claude-craft --skill wasm --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Wasm?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/thebeardedbearsas-wasm)More formats (shields.io, HTML) on the badges page.
---
name: wasm
description: WebAssembly (WASM) integration, WASI, component model, Rust/Go to WASM compilation. Use when implementing WASM modules, browser/edge compute, or polyglot runtime.
context: fork
files: ["**/*.wasm", "**/wasm/**", "**/*.wat"]
---
# WebAssembly (WASM) — Component Model, WASI
WASM pour performance critique, polyglot runtime, edge computing.
## Use Cases
**Browser** — Crypto, image (Figma, Google Earth)
**Edge** — Cloudflare Workers, Fastly
**Server** — Plugins sandboxés (Envoy)
**Embedded** — IoT, automotive
## Compilation
**Rust** — `wasm-pack` (~50KB, perf)
**Go** — `GOOS=js GOARCH=wasm` (~2MB)
**C/C++** — Emscripten (legacy)
**AssemblyScript** — TypeScript-like
## Rust to WASM
```rust
use wasm_bindgen::prelude::*;
#[wasm_bindgen] pub fn add(a: i32, b: i32) -> i32 { a + b }
```
```bash
wasm-pack build --target web
```
```javascript
import init, { add } from './pkg/wasm.js';
await init(); add(2, 3);
```
## WASI (System Interface)
```bash
rustc --target wasm32-wasi main.rs -o app.wasm
wasmtime app.wasm
```
## Component Model
```wit
interface math { add: func(a: s32, b: s32) -> s32 }
```
Compose Rust/Go/C++ modules typés.
## Edge (Cloudflare)
```javascript
import wasm from './processor.wasm';
export default {
async fetch(req) {
const inst = await WebAssembly.instantiate(wasm);
return new Response(inst.exports.process(req.body));
}
};
```
## Runtimes
**Wasmtime** — Fast, WASI
**Wasmer** — Universal
**WasmEdge** — Edge, K8s
---
Voir `@.claude/skills/edge-computing/SKILL.md`
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!