Skip to content
StackD
Fly sound, the StackD component

Sounds · StackD Pro

Fly sound

“Oo-ee” going up, for a message sent. A StackD interface sound made with Web Audio, no audio file to load, plus its WAV.

Get StackD Pro · €59/year

Code and Figma for every component, new ones almost every day.

See it in the store ›

Details

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

About

“Oo-ee” going up, for a message sent. 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.

Part of StackD Pro. sounds.ts holds every StackD sound, so the others come with it.

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/sound-fly

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 Fly sound component to this project. Use the StackD MCP server: call get_component with { "name": "sound-fly" }, 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 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('fly')                       // on a click
sounds.play('fly', { 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-fly.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.