Looks like there's a WebAssembly version of Audacity 2.x named 'Wavacity'. You can check it out here: https://wavacity.com/
The dev behind it, ahilss on Github, appears to have forked wxWidgets and PortAudio to add WebASM support.
In that case, we have a fun project idea: porting these changes to newer versions of wxWidgets, PortAudio, and Tenacity.