Post

Any Nix package, live in your browser

trynix.dev boots a Linux machine in WebAssembly and runs arbitrary Nix store paths in a browser tab—over 310,000 historical nixpkgs package versions, including packages that are not in a public cache.

The system combines nixpkgs-multiverse’s package-history index, cached store paths, an in-memory Nix store, a WebAssembly Linux kernel, and a terminal emulator. Because it can consume any cache with permissive CORS headers, even a store path hosted on GitHub Pages can become runnable in the browser. Packages added to a running VM appear immediately on its shell PATH.

The three-comment Lobsters discussion was enthusiastic and suggested using the same machinery for replayable CI failures or building a nixpkgs pull request; one commenter connected that idea to Pernos.co and rr.