Cuelume
by Daniel Belyi
Fourteen interaction sound cues for web interfaces, synthesized live with Web Audio and bound to elements through data attributes.
Sound effects Code libraryOpen source

1. Price: github.com/danielwh2/cuelume
Free and open source under the MIT license.
github.com/danielwh2/cuelumeNo quote yet: price is read from the official pages.
2. Commercial use: LICENSE on GitHub
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”
MIT allows use in paid products.
LICENSE on GitHub3. Credit the author: LICENSE on GitHub
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.”
No credit on screen. Keep the license notice inside the code you ship.
LICENSE on GitHub4. Agent access: github.com/danielwh2/cuelume
An agent can install it by itself with npm install cuelume. No key or account is needed.
github.com/danielwh2/cuelumeLicense checked Oct 10, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error
Cuelume: small click and success sounds for websites
Cuelume is a free code library that gives a website or web app fourteen short interface sounds. Examples are a tap for buttons, a soft chord for success and a muted note for errors. The sounds are made in the browser as they play, so there are no sound files to host. You mark buttons and fields in the page, call one function, and they start to sound.
Where you can use it
Clicks on buttons and menus
Buttons, dropdowns, switches and menus give a quiet sound when used. You add a marker word to each one and call one function once.
Saved, failed or needs a look
When a save, payment or upload ends, play one sound that says how it went. Success, warning and error each sound different.
Sounds for an AI chat or agent
Play a soft sound when the AI reply is finished, a bell when the AI waits for your approval, and a success sound when its task is done.
A sound switch in settings
Add your own Sound on or off switch and a volume setting. The library does not remember the choice, so your app saves it.
A playful or a hardware feel
Switch all sounds to another material, for example a bubbly set for a playful product or a crisp mechanical set. The meaning of each sound stays the same.
A number that counts up
When a total or a counter rolls to a new value, play one rising sound that lasts as long as the animation.
Cuelume popularity
Downloads from api.npmjs.org, stars from GitHub, checked Nov 26, 2026. How the Gid Score is calculated
How to start
Tell your AI assistant
“Install cuelume at exactly version 0.2.8, add data-cuelume-tap to the main buttons, call bind() once on the client, play "success" or "error" when a save finishes, and add a Sound on/off switch in settings that calls setEnabled and unlock.”
Or install it yourself. It works only with modern import statements, not with require().
npm install cuelume
Show codeStep 1 or Step 2
Mark buttons and fields with data-cuelume attributes, then call bind() once when the page is ready.
import { bind } from "cuelume";
bind();
In React, call bind() inside an effect; it returns its own cleanup.
useEffect(() => bind(), []);
Mistakes to avoid
const { play } = require("cuelume")import { play } from "cuelume" (native import or an ESM bundler)The package ships ES modules only.
Bursts of the same sound wear it out.
Old 0.2-era names only map to new cues until 1.0.
Browsers block audio before the first interaction; unlock() resolves false then.
The library never reads or writes storage.
License
MIT License. Free to use in personal and paid products, and you may change and share the code. When you ship copies of the code, keep its copyright and license notice with them.
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.”
“Synthesized live with Web Audio, with no audio files and zero runtime dependencies.”
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” LICENSE on GitHub
AllowedWith conditionsNot allowedNot stated or not checked yet
Is Cuelume free for commercial use? The full answer Not legal advice. Check the license page before you ship.
For your agent
License rules tell your agent what it may do with Cuelume. Paste them into your prompt or AGENTS.md.
- Cuelume (Sound effects). Fourteen interaction sound cues for web interfaces, synthesized live with Web Audio and bound to elements through data attributes. Price: free; commercial use OK; no credit needed.
Connect: npm cuelume.
Get files: npm install cuelume; import as an ES module and call bind() once in the browser. Sounds are synthesized live with Web Audio, so there are no audio files.
Not allowed: Keep the copyright and permission notice in all copies or substantial portions
Not allowed: ESM only; CommonJS require() is not supported
Not allowed: Never play a cue per streamed token, per tool call inside an agent run, or on hover; play one cue when the run ends
Rule: Keep the MIT license and copyright notice with any copies of the software you ship.
Rule: Install from npm (npm install cuelume) and import it as an ES module; CommonJS require() is not supported.
Rule: Call bind() once in the browser; playback only runs in the browser, though server-side imports are safe.
Rule: Do not play a cue per streamed token, per tool call, or on hover; play one cue when a run ends.
License: https://github.com/danielwh2/cuelume/blob/HEAD/LICENSE (checked 2026-10-10; details: https://agentgid.com/assets/cuelume/)
Agent installs a package or loads it from a CDN.
npm install cuelumeInterface sounds: Cuelume (MIT License)Alternatives
Cuelume This page
Pick UISFX when you want ready recorded sound files in many packs (936 effects as MP3 and Ogg) instead of sounds made in code.
Pick ZzFX for tiny game sound effects where you shape each sound yourself with numbers in one call.
Pick React Sounds when you build in React and want a large library of ready sound effects with hooks.
Open-source JavaScript library that synthesizes UI sound effects at runtime with the Web Audio API, with no audio files.
Retro game sound effects generator (a JavaScript port of sfxr) with a web app and an npm library to generate, play and export 8-bit style sounds as WAV.
Questions
Do I need to host sound files?
No. Every sound is made in the browser as it plays, so there are no audio files.
Can I use it in a paid product?
Yes. It is under the MIT license; keep the license notice with copies of the code.
Why is there no sound when the page opens?
Browsers block sound until the visitor interacts with the page. Call unlock() in the click that turns sound on.
Does it remember if the user turned sound off?
No. Your app keeps that setting and passes it to setEnabled().
Can I use require() to load it?
No. It only works with import statements or a bundler that supports them.