
Bevy wasm webgpu
Guides Bevy 0.20 games to run in browsers via WASM with WebGPU or WebGL2
Bevy wasm webgpu is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 38
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Bevy wasm webgpu
This skill covers taking a Bevy 0.20 app to the wasm32-unknown-unknown target for browser delivery. It walks through a trimmed Cargo feature set, a release profile tuned for smaller bundles, and a build sequence using cargo, wasm-bindgen and an optional wasm-opt pass, followed by serving the output and the assets folder over HTTP.
The skill also explains how to attach Bevy to an existing canvas element, keep browser keyboard shortcuts working, and choose the renderer backend and WgpuSettings priority so the app uses WebGPU when available and falls back to WebGL2. It lists version-specific gotchas for moving from Bevy 0.18 and 0.19 to 0.20, including the WESL shader change, mesh shader limits on web, texture compression choices and dropped tasks.
The guide expects a Rust project targeting Bevy 0.20 with the wasm32 toolchain, wasm-bindgen CLI and a static file server. It is written as instructions and reference snippets rather than executable scripts.
When your agent uses it
Use when targeting Bevy 0.20 at `wasm32-unknown-unknown`, choosing the `webgl2` or `webgpu` feature, setting `WgpuSettings { backends, priority: WgpuSettingsPriority::WebGPU }`, attaching to a canvas with `Window { canvas, fit_canvas_to_parent }`, generating glue with `wasm-bindgen`, or debugging asset HTTP 404s and `Task` cancellation in the browser.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (7 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the raea plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add shinyobjectz/raea-skills
/plugin install raea@raeaOr copy only this skill to ~/.claude/skills/bevy-wasm-webgpu:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/bevy-wasm-webgpu &&
cp -R "$tmp/skills/bevy/pack/bevy-wasm-webgpu" ~/.claude/skills/bevy-wasm-webgpu &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/bevy-wasm-webgpu inside it instead.
Copy the skill folder to ~/.agents/skills/bevy-wasm-webgpu to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/bevy-wasm-webgpu &&
cp -R "$tmp/skills/bevy/pack/bevy-wasm-webgpu" ~/.agents/skills/bevy-wasm-webgpu &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/bevy-wasm-webgpu inside it instead.
Copy the skill folder to ~/.cursor/skills/bevy-wasm-webgpu to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/bevy-wasm-webgpu &&
cp -R "$tmp/skills/bevy/pack/bevy-wasm-webgpu" ~/.cursor/skills/bevy-wasm-webgpu &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/bevy-wasm-webgpu inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/shinyobjectz/raea-skills.git --path skills/bevy/pack/bevy-wasm-webgpuOr copy the folder to ~/.gemini/skills/bevy-wasm-webgpu yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/bevy-wasm-webgpu:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/bevy-wasm-webgpu &&
cp -R "$tmp/skills/bevy/pack/bevy-wasm-webgpu" ~/.copilot/skills/bevy-wasm-webgpu &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/bevy-wasm-webgpu inside it instead.
Get the folder:
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.gitThen copy raea-skills/skills/bevy/pack/bevy-wasm-webgpu into your agent's skills folder as bevy-wasm-webgpu. Agents that support SKILL.md read one folder per skill.
What it does
- Trimmed Cargo feature set
- Shows which Bevy features to enable explicitly for a browser build to keep the bundle small.
- Canvas and backend setup
- Covers attaching Bevy to a CSS-selected canvas and selecting WebGPU or WebGL2 through WgpuSettings.
- Build and serve steps
- Lists the cargo, wasm-bindgen and optional wasm-opt commands plus how assets must be placed for fetching.
- Bevy 0.20 migration notes
- Summarises breaking changes from 0.18 and 0.19 affecting web builds, such as WESL shaders and task cancellation.
- Browser troubleshooting
- Points out common browser issues including asset 404s, COOP/COEP headers for threading and time APIs.
Good for
- Set up a Bevy 0.20 project to compile for the browser
- Choose between WebGL2 and WebGPU for a Bevy web game
- Reduce the size of a Bevy WASM bundle
- Attach a Bevy app to an existing canvas on a web page
- Fix missing asset errors when a Bevy game runs in the browser
Bevy wasm webgpu FAQ
Which Bevy version does Bevy wasm webgpu target?
It targets Bevy 0.20 and includes notes on changes from 0.18 and 0.19.
Does Bevy wasm webgpu need a particular build tool?
The build steps use cargo for the wasm32-unknown-unknown target, the wasm-bindgen CLI and optionally wasm-opt.
Can Bevy wasm webgpu handle compute shaders in the browser?
It notes that compute shaders require the WebGPU feature, since WebGL2 has no compute support.
Are the assets bundled into the WASM file?
No. The guide says assets are served alongside the page and embedding requires a custom asset source.
How do I install Bevy wasm webgpu in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/bevy-wasm-webgpu to use it in all your projects, or to .claude/skills/bevy-wasm-webgpu in one project. Or install the raea plugin, which includes it: /plugin marketplace add shinyobjectz/raea-skills, then /plugin install raea@raea.
Does Bevy wasm webgpu run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Bevy wasm webgpu?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Bevy wasm webgpu?
The closest alternatives to Bevy wasm webgpu are Bevy rendering, Bevy vfx, Bevy cargo features, Bevy and Bevy assets.
Where this comes from
- Description: from the skill's own SKILL.md.
More from shinyobjectz/raea-skills

Check and consult a project's generated vocabulary before naming anything
- Open source
- 38 GitHub stars
- Knowledge and memory

Blank template for authoring new raea skills with a standard section layout
- Open source
- 38 GitHub stars
- Developer tools

Lets an agent write and render video, motion graphics and 3D scenes as React code
- Open source
- 38 GitHub stars
- Design and media

Routes Bevy 0.20 tasks to the right sibling skill and pins the engine version
- Open source
- 38 GitHub stars
- Developer tools

Guides an agent through accessibility design and audits for Bevy 0.20 games
- Open source
- 38 GitHub stars
- Developer tools

Guides an agent through Bevy 0.20 animation: graphs, blending, events and easing
- Open source
- 38 GitHub stars
- Developer tools

