About
Open audio layer for JavaScript. Fast, portable, modular DSP.
Performance first
Plays while it decodes. Every figure is timed against FFmpeg and SoX, in the open.
Modular
300+ packages, one job each, composable: use one alone, or all of them through audio.
Tested & verified
web-audio-api passes 100% of its W3C tests; audio is checked against 14 other tools, feature by feature.
Open & trusted
MIT licensed. Source, tests and timings are public; 1,575,067 npm downloads of audio-type, 24 Oct – 22 Nov 2026.
No Web Audio, no FFmpeg
Codecs and processing are its own, in JavaScript and WebAssembly. None of it needs Web Audio, none of it FFmpeg.
Roadmap
Shipped
Modules
The core units, one job each: codecs, filters, analysis, synthesis. Web Audio outside the browser.
Shipped
Tools
A CLI, an editor, an MCP server, and 24 tools in the browser.
Now
Apps
Audio for Mac. A demo on every module's page. A VS Code plugin.
Next
Plugins
Processors to try in the browser and download. A VST creator: JavaScript compiled to plugins, into the DAWs. Native speed with JZ.
Later
On top
audio-lab, nodes to connect. pitch, a prosody editor. An enhancer. mel, a music language.
Contribute
The source is on GitHub, under audiojs: report what breaks, send a fix, add a codec or an edit.
github.com/audiojs
Sponsor
Maintenance is funded by sponsorship: compatibility fixes, issue triage, releases, tests and documentation (funding details).
github.com/sponsors/audiojs
In the wild
Built on audiojs by others. Each is credited to its maker, and comes off this list at its maker's request.
audio/ui
Cécé Lucien Loua, Ouest Labs
Audio UI components for the web: knobs, faders, meters, waveforms, timelines, piano rolls. Its engine runs @audio dynamics, filters, reverbs and effects in an AudioWorklet.
FAQ
How is it different from the Web Audio API?
Audio.js is platform independent stack with own DSP.
See web-audio-api
Does it need ffmpeg or native addons?
No FFmpeg: codecs and DSP are JavaScript and WebAssembly. In Node, the speaker and the microphone use one small addon, prebuilt for macOS, Linux and Windows. Nothing compiles at install.
Is it as fast as FFmpeg or SoX?
Not as fast as FFmpeg yet: FFmpeg wins four of the six timed against it. Ahead of SoX in four of five.
| 10-minute file | audio | FFmpeg | SoX |
|---|---|---|---|
| WAV decode | 246 ms | 73 ms | 50 ms |
| MP3 decode | 306 ms | 484 ms | – |
| LUFS | 229 ms | 336 ms | – |
| Peak normalize | 405 ms | – | 555 ms |
| Resample to 48 kHz | 450 ms | 292 ms | 1.04 s |
| Time stretch 0.8× | 3.09 s | 665 ms | 5.82 s |
| Pitch shift +2 st | 2.83 s | 821 ms | 6.02 s |
How it was measured, 2026-11. Shorter is faster.
How does it compare to Essentia, librosa or Tone.js?
| audio | edit, analyze, play, record |
|---|---|
| pydub | high-level edit: slice, fade, normalize |
| librosa | music analysis |
| aubio | pitch, onset, beat, MFCC |
| Essentia | music analysis, 240+ algorithms |
| Pedalboard | effects, VST hosting |
| Tone.js, Howler | play in a page |
| SoX | command-line batch DSP |
| FFmpeg | command-line multimedia |
| Audacity | desktop editor |
See comparison
How big is it?
| In a page | 155.5 KB gzipped; codecs load on first use |
|---|---|
| One package | @audio/decode-wav: 24 KB |
| All of it | npm i audio: 16.6 MB, the 24 decoders and 14 encoders in it, nothing compiled |
| For scale | FFmpeg in WebAssembly, @ffmpeg/core: 64.7 MB |
Sizes unpacked, as npm states them, 26 Nov 2026.
What is the licence?
| MIT | audio and most packages |
|---|---|
| GPL-2.0 | the AAC, AC-3 and DTS decoders |
| LGPL | a few others, MP3 among them |
A decoder keeps the licence of the code it is built from. Each package’s page states its own.