Filesystem: Mount a read-only filesystem, configure host filesystem preopen remappings or pass-through.
Similar to this use case https://github.com/bjorn3/browser_wasi_shim?tab=readme-ov-file#usage
The stdin, stdout, stderr are handled by the Xterm terminal library, while the files are stored as Uint8Array in a tree structure in-memory.
The virtual filesystem should allow both reads and write and be flexible enough to allow any backend (in-memory, Xterm, network requests, etc.)