we sort of have this already, Pyodide supports compiled wheels (including things like numpy) and can even dynamically load them (with a really janky dynamic linker/loader), but as it is, you'd have to run the whole thing in a JS environment first
which is an improvement over a docker container in real terms but still feels a little extra to ship with an application even for my taste