Support running wasm backend TH & ghci in browsers
Currently, wasm backend TH & ghci is run in a nodejs process. It would be nice if we have a way to run TH & ghci directly in browsers:
- Host iserv manages a remote browser session via a library like `playwright` or `puppeteer`, without needing users to import these libraries manually via JSFFI
- Only minimum config is needed to specify browser launch/attach flags
- The wasm dynamic linker runs in the browser main thread and communicates with host iserv
- JSFFI in user's Haskell code accesses the browser's environment, not nodejs one
This should significantly improve developer experience of doing frontend development using the wasm backend, once the hot loading and debugging functionalities of ghci bytecode work in browsers.
issue