TabFS icon indicating copy to clipboard operation
TabFS copied to clipboard

Idea: Use in-browser WebAssembly to emulate a unix system to use TabFS

Open nkcmr opened this issue 2 years ago • 2 comments

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/

nkcmr avatar Feb 26 '23 13:02 nkcmr

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).

bjesus avatar Feb 26 '23 21:02 bjesus

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.

osnr avatar Feb 28 '23 07:02 osnr