r/coolgithubprojects • • 12d ago

RiceWM, an instant full Linux Desktop from any browser tab

https://env.now

Started a sideproject called RiceWM, a full Linux desktop in a browser tab. The original idea came from a problem I ran into at work. I needed to run a sensitive AI model in an isolated environment, but getting a proper sandbox set up took far too long. I kept thinking there should be an easier way to spin up a Linux environment without installing anything or setting up a virtual machine.

That's what led to RiceWM.

With RiceWM, you can open a full Linux desktop directly in a browser tab. You get a terminal, file manager, and the ability to run GTK applications, all powered by WebAssembly and running completely locally in your browser. The backend converted apt packages to WebAssembly format, so they run quicker.

You can use it to experiment with software, develop applications, or quickly get a Linux environment on a machine where you can't or don't want to install anything. It can even run VSCode or Docker, natively from your browser tab.

It's still a work in progress, but it's become a pretty serious project, and I thought it might be interesting to share.

You can try it here: https://env.now/

More about the project: https://ricewm.org/

Source: https://github.com/cwittenberg/ricewm

Impression (made with Higgsfield): https://www.youtube.com/watch?v=WhNrgbPdFss&t=24s

55 Upvotes

4 comments sorted by

2

u/exodusTay 12d ago

neat! you mentioned needing this for sandboxed environment. can I use this to run desktop environment on containers and such? I do have a headless setup for my homelab could I run this on the homelab and access it via from my desktop/laptop over network?

3

u/clairehugo 12d ago

thanks, appreciate the compliment! I did not implement networking capabilities beyond the browser sandbox itself (your browser runs a V8 javascript sandbox) You do give me a cool idea here to do so and allow inbound network interaction with the sandbox via the companion gateway app to do so (without it is not possible due to browser restrictions) - but so far that's not implemented yet. I do see some security risks with that. This would essentially enable anyone that can run the gateway app to essentially run any kind of app, anywhere. You can run networked apps locally and interact with it from within env.now using i.e. Bowl (the browser) Am I making sense here?

What also does already work today already is you can mount a local network folder from your host to the sandbox, and interact with that within the sandbox. So if you have a bunch of videos or files you'd like to access from within the solution, that's perfectly capable now.

4

u/nhermosilla14 12d ago

It's surprisinly fast! Nice job

2

u/Nothsa2110405 11d ago

Woah this is cool