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

@akshatbuilds/sonix

v1.0.4

Published

Micro UX sound effects for interactive web applications. Zero dependencies, copy-paste ready.

Readme

Sonix — UI Sound Effects Library

Micro UX audio for interactive web applications. Zero dependencies. Copy-paste ready.

Live Demo · Browse Sounds · CLI


Features

  • 14 sounds — clicks, hovers, success, error, notifications, transitions, and more
  • Zero dependencies — every snippet is standalone Web Audio API code
  • Copy & paste — hit the copy button on any card to get production-ready code
  • CLInpx @akshatbuilds/sonix add pop to scaffold sounds into your project
  • Framework agnostic — works with React, Vue, Svelte, vanilla JS, anything
  • Dark mode — with cinematic circular reveal transition
  • prefers-reduced-motion — respects user accessibility preferences

Quick Start

Web Audio (no files needed)

const ctx = new AudioContext();
const osc = ctx.createOscillator();
const gain = ctx.createGain();
osc.type = 'sine';
osc.frequency.setValueAtTime(800, ctx.currentTime);
gain.gain.setValueAtTime(0.25, ctx.currentTime);
gain.gain.exponentialRampToValueAtTime(0.001, ctx.currentTime + 0.15);
osc.connect(gain).connect(ctx.destination);
osc.start();
osc.stop(ctx.currentTime + 0.15);

MP3 (for button clicks)

const audio = new Audio('/sonix/click1.mp3');
audio.volume = 0.5;
audio.play();

React Hook

import { playPop } from '@/components/sonix';

function MyButton() {
  return <button onClick={playPop}>Click</button>;
}

CLI

Add sounds to any project with the CLI:

npx @akshatbuilds/sonix list              # List all available sounds
npx @akshatbuilds/sonix add pop           # Add a single sound
npx @akshatbuilds/sonix add pop swoosh    # Add multiple sounds

Sounds are written to components/sonix/ as standalone files — no runtime dependency. MP3 assets are downloaded automatically to public/sonix/.

Available Sounds

| Name | Category | Source | Use Case | |------|----------|--------|----------| | button-click | Interaction | MP3 | Primary button presses | | button-click-secondary | Interaction | MP3 | Secondary / ghost buttons | | hover-blip | Feedback | Web Audio | Hovering over interactive elements | | hover-soft | Feedback | Web Audio | Subtle hover feedback | | success-chime | Notification | Web Audio | Form submissions, saves | | success-bell | Notification | Web Audio | Achievements, milestones | | error-buzz | Alert | Web Audio | Validation errors, failed actions | | error-beep | Alert | Web Audio | Warnings, blocked actions | | notification-ping | Alert | Web Audio | New messages, alerts | | notification-subtle | Alert | Web Audio | Background updates | | swoosh | Transition | Web Audio | Page transitions, panel slides | | pop | Interaction | Web Audio | Tooltips, popovers, reveals | | slider-tick | Interaction | Web Audio | Sliders, range inputs | | key-press | Interaction | Web Audio | Text inputs, keyboards |

Accessibility

All sounds respect prefers-reduced-motion: reduce. When the user has requested reduced motion, sounds are automatically silenced.

To manually control sound:

// Check user preference
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;

if (!prefersReducedMotion) {
  playPop();
}

Development

pnpm install
pnpm dev

Build

pnpm build

Registry

The project includes a shadcn-style registry at public/registry/. To rebuild:

node scripts/build-registry.mjs

License

MIT — see LICENSE.