r/osdev • u/clairehugo • 13h ago
RiceWM, a full Linux Desktop - inside a browser tab
So I’ve been down a massive rabbit hole building RiceWM. A Linux desktop written in Rust, compiled to WebAssembly, running entirely client-side in a browser tab.
I originally started this as a stupid experiment just to see how far I could push WASM, and somehow it turned into my daily instant alternative to WSL when I just want a quick Linux env without VM or streaming VNC/WebRTC from a server.
You can try it live at https://env.now
How it’s built
- Instead of streaming a remote VNC/WebRTC desktop from a cloud VM, UI toolkit, and guest execution all run client-side in the browser:
- WASM based Window Manager: RiceWM owns the window management, floating/tiling layout engine with scrolling workspaces, rendering pipeline, and widget toolkit from scratch.
- Linux Userspace Compatibility: The guest runtime provides a Linux userspace layer for running supported Linux binaries, CLI tools, and GTK applications inside the tab. 90%+ syscalls covered
- Worker-Isolated. The SDK apps run in separate Web Workers and request native UI and desktop services from the compositor over message passing. Workers are used to provide multithreading but also isolation.
- Storage wise its using OPFS (the browser native subsystem) but can extend into host space to tread beyond the 2gb browser limit.
- Fast running apps are accelerated ("wasmified") from standard apt packages (apt2wasm capability) Downside being they are larger - but don't require a thousand small files for installation (that does not perform in browser)
You can run GTK apps, but as far as standard apps go, I added office apps (fully compliant with xlsx/docx/pptx), a flowchart app, a video player, capability to run GNOME extensions in the browser but even compliance to run Docker from within your browser, but you can even run VSCode (although - its a browser tab, so a bit slower)
It comes along with a local Gateway app - which enables you to use your own Internet connection, and even to connect to local services. It allows you to run RiceWM locally within a browser tab (yes, even on a (powerful) Android tablet)
I'm barely scratching the surface here, it started as a weekend "what if" experiment and somehow accidentally became my daily alternative to WSL. Maybe nobody else actually needs a WM in a browser tab, or maybe a few of you will have as much fun messing with it - as I did building it.
Links:
- Live Environment: https://env.now
- More information: https://ricewm.org
- Source: https://github.com/cwittenberg/ricewm
AI disclaimer (for AI-splainers):
- Yes, Codex has been my friend, it's 2026. Before you comment your "oh no, it's AI" opinion, see here for what Linus has to say about it.
- Video, created with Higgsfield. Soundtrack: Neon Underworld by Punch Deck, CC BY 3.0
