Plan 11 phase 3, wasm-first variant (pixel-identical to native):
- cmd/krb-web/main.c: emscripten host running the KRB runtime + kry_sw
rasterizer; each frame blits the RGBA buffer into an ImageData via
EM_ASM. Cartridge preloaded at /app.krb, canvas mouse events fed back
through exported krb_web_mouse/krb_web_button.
- cmd/krb-web/shell.html: minimal shell wiring Module.canvas and input.
- cmd/krb-web/node-capture.js: pre-js for the KRB_WEB_ONESHOT node
build; stubs a canvas 2D context and dumps the blitted frame to stdout
so the wasm blit path is testable without a browser.
- make krb-web KRB=examples/xx.kry builds the cartridge + bundle
(needs emcc on PATH, e.g. source ~/emsdk/emsdk_env.sh).
Verified: node oneshot capture of examples/02_buttons.kry at 800x600 is
byte-identical (sha256) to the native krb-run render; page loads and
runs in a browser.