webassembly.sh is the prior art in this area. It has a package manager that will install binaries automatically. It seems like a poor terminal implementation however, since it uses prompt() for user input. If you rehost it setting the headers described here [1] then the problem is fixed
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...