Documentation
¶
Overview ¶
Command headroom-wasm is the analyzer compiled for a browser.
It exists so somebody can try the tool on their own plan without installing anything, and so the thing they try is the tool rather than a demonstration of it: same parser, same graph, same rules, same catalog, same renderer.
What it is not is a service. There is no fetch here, no upload, no identifier and no storage. The plan is a string that arrives from a text box in the same tab, is decoded inside this module, and is gone when the page is. Nothing in this binary can open a socket, which is a property of the file and not a promise: the update check, the uploader and os/exec are all absent from the import graph, and the build tag above is the only way in.
The whole file is a binding. Every decision lives in internal/webrun, which is ordinary Go and is covered by the suite that runs on this machine, because a package behind a js/wasm build tag cannot be.