GitHub - audiojs/web-audio-api: Portable implementation of Web audio API
A portable, pure-JavaScript implementation of the Web Audio API that runs in Node.js with 100% WPT conformance and no native dependencies. It supports real-time speaker output, offline rendering via OfflineAudioContext, CLI audio scripting, server-side audio generation, and compatibility with Tone.js. Node-specific extensions include piping PCM to stdout, custom AudioWorklet registration via callbacks, and microphone capture via CustomMediaStreamTrack. The library includes a polyfill mode that installs Web Audio globals, enabling browser audio code to run in Node without modification. Architecture is pull-based with 128-sample render quanta per spec, with WASM kernels planned for heavier DSP workloads.