dexploarer/plugin-electrobun-dev/electrobun-webgpu
Claude Code and agent skill by dexploarer/plugin-electrobun-dev
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks about "electrobun WebGPU", "GpuWindow", "WGPUView", "WGSL shaders", "KEEPALIVE pattern", "electrobun GPU", render loops in electrobun, FFI pointer management, or GPU buffer serialization.
Install
npx vskill@latest install dexploarer/plugin-electrobun-dev/electrobun-webgpuSKILL.md
The same SKILL.md was published earlier as dexploarer/plugin-electrobun-dev/electrobun-webgpu.
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:
GpuWindow Setup
KEEPALIVE — Critical Pattern
Bun's GC will collect FFI pointers unless you hold a reference to them. Without KEEPALIVE, your app will crash mid-render with a segfault.
Render Loop Pattern
WGSL Shader Structure
Vertex Buffer with DataView
GPU structs must be manually serialized. Vertex layout: [x, y, time, res.x, res.y, mouse.x, mouse.y] (all f32).
Common Mistakes
- No KEEPALIVE → segfault or silent corruption mid-render.
- `bundleWGPU: false` → runtime error; Electrobun won't include the WGPU native library.
- Not recreating swap chain on resize → distorted rendering after window resize.
- Forgetting `little-endian: true` in
DataView.setFloat32→ garbage GPU data on most platforms. - Blocking the render loop → use async I/O outside the render interval, never inside.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/electrobun-webgpu/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 1
- 7-day trend score
- 9
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dexploarer/plugin-electrobun-dev/electrobun-webgpu)