Electrobun WebGPU
Installation
SKILL.md
Electrobun WebGPU Patterns
Electrobun wraps WGPU (a Rust WebGPU abstraction) via Bun FFI. GPU windows bypass the webview entirely — they render directly to a native surface.
Config Requirement
Always required before WebGPU code will work:
// electrobun.config.ts
mac: { bundleWGPU: true },
win: { bundleWGPU: true },
linux: { bundleWGPU: true },
GpuWindow Setup
import { GpuWindow } from "electrobun/bun";