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
Compile with zig build-exe -target wasm32-freestanding --release-small main.zig