Documentation
¶
Overview ¶
Command wasm is the WASM entrypoint for the sff library: thin syscall/js glue exposing this package's Load and ResolveSpritePixels to a browser (or any JS host) as global functions, so a consumer (stage, lifebar apps) can load and decode MUGEN/Ikemen .sff sprite sheets without a Go toolchain of its own — independent of character's own WASM build, which consumes this same package internally but publishes its own artifact.
It carries no logic beyond argument conversion, calling into the root sff package, and marshaling results to JS — all real behavior lives in that package, which is unit-tested independently of this file (see .vibe/decisions/003-wasm-entrypoint-api-shape-and-release-smoke-gate.md, which mirrors the shape character's own cmd/wasm already established). This file's own behavior is instead verified by smoke.mjs, a Node.js script that loads the built module the way a real JS consumer would — syscall/js code cannot run under the plain `go test` toolchain.