How Omarchy runs natively in a browser tab.
No remote desktop stream, no VNC server, and no cloud VM. Every packet of systemd, Hyprland, Quickshell, and Arch Linux ARM runs locally inside your browser tab on a WebAssembly Linux 7 kernel and WebGL2 virtio-gpu.
Step 1 Booting a real Linux 7 kernel in WebAssembly
Rather than emulating an x86 PC or faking POSIX syscalls in JavaScript, this runs unkernel: Linux 7.3.4 compiled straight to WebAssembly (unkernel.wasm) with a real software MMU and a multi-CPU SMP patch. Syscalls, page faults, overlayfs, cgroups, and EROFS run at WebAssembly speed, while unmodified aarch64 Linux binaries run on kwemu (an interpreter + WebAssembly JIT across 4 Web Workers).
Step 2 Preparing an Arch Linux ARM base image for unkernel
Unkernel's bundled initramfs looks for a read-only root image labelled kwroot containing /usr/lib/kw-distro, then mounts an overlayfs whose writable upper layer lives on a persistent disk labelled kwdata. Stock Arch Linux ARM doesn't include those markers or unkernel's kwtty vsock daemon, so gpu/build.sh builds arch.ext4 rootlessly under fakeroot with three additions:
/usr/lib/kw-distro(omarchy) and/usr/lib/kw-imageso overlayfs persists changes tokwdatainstead of falling back to RAMtmpfs.kwtty.servicerunning/usr/bin/kwbox tty serveoverAF_VSOCKport 1022, enabling host 9p mounts (/mnt/stage) and livevm.exec()diagnostics.- An
hvc0serial autologin drop-in so the browser's slide-up Console drawer drops straight into a diagnostic shell.
Step 3 Installing Omarchy 4.5 inside the guest under Node
gpu/install.mjs boots arch.ext4 + an 8 GiB sparse omarchy.img (kwdata) under Node with direct host networking and runs gpu/guest/setup.sh cleanly over vm.spawn():
- Removes the unused bare-metal
linux-aarch64kernel and 1.3 GiB oflinux-firmware-*packages before updating. - Adds
DisableSandboxto/etc/pacman.conf(pacman 7's Landlock sandbox isn't present in the Wasm kernel) and points/etc/pacman.d/mirrorlistat Omarchy's matched aarch64 stable snapshot (arm-stable-mirror.omarchy.org) alongsidepkgs.omarchy.org/stable/aarch64so Hyprland and Aquamarine sonames match exactly. - Installs
extra/mesaexplicitly first soopengl-drivergets Mesa'svirgldriver instead of Apple Silicon'smesa-aurora. - Installs real
omarchy,omarchy-settings,hyprland,quickshell,seatd,foot,neovim,btop,fastfetch,lazygit,starship, and core utilities, keeping all Omarchy themes (with intro videos removed and one background image per theme, shrinking themes from 171 MB to 33 MB).
Step 4 Making Hyprland & Quickshell run without VTs or bare-metal DRM
Getting a real Wayland compositor to render inside a browser's WebGL2 canvas required solving five subtle Linux graphics details:
- VT-less seat management:
unkernel.wasmhas noCONFIG_VT(/dev/tty0does not exist). Runningseatd -g videowithSEATD_VTBOUND=0creates a clean non-VTseat0so Aquamarine acquires/dev/dri/card0and/dev/input/event*. - Real systemd user session: Omarchy's
uwsm-applauncher and PipeWire requireuser@.serviceand a D-Bus session bus. Enabling linger and startinguser@UID.servicebeforeHyprlandmakesSuper+Returnand desktop portals work. - Software cursors & modifier-less DRM: Unkernel's
virtio-gpuacknowledges hardware cursor queues as no-ops, so Hyprland runs withcursor.no_hardware_cursors = 1andAQ_NO_MODIFIERS=1, compositing the pointer directly onto the 3D scanout. - Zero-cost animations & Quickshell rendering: Because
systemd-detect-virtreturnsnoneinside unkernel, Omarchy'sno-animations.luaandwindow-opaque.luatoggles are applied unconditionally, and Quickshell renders crisp Wayland SHM layers viaQT_QUICK_BACKEND=softwarestraight into Hyprland's hardware WebGL2virglcompositor. - Log permissions: Logs go to
/var/log/omarchy-desktop.lograther than sticky/tmp(where Linux'sfs.protected_regularblocks root from reopening user-owned files).
Step 5 Shipping a multi-gigabyte desktop on static GitHub Pages
GitHub Pages caps individual files at 100 MB, sites at 1 GB, and does not allow custom COOP/COEP HTTP headers needed for SharedArrayBuffer. To run 100% statically with zero external storage:
- Compressed EROFS image:
gpu/pack-pages.mjsflattens the installed rootfs into a single read-onlyzstd-compressed EROFS image (mkfs.erofs -zzstd,9 -L kwroot) that the Wasm kernel mounts and decompresses on the fly. - 45 MiB static chunks + Range stitching: The EROFS file is split into
<45 MiBstatic files underdistros/chunks/with a JSON manifest. The Service Worker (sw.js) interceptsRangerequests fordistros/omarchy.erofs, fetches only the exact overlapping byte slices needed for each disk block, and injectsCOOP: same-origin+COEP: require-corpon every response. - Persistent browser storage: User changes made inside the running Omarchy desktop are written to unkernel's built-in
kwdataoverlay stored locally in your browser's IndexedDB.
Ready to try it locally in your browser?
Open Omarchy Launcher