WASM generally works with browser APIs through JavaScript glue. A module imports host functions, then JS calls Canvas, WebGL, WebGPU, DOM, Audio, Camera, File, Worker, or Service Worker APIs on its behalf.
- Canvas and WebGL are common Emscripten targets.
- WebGPU can be driven through JS bindings.
- WASI is a non-browser system interface and requires a compatible host or polyfill.
- Future proposals may improve direct integration, but portable code should still design explicit host bindings.