On another side, compiling existing C/C++ libraries to wasm is still very painful. I struggled a lot using Emscripten to port FFmpeg to wasm - you have to compile EVERY dependency to wasm (so I ended up re-compiling libopus, libmp3lame, etc.) and the compiler warnings are often super cryptic which made the entire process a complete nightmare. The process really needs a lot of work still.
For anyone that's interested, this is the result from my endeavor: https://github.com/aeroheim/audio-file-decoder
And also check out a great general purpose FFmpeg wasm port here: https://github.com/Kagami/ffmpeg.js