logoaudx
DocsShowcaseStar on GitHub (0 stars)0

Give your UI
Some Personality

Open-source UI sound effects for React and the web. Handcrafted interaction sounds that add feedback, character, and delight, installed as code you own.

npx @litlab/audx add npx @litlab/audx add
Hear it in real components →Read the docs →
⌘ + K
New Theme
Input (9)Selection (6)Navigation (8)Editing (7)Feedback (6)Notification (4)Status (3)+ Upcoming
click31ms
tap17ms
press52ms
release32ms
hover20ms
focus80ms
blur60ms
type12ms
tick6ms
toggle51ms
enable127ms
disable117ms
select62ms
deselect77ms
tab31ms
open132ms
close104ms
expand140ms
collapse106ms
back63ms
forward63ms
scroll11ms
slide260ms
copy96ms
paste72ms
undo85ms
clear164ms
delete122ms
drag80ms
drop82ms
success319ms
complete581ms
error313ms
warning233ms
deny137ms
info223ms
notify552ms
send94ms
receive168ms
pop41ms
loading420ms
lock100ms
unlock100ms

Frequently asked questions

Everything you need to know about adding UI sound effects to your web app with audx.

What is audx?

audx is an open-source (MIT) library of UI sound effects for React, Next.js and any web app. It ships 43 semantic interaction sounds such as click, toggle, success, error and notify in four themes (minimal, playful, mechanical, retro). A CLI copies each sound into your project as a few lines of TypeScript you own, much like shadcn/ui does for components.

How do I add sound effects to a React or Next.js app?

Run npx @litlab/audx init to pick a theme and a starter set of sounds. They are generated into src/sounds/, so you can import { click } from "@/sounds" and call click() in any event handler. In React, wrap the call with useSound(click) from @litlab/audx/react to respect a global mute, volume and the user's reduced-motion preference.

Does audx use MP3 or WAV audio files?

No. Every audx sound is a few hundred bytes of JSON synthesized at runtime with the Web Audio API, so there are no audio files to host, preload or cache. If you do need a file, renderToWav() renders any sound offline to a WAV blob.

Which UI sounds are included?

Input (click, tap, press, release, hover, focus, blur, type, tick), selection (toggle, enable, disable, select, deselect, tab), navigation (open, close, expand, collapse, back, forward, scroll, slide), editing (copy, paste, undo, clear, delete, drag, drop), feedback (success, complete, error, warning, deny, info), notification (notify, send, receive, pop) and status (loading, lock, unlock).

Can I change every sound in my app at once?

Yes. Every first-party theme implements the same semantic names, so npx @litlab/audx theme playful regenerates every installed sound in the new style without touching your code. You can also start a custom brand theme with npx @litlab/audx create brand --from mechanical.

Does audx work without React?

Yes. The core package is framework-agnostic: each generated sound is a plain function you can call from Vue, Svelte, Solid, Angular or vanilla JavaScript. React bindings (SoundProvider, useSound, usePatch) live in the separate @litlab/audx/react entry point.

How is audx different from use-sound or UI sound packs?

use-sound and similar hooks play audio files you supply, and most UI sound packs ship hundreds of MP3 or OGG files. audx instead gives you a named, themeable set of synthesized sounds as source code: nothing to download at runtime, consistent loudness across sounds, and one command to re-skin the whole app.

Is audx free for commercial use?

Yes. audx and all built-in themes are MIT licensed and free for personal and commercial projects.

Can AI coding agents design new sounds with audx?

Yes. audx publishes a create-audio agent skill that lets coding agents such as Claude Code generate a new audx sound definition from a text prompt or a reference audio file. Install it with npx skills add ommgh/audx.