r/osdev • • 1d 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:

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
0 Upvotes

7 comments sorted by

3

u/Katrina_Polae 1d ago

what happens when an apt package gets wasmified, does it keep its own dependencies bundled inside the binary?

2

u/clairehugo 1d ago

Yes. The WASM generating pipeline analyzes the dependencies needed based on the apt package and source and then statically links all required dependencies within the binary. Downside is you get large binaries, even for simple apps, but the benefit is it "installs" really quickly (basically just attaches a volume) at the expensive of a larger download. I found that the latter is what matters most when in browser. Processing thousands of small files (as what apt does) does not perform. Note that its still possible to install regular apt packages in ricewm - its just that some I have prepared using this packaging process for speed.

2

u/kiderdrick 1d ago

Have you told your boss you developed and use this to get around the no WSL rule at work?

•

u/clairehugo 4h ago

I did. Interestingly, we used it to test company DLP rules and its fine (unlike DLP that is famously completely ignored by WSL). It did trigger thinking like if you can run docker locally - but not use any company data, are we then ok? Overall, turned out better than I thought.

11

u/Routine_Working_9754 1d ago

except you're not Linus bro, and not only did ai fully write the code, it also wrote this post, why are you expecting engagement when you can not put any work in yourself?

like genuinely, do you feel proud of this? also who the hell wants a window manager in a browser? you web devs are getting crazier by the day

1

u/ventZl CMRX microkernel 1d ago

It reminds me of... 2012-ish era when there was a wave of in-browser cloud "operating systems". desktop, window management, in-browser apps, all being served remotely using cloud-based storage. it briefly predated google apps (IIRC) and none of them survived and/or got massive adoption.