TabFS
TabFS copied to clipboard
Idea: Use in-browser WebAssembly to emulate a unix system to use TabFS
Things like Browsix (https://browsix.org/) let the browser itself run a very realistic shell. Maybe this could run that shell and attach the TabFS to it for easy-of-use instead of actually modifying and installing on the host.
Other examples:
- https://rreverser.com/webassembly-shell-with-a-real-filesystem-access-in-a-browser/
- https://webassembly.sh/
How would this work then? I mean, cool, we'll have filesystem emulated in the browser tab, but without a host application running a FUSE filesystem, this "filesystem" can't be used by anything else. The Filesystem Web API doesn't allow a webpage to mount a filesystem, just to access a filesystem, and Web Assembly doesn't change that (or any other Web API really).
You could port some subset of Unix/shell utilities into the browser and have them control the browser from inside the browser (the extension could talk to the shell-page over a websocket or something). Kind of interesting, although a bit of a tangent from this project.