Skip to content

fix(playground): check the browser can run the VM before downloading - #129

Merged
raphaelvigee merged 1 commit into
mainfrom
raphaelvigee/playground-vm-boot-preflight
Oct 24, 2026
Merged

raphaelvigee merged 1 commit into
mainfrom
raphaelvigee/playground-vm-boot-preflight

Conversation

@raphaelvigee

Copy link
Copy Markdown
Member

Before any download, the playground now loads the VM runtime with Arm64JS.mode(). That only loads the runtime (inline, or the CDN frame handshake), and it rejects with unsupported-browser when the browser can't isolate the VM. Visitors on an unsupported browser now get the error right away instead of after ~200 MB of heph + plugin downloads.

It's cheap: no image is fetched and nothing boots. The runtime it loads is the same one the boot reuses afterwards.

🤖 Generated with Claude Code

Load the VM runtime with Arm64JS.mode() first. It rejects with
unsupported-browser where the VM can't run (e.g. Firefox/Safari without
cross-origin isolation), so those visitors get the error up front instead
of after ~200 MB of heph + plugin downloads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

⚡ Cloudflare Pages preview

Preview https://07892a8d.hephbuild.pages.dev
Commit 62410d6

@raphaelvigee
raphaelvigee merged commit eec0b22 into main Oct 24, 2026
3 checks passed
@raphaelvigee
raphaelvigee deleted the raphaelvigee/playground-vm-boot-preflight branch October 24, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant