https://github.com/mitchellh/zig-js
This makes it relatively easy to interact with a JS host environment from a WASM-compiled binary. I'm still going to flesh this out more and add function calls and so on very soon but this is up. This is loosely based on Go's syscall/js.