Skip to content
StackD
StackD Sounds pack, the StackD component

Sounds · €7

StackD Sounds pack

All 14 StackD interface sounds made with Web Audio (tap, pop, jelly, swoosh, send, paper, success, error, notify and more), plus WAV files. Same API as the free five.

Pay once on Gumroad: the download, plus a licence key for the registry and the MCP server.

Details

Category
Sounds
Plan
Paid, €7 once
Code
React + Tailwind, TypeScript · 182 lines
Files
sounds.ts
Needs
React and Tailwind only
Agents
MCP server and shadcn registry

About

14 small interface sounds, made in the browser with Web Audio: no audio files to load, no licences to track, and each one can be tuned (pitch, volume) where you use it. Soft and tactile, like the StackD components: taps, pops, a jelly wobble, paper, a swoosh. Never shrill.

tap · tick · type · pop · toggleOn · toggleOff · jelly · swoosh · send · thud · paper · success · error · notify

Also in this pack: a WAV file of every sound (wav/), for apps, videos or tools that need audio files.

Install

Once: add the StackD registry to components.json, with the licence key from your receipt in STACKD_LICENSE_KEY (in .env.local):

"registries": {
  "@stackd": {
    "url": "https://www.stackd.codes/r/{name}.json",
    "headers": { "X-License-Key": "${STACKD_LICENSE_KEY}" }
  }
}

With the shadcn CLI:

npx shadcn@latest add @stackd/stackd-sounds

Or let your agent add it through the StackD MCP server:

claude mcp add --transport http stackd https://www.stackd.codes/mcp

Prompt for your agent

Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.

Add the StackD StackD Sounds pack component to this project. Use the StackD MCP server: call get_component with { "name": "stackd-sounds" }, 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. It is a paid component: if the server says it needs a licence, tell me where to buy it.

Use

  1. Copy sounds.ts into your project (for example components/).
  2. 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: nobody wants a page that beeps by itself. Browsers only allow audio that starts from a click or a key press, so call play there (Safari is strict about it).

API

What it does
sounds.play(name, { volume, pitch, force })Plays a sound. volume 0 to 1, pitch around 1 (1.2 is higher). force plays it even when sounds are off (for previews).
sounds.setEnabled(on) / sounds.isEnabled()Turns sounds on or off; remembered in localStorage (stackd:sound).
sounds.setVolume(v)The master volume, 0 to 1.
sounds.subscribe(fn)Called when sounds are turned on or off (to update your switch).
sounds.render(name)Renders a sound offline to an AudioBuffer (to draw its waveform or save it).
SOUND_NAMESAll the names.

Every sound is levelled to sit with the others, and a soft limiter on the master keeps them from clipping.

Coming from the free sounds

The free version (tap, tick, pop, toggleOn, toggleOff) has the same file name and the same API: replace the file and the other nine are there. Nothing else changes.

Licence

You can use the sounds and the WAV files in personal and commercial projects. Don't resell or share the pack on its own.