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

akustik

v0.5.0

Published

Synthesized UI sound effects with themes. No audio files, no dependencies.

Readme

akustik

Synthesized UI sound effects with themes. Every sound is generated live with the Web Audio API: no audio files, no dependencies.

npm install akustik
import { play, setVolume } from "akustik";

play("success");
play("toggle-on", "wood");
setVolume(0.5);

// Rings repeat until stopped.
const stop = play("ring");
stop(); // when the call is answered or declined

Sounds

All sounds share one key (C) and one sub-bass layer, so they belong together. Rising, major notes read as positive; falling, minor or muffled ones read as negative. Most sounds come in mirrored pairs.

| Group | Sounds | | --- | --- | | Interaction | tap, tick, select / deselect, toggle-on / toggle-off, swipe-forward / swipe-back, open / close, grab / drop, disabled | | Actions | copy, add / remove, delete, undo / redo, send / receive | | Outcomes | success / failure, complete, warning, error | | Presence | join / leave, notification | | Rings | ring, ring-alt |

Where two sounds look alike, pick by what happened:

  • select picks an item; toggle-on switches a setting.
  • remove takes an item out; delete destroys it for good.
  • receive is a message in the open conversation; notification asks for attention.
  • success means an action worked; complete means a whole task or flow is finished.
  • failure means the user's action didn't work; error means the system broke.

The rings are for an incoming call. Each loops a four-bar phrase until stopped: play returns a function that stops the sound, fading it out rather than cutting it. One-shot sounds return one too, for cutting them short.

There is deliberately no hover sound. It fires constantly and quickly becomes noise.

Themes

A theme changes the instrument, never the meaning, so every sound works in every theme.

  • glass (default): a clear sine with a soft harmonic.
  • string: a plucked tone whose brightness closes as it decays.
  • wood: a dry, marimba-like knock.

Volume

setVolume(level) sets the master volume from 0 to 1. It defaults to 0.25, as full scale is loud for UI.

Echo

Sounds are dry by default. setEcho(true) adds a short echo to the longer sounds: success, failure, complete, join, leave and notification, lightest on notification as it plays most often. wood stays dry.

Notes

  • Safe to import during server rendering: nothing touches the browser until the first sound or gesture.
  • Browsers only start audio after a user gesture. akustik wakes audio on the first tap, click or key press, so sounds played later, such as after a network response, still play on iOS.

License

MIT