Hello Daniel,
You’ll be very happy to know that … it’s been done already !
We’re in the final stages of releasing inkjs with the parser+compiler : GitHub - y-lohse/inkjs at compiler (there are some last issues to iron), and you are more than welcome to contribute a PR to speed up the process a little.
I’m also writing a web adaptation of inky (but this is far from done) : GitHub - smwhr/inkyweb (with a way to try it here : Inky Web but beware) : it’s not production ready and may break anytime but I’m already using it on a regular basis to test some ink on the go. Here, feel free to PR also if you want to contribute !