Compiling kakoune for Wasm and the browser?

Has anyone tried compiling to the browser with Wasm? I imagine it wouldn’t be totally straightforward as you would need first to emulate the terminal interfaces in a canvas, but surely someone has done that as a library that can be pulled in. Or perhaps build a canvas interface on top of the json interface.

It could be pretty neat to have a “try it in your browser” experience on the website to get people hooked onto the multiple cursors experience, then they can install to get the whole integration with the shell environment and the amazing plugins that brings.

elvish has a live demo on their website (although the certificate is expired…). It uses gotty and docker for running elvish under the hood, so maybe it’s not too difficult to setup. It’s an interesting idea

1 Like

kakoune needs file system with unix sockets to work