DrSnuggles/chiptune: chiptune3.js - ES6 module with AudioWorklet
https://github.com/DrSnuggles/chiptune?tab=readme-ov-file
This is a javascript library that can play module music files. It is based on the libopenmpt C/C++ library. To translate libopenmpt into Javascript emscripten was used.
Modernized ES6 module version with libopenmpt AudioWorklet backend
jterrace/js.js - GitHub
https://github.com/jterrace/js.js
Instead of trying to create an interpreter from scratch, SpiderMonkey is compiled into LLVM and then emscripten translates the output into JavaScript.