npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cuelume

v0.1.1

Published

Curated interaction sounds for the web — synthesized live with zero runtime dependencies.

Readme

Cuelume

Ten carefully designed interaction sounds for the web. Synthesized live with Web Audio, with no audio files and zero runtime dependencies.

Cuelume is a curated sound palette, not an audio engine. It gives buttons, links, toggles, and completed actions clear feedback without asking developers to design sounds themselves. Add an attribute, call bind(), done.

Install

npm install cuelume

Requirements

Cuelume is ESM-only. Use it through native import or an ESM-compatible bundler; CommonJS require() is not supported.

It targets modern browsers with ES modules and the Web Audio API. Server-side imports are safe, but sound playback only runs in the browser.

Quick start

Add data attributes to your markup:

<button data-cuelume-press data-cuelume-release>Save</button>
<a data-cuelume-hover="tick">Docs</a>
<button data-cuelume-toggle>Dark mode</button>

Then wire everything up once:

import { bind } from "cuelume";

bind();

| Attribute | Fires on | Default sound | | ---------------------- | -------------- | ------------- | | data-cuelume-hover | pointerenter | chime | | data-cuelume-press | pointerdown | press | | data-cuelume-release | pointerup | release | | data-cuelume-toggle | click | toggle |

Leave the attribute value empty to use the default, or set it to any sound name.

Prefer code? Play sounds imperatively:

import { play } from "cuelume";

await navigator.clipboard.writeText(text);
play("success");

Need a sound preference? Your app owns the setting; Cuelume only applies it:

import { setEnabled } from "cuelume";

setEnabled(false); // future play attempts become no-ops
setEnabled(true);  // enable playback again

Cuelume starts enabled and does not read or write storage.

Sounds

| Name | Character | Suggested use | | --------- | ---------------------------- | -------------------------------- | | chime | Soft two-note ascending bell | Default hover | | sparkle | Quick four-note twinkle | Playful accents | | droplet | Single note gliding down | Dismiss, collapse | | bloom | Warm slow swell | Reveal, expand | | whisper | Breathy quiet swell | Dense lists | | tick | Crisp instant tick | Nav and menu hover | | press | Dull muted knock | Pointer down | | release | Brighter springy tick | Pointer up | | toggle | Mechanical click-clack | Switches, tabs | | success | Warm three-note confirmation | After an action succeeds (e.g. copy to clipboard) |

API

import { play, bind, setEnabled, sounds, type SoundName } from "cuelume";
  • play(name?: SoundName) — play a sound immediately. Defaults to "chime".
  • bind(root?: ParentNode) — delegate all data-cuelume-* interactions under root (defaults to the whole document). Idempotent and handles elements added later.
  • setEnabled(enabled: boolean) — enable or disable future playback. Does not persist the preference or stop sounds already playing.
  • sounds — the list of all sound names.
  • SoundName — union type of the ten sound names.

Defaults that behave

  • Pointer-aware. Hover, press, and release require a fine mouse pointer. Toggle follows native click activation, including keyboard and touch.
  • Hover repeat guard. Hover sounds are globally throttled to one every 150ms, so sweeping across a menu stays quiet.
  • One lazy AudioContext. Shared across all sounds, created on first use.
  • Autoplay-friendly. Attempts to resume suspended audio without surfacing errors when a browser blocks it.
  • SSR-safe. Importing on the server is a no-op.
  • Safe fallback. Invalid runtime names and unavailable or blocked Web Audio make play() a silent no-op.
  • Dynamic, idempotent binding. bind() never double-attaches listeners, and later DOM additions, removals, and clones work automatically.

Frameworks

Cuelume works anywhere HTML does — plain pages, Astro, React, Vue. Call bind() once after the DOM is ready. Delegated listeners keep working when components or routes replace descendants.

React:

useEffect(() => {
  bind();
}, []);

Astro (with view transitions):

import { bind } from "cuelume";

bind();

License

MIT