Run Any Nix Package Live in Your Browser with WebAssembly VM
Originally published on Simon Willison's Weblog by Simon Willison
Summary & Key Takeaways
• trynix.dev allows running any Nix package from the past 13 years directly in the browser. • It achieves this using a qemu-wasm powered x86_64 Linux virtual machine. • The entire VM operates within the browser via WebAssembly. • Packages are URL addressable, enabling direct links to specific versions like Python 3.6.2. • A related tool, trynix-preview, offers GitHub Action integration. • trynix-preview comments a link on pull requests to boot the PR's build in the browser. • This system operates with "No servers, just browsers."
Our Commentary
This is genuinely mind-blowing. A full x86_64 Linux VM, running Nix packages, entirely in the browser? And then using that for PR previews? The implications for developer experience and reproducible environments are massive. We've seen WASM push boundaries, but this feels like a new frontier. I'm picturing a future where entire dev environments are ephemeral, spun up instantly in a tab. The "no servers, just browsers" mantra is a powerful one.