$ cd ~/projects Side by Side Compare browser engines in one tab ──────────────────────────────────────────────────── Open one URL in Firefox, Chromium, Epiphany and more at once, each a real browser running in its own Linux VM in your tab, with no installation or server. tags: TypeScript, WebAssembly, Web Development ──────────────────────────────────────────────────── example.com in Firefox (Gecko), Chromium (Blink) and Epiphany (WebKit) on the live site. screenshot https://lohr.dev/images/projects/sidebyside-overview.webp ──────────────────────────────────────────────────── ## Open a page in several engines at once Type a URL and press Open. Firefox (Gecko), Chromium (Blink) and Epiphany (WebKit) each start in their own pane and load the page, and you can click, scroll and type in each one as usual. The Browsers menu adds Firefox ESR and NetSurf and sets the order of the panes. Mobile mode switches the browsers to a phone-sized window and a mobile user agent without rebooting them. A console collects the web-console messages of Firefox, Firefox ESR and Chromium in one list, and each pane can show its CPU, memory and network use. The link keeps the URL, browsers and settings, so a comparison can be shared. Open Side by Side https://michidk.github.io/sidebyside/ Side by Side on GitHub https://github.com/michidk/sidebyside ──────────────────────────────────────────────────── ## Real browsers in a WebAssembly Linux Each pane boots [unkernel](https://github.com/pithings/unkernel), a Linux kernel compiled to WebAssembly, and runs the unmodified nixpkgs build of the browser. Files download from the NixOS binary cache only when the guest first reads them and are checked against hashes from the cache's signed records, verified when the page is built. The VMs share one download cache, so a second visit reuses what is already there. [wland](https://github.com/pithings/wland) draws the browser windows in the page. A web page cannot open network connections itself, so the browsers reach the internet through a public [Wisp](https://github.com/MercuryWorkshop/wisp-protocol) relay. That relay sees which hosts the browsers connect to. For faster loading and your own connection, run the relay on your computer with one command; the page explains the steps. Run the relay locally https://github.com/michidk/sidebyside#faster-run-the-relay-on-your-computer ──────────────────────────────────────────────────── ## What to expect The first visit takes one to three minutes while the browsers download, and the tab needs about 2 GiB of memory per browser. The browsers are emulated and render without a GPU, so pages load slowly. That is fine for checking layout and rendering differences, not for measuring performance. ──────────────────────────────────────────────────── ## Host your own copy The page is a static site with no server code, built with TanStack Start, shadcn/ui and Base UI. Build it with Bun and serve it from any HTTPS static host; the public instance deploys to GitHub Pages on every push. Build and deploy guide https://github.com/michidk/sidebyside#build-and-deploy ──────────────────────────────────────────────────── $ ls ~/pages > about curl -L lohr.dev > projects curl -L lohr.dev/projects > blog curl -L lohr.dev/blog > stats curl -L lohr.dev/stats > contact curl -L lohr.dev/contact ──────────────────────────────────────────────────── https://lohr.dev