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

@arach/peal

v0.3.3

Published

Curated UI sounds for web apps — CLI copies WAVs into your project and generates a Howler.js player. Web app: https://peal.app

Downloads

1,720

Readme

Peal

Curated UI sounds for web apps — clicks, success chimes, errors, and the rest — copied into your repo and played through a small generated helper.

What you get

  1. CLI — pick sounds from the built-in set and copy .wav files into your project
  2. Generated peal.js — a tiny Howler-based player that knows where those files live
  3. Library (Peal class) — optional lower-level API if you want to wire up your own paths

No sound hosting, no accounts. Files sit in your repo; you call peal.click() when something happens in the UI.

Quick start

npm install @peal-sounds/peal

peal add \
  click \
  success \
  error

That writes something like:

your-project/
├── peal.js          # generated — import this in your app
└── peal/
    ├── click.wav
    ├── success.wav
    └── error.wav

Then in your app:

import { peal } from './peal.js'

button.addEventListener('click', () => {
  peal.click()
})

async function save() {
  try {
    await api.save()
    peal.success()
  } catch {
    peal.error()
  }
}

./peal.js is created by the CLI in your project root. You are not importing the npm package for playback — only the generated helper (which wraps Howler and points at ./peal/*.wav).

Prefer a one-off without installing?

npx @peal-sounds/peal add click

Also published as @arach/peal (same package, older namespace).

Requires Node.js 20+.

Install

npm install @peal-sounds/peal
# pnpm add @peal-sounds/peal
# yarn add @peal-sounds/peal

The peal binary is on your PATH after install.

Available sounds

| Group | Names | | --- | --- | | UI feedback | success, error, notification, click, tap | | Transitions | transition, swoosh | | Loading | loading, complete | | Alerts | alert, warning | | Messages | message, mention | | Interactive | hover, select, toggle | | System | startup, shutdown, unlock |

19 sounds total. Run peal list for the full list in the terminal.

CLI

peal add                         # interactive picker
peal add click                   # one sound
peal add \                       # several sounds
  click \
  success \
  error
peal add --dir ./sounds          # custom folder for WAV files
peal add --typescript            # generate peal.ts instead of peal.js

peal list                   # show available sounds
peal play click             # preview a sound
peal demo                   # play through the set
peal remove click           # remove from your project

Using the library directly

If you already have audio files and do not need the generated helper:

import { Peal } from '@peal-sounds/peal'

const audio = new Peal()
audio.load('click', '/sounds/click.wav')
audio.play('click', { volume: 0.5, loop: false })
audio.volume(0.8)  // global volume (0–1)
audio.mute(true)

The generated peal.js is the usual path for CLI-added sounds. The Peal class is for custom loading and paths.

Optional TTS (OPENAI_API_KEY or GROQ_API_KEY):

const audio = new Peal({ openaiApiKey: process.env.OPENAI_API_KEY })
await audio.speak('Saved successfully')

API (generated helper)

  • peal.play(name, options?) — play by name; options: volume (0–1), loop
  • peal.click(), peal.success(), … — shortcuts for sounds you added (no options)
  • peal.stop(name?), peal.pause(name?), peal.resume(name?)
  • peal.setVolume(0.5), peal.mute(true)
peal.play('success', { volume: 0.5, loop: false })
// not: peal.success({ volume: 0.5 }) — shortcuts take no arguments

TypeScript

peal add --typescript
import { peal } from './peal'

peal.success()
peal.play('success', { volume: 0.8 })

Library types:

import { Peal, type PealOptions } from '@peal-sounds/peal'

Web app

The npm package is the CLI + library. Peal also runs in the browser — browse presets, generate sounds, or design in the studio — then copy what you need into a project with peal add.

Open the app · GitHub Pages mirror · GitHub

Links

MIT — see LICENSE