Howler.js
JavaScriptAudio & sound
Simple audio playback library — sound effects, music, spatial audio.
What it does
Howler.js makes it easy to play, loop, fade, and spatialize audio in the browser. It handles all the browser quirks so you don't have to.
When to use it
Use this when you need to play sound effects, background music, or positional audio in a web app.
Real example
You're building a portfolio with hover sound effects and background music that plays on click. Prompt: 'Use Howler.js to preload a hover.mp3 and a background.mp3. Play hover.mp3 on mouseenter of .nav-link elements. Add a mute button that toggles the background music loop.'
Good to know
Not for synthesis — it plays audio files. Use Tone.js if you want to generate sounds.
Alternatives
Install
Use cases
Language
JavaScriptCategory
Audio & sound