Any Nix package, live in your browser

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers can boot any of 13 years of Nix packages, or a pull request's build, in a browser with no servers or local setup.

Read this as

trynix.dev is a free website that runs a Linux computer inside your web browser. It can load any software package built by Nix, a popular packaging system, going back 13 years, for example, the exact Python 3.6.2 from 2017. A developer named Farid Zakaria built it using a technique that translates machine code so it can run in a browser tab. It also lets reviewers click a link on a code change and try the running program instantly.

trynix.dev is a free, serverless browser tool that boots any Nix package from the past 13 years, including old versions like Python 3.6.2, plus a GitHub Action that attaches a one-click live boot link to pull requests. It lowers the cost of testing and code review, no VMs, setup or hosting bills. Risk is low; adoption is a matter of convenience for developer tooling teams.

trynix.dev runs an x86_64 Linux VM in WebAssembly via the qemu-wasm project, booting any Nix package from the past 13 years, URL-addressable, e.g. https://trynix.dev/?pkg=python3@3.6.2 gives an interactive shell with that 2017 Python. Zakaria's trynix-preview GitHub Action comments a boot link on PRs, so a reviewer can run the PR's build in-browser with no servers. Limitations: browser-based x86 emulation implies performance overhead, though the article gives no benchmarks.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

trynix.dev Nix qemu-wasm GitHub Action Python 3.6.2 WebAssembly

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading