An example demonstrating Zig interacting with a canvas via JS. It is a port of one of the official mozilla examples.
https://developer.mozilla.org/en-US/docs/WebAssembly
make
Serve the current directory with python http.server
module:
make serve
And open index.html
in your browser.