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

git-beep-beep

v1.0.2

Published

Hear your commits — plays sound effects on git push and commit events

Readme

git-beep-beep

Hear your commits. Sound effects for your Git workflow.

git-beep-beep (CLI: beep-beep) plays configurable sound effects when you commit and push to Git. No daemons, no background services — just plain shell hooks that fire and forget.

Features

  • Plays sounds on git commit and git push
  • Works on macOS, Linux, and Windows
  • Zero setup — npx git-beep-beep init in any repo
  • Bring your own sounds or use the built-in defaults
  • Per-repo configuration via .beepbeeprc.json
  • Non-blocking hooks — a broken sound never fails your Git command

Quick start

# Initialize configuration (one-time)
npx git-beep-beep init

# Install hooks in your repository
beep-beep hook install

# Make a commit and hear the sound
git commit --allow-empty -m "hello"

Install

One-time setup

npx git-beep-beep init

This creates ~/.beepbeep.json with default sound mappings shared across all your repositories.

Per-repo setup

cd my-project
beep-beep hook install

Hooks are plain POSIX shell scripts placed in .git/hooks/. They run beep-beep fire <event> in the background so your Git commands are never blocked.

Commands

After global install (npm install -g git-beep-beep), use beep-beep <command>. Via npx, use npx git-beep-beep <command>.

| Command | Description | |---|---| | init | Interactive configuration wizard | | set <event> <file-or-alias> | Assign a sound to an event | | add <alias> <file> | Register a custom alias for a sound file | | remove <alias> | Remove a custom alias | | list | Show all configured sounds and aliases | | test [event] | Play a sound without triggering a real Git event | | hook install | Install hooks into .git/hooks/ | | hook uninstall | Remove hooks and restore backups | | hook status | Check which hooks are installed |

Events

| Event | Hook | When it fires | |---|---|---| | commit | post-commit | After a successful local commit | | push | post-push | After a successful push | | success | pre-push (exit 0) | Before push, when it's expected to succeed | | fail | pre-push (exit non-zero) | Before push, when it's expected to fail |

Configuration

Global config

~/.beepbeep.json is shared across all your repositories.

Per-repo override

Add a .beepbeeprc.json file in your repository root to override global settings.

Merge order (later wins): built-in defaults → ~/.beepbeep.json.beepbeeprc.json

{
  "sounds": {
    "commit": "default",
    "push": "~/sounds/tada.mp3",
    "success": "success",
    "fail": "error"
  },
  "aliases": {
    "tada": "~/sounds/tada.mp3",
    "error": "~/sounds/fail-horn.wav"
  },
  "volume": 0.8
}
  • sounds — Maps events to sound file paths or alias names
  • aliases — Shortcuts for commonly used sound files
  • volume — Float between 0 and 1

Built-in sounds

| File | Description | |---|---| | default.wav | Soft two-tone chime — used for commits and generic events | | success.wav | Ascending two-tone notification — used for push success | | error.wav | Descending wah-wah — used for push failures |

Each file is approximately 34 KB. You can override any event with your own sounds:

beep-beep set push ~/Music/custom-fanfare.mp3
beep-beep add victory ~/Music/ta-da.wav
beep-beep set success victory

Audio backends

git-beep-beep auto-detects your platform and picks the best available player:

  • macOSafplay (supports volume control)
  • Linux — Tries paplay, aplay, mpg123, ffplay in order
  • Windows — PowerShell MediaPlayer COM object

If no audio backend is found, it logs a warning and exits cleanly — never throws.

How it works

  1. beep-beep hook install writes shell scripts to .git/hooks/
  2. On git commit or git push, Git runs the hook
  3. The hook spawns beep-beep fire <event> in the background
  4. beep-beep looks up the configured sound, resolves aliases, and plays the file
  5. Hook output goes to .git/hooks/.beep-beep.log — your terminal stays clean

Development

git clone https://github.com/rachit224agarwal/git-beep-beep.git
cd git-beep-beep
npm install

npm test
npm run lint
npm run format:check

npm link  # for local testing

Requirements

  • Node.js >= 18
  • npm

Release

npm run release -- --release-as patch  # or minor / major
git push --follow-tags
npm publish --access public

License

MIT