Skip to content
StackD
Blink sound, the StackD component

Sounds · Free

Blink sound

The smallest “i”, for wheels and sliders. A StackD interface sound made with Web Audio, no audio file to load, plus its WAV.

Code is free. Figma comes with StackD Pro.

See it in the store ›

Details

Category
Sounds
Plan
Free
Code
TypeScript, Web Audio · 188 lines
Files
sounds.ts, stackd-blink.wav
Needs
Nothing: any web app
Agents
MCP server and shadcn registry

About

The smallest “i”, for wheels and sliders. Made in the browser with Web Audio: nothing to load, no licences to track, and you can tune its pitch and volume where you use it. Most StackD sounds are the Bot saying something tiny, a soft voice shaped into a vowel.

Free. sounds.ts holds the five free sounds (boop, blink, blob, yep, nope), so the other four come with it.

Install

With the shadcn CLI:

npx shadcn@latest add https://www.stackd.codes/r/sound-blink.json

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 Blink sound component to this project. Use the StackD MCP server: call get_component with { "name": "sound-blink" }, 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

  1. Copy sounds.ts into your project (for example components/).
  2. Turn sounds on from a switch the user flips, and play it 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('blink')                       // on a click
sounds.play('blink', { 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).

The WAV

stackd-blink.wav is the same sound as a file (48 kHz, mono), for apps, videos or tools that need audio files.

Licence

Use the sound, the code and the WAV in personal and commercial projects. Don't resell or share them on their own.