
Sounds · Free
StackD Sounds (free)
Five soft interface sounds made with Web Audio, no audio files: tap, tick, pop, toggle on and off. Off until the user turns them on; pitch and volume per use.
Free on Gumroad: the download arrives in your inbox.
Details
- Category
- Sounds
- Plan
- Free
- Code
- React + Tailwind, TypeScript · 147 lines
- Files
- sounds.ts
- Needs
- React and Tailwind only
- Agents
- MCP server and shadcn registry
About
Five small interface sounds, made in the browser with Web Audio: no audio files, no licences, and each one can be tuned (pitch, volume) where you use it. Soft and tactile, like the StackD components.
tap · tick · pop · toggleOn · toggleOff
Install
With the shadcn CLI:
npx shadcn@latest add https://www.stackd.codes/r/stackd-sounds-free.jsonOr let your agent add it through the StackD MCP server:
claude mcp add --transport http stackd https://www.stackd.codes/mcpPrompt for your agent
Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.
Add the StackD StackD Sounds (free) component to this project. Use the StackD MCP server: call get_component with { "name": "stackd-sounds-free" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles.Use
- Copy
sounds.tsinto your project (for examplecomponents/). - Turn sounds on from a switch the user flips, and play one from a click or a key press:
import { sounds } from './components/sounds'
sounds.setEnabled(true) // from your sound switch; the choice is remembered
sounds.play('tap') // on a click
sounds.play('pop', { pitch: 1.2, volume: 0.5 }) // tuned where you use it
Sounds are off by default. Browsers only allow audio that starts from a click or a key press, so call play there.
API
sounds.play(name, { volume, pitch, force }), sounds.setEnabled(on), sounds.isEnabled(), sounds.setVolume(v), sounds.subscribe(fn), sounds.render(name) and SOUND_NAMES.
The pack
The StackD Sounds pack has all 14 (type, jelly, swoosh, send, thud, paper, success, error and notify too) plus a WAV file of each, for €7 at stackd.codes. Same file name and API: replace the file and they're there.
Licence
You can use them in personal and commercial projects. Don't resell or share them on their own.
