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

@buildingwithai/soundfx

v0.1.4

Published

Cross-platform terminal sound effects, shell hooks, and TUI configuration.

Readme

soundfx

This package contains only the terminal product:

  • shell hooks for powershell, pwsh, bash, and zsh
  • terminal-event to sound-effect mapping
  • a text UI for choosing event sounds
  • cross-platform audio playback adapters for Windows, macOS, and Linux

This package does not include:

  • the Electron desktop app
  • OBS desktop UI features
  • desktop packaging assets

Commands

soundfx tui
soundfx doctor
soundfx uninstall <shell>
soundfx events
soundfx sounds
soundfx assign <eventId> <soundId>
soundfx test-event <eventId>
soundfx test-sound <soundId>
soundfx install-hook <shell>
soundfx uninstall-hook <shell>
soundfx hook-status <shell>

Quick start

npm install -g @buildingwithai/soundfx
soundfx

On first launch, soundfx opens the terminal UI and, if needed, automatically connects itself to your shell profile so command-triggered sounds can work later.

After that first launch, restart your terminal once. That is the one step the app cannot fully do for you, because your current shell session is already running.

Then, if you want, you can quickly confirm audio with:

soundfx test-sound default-1

Behind the scenes, soundfx still needs one small shell hook so it knows when commands succeed, fail, or are unknown. On first launch, the app installs that hook for you automatically.

Inside the TUI:

  • type to filter sounds with smart search
  • press Ctrl+F to add or remove a favorite
  • recently previewed or assigned sounds float toward the top
  • press Esc to clear the current filter
  • press Space to play or stop the selected preview

Uninstall

If you want to stop soundfx from hooking into your terminal:

soundfx uninstall zsh

Then, if you also want to remove the package itself:

npm uninstall -g @buildingwithai/soundfx

Event meanings

  • unknown_command: you typed something your shell does not recognize
  • command_success: a command finished normally
  • command_error: a real command ran, but it finished with a failure
  • command_interrupted: you stopped a running command with Ctrl+C
  • sudo_used: the command started with sudo
  • git_commit: you ran git commit
  • npm_install: you ran an install command like npm install

unknown_command and command_error are not the same thing.

  • unknown_command means the shell could not even find a command to run
  • command_error means the command did exist and started, but it ended badly

Example:

  • h -> unknown_command
  • cat missing-file.txt -> command_error

Local development

If you cloned this repo and want to run the CLI locally on your machine:

npm install
npm link
soundfx

If you use bash, replace zsh with bash.

macOS notes

  • macOS playback uses the built-in afplay command.
  • In normal cases, macOS does not need a special privacy or security permission for this app to play sounds through your speakers.
  • On first launch, soundfx can update your shell profile automatically. After that, open a new terminal or run exec zsh once so the hook is actually loaded.
  • If test-sound works but command sounds do not, run soundfx hook-status zsh to confirm the hook is installed in the shell you are really using.
  • If your Mac is using the wrong audio output device, or the volume is muted, soundfx cannot override that. It will send audio to the same output your Mac is already using.
  • If you still do not hear audio, test your Mac audio path directly with:
afplay /System/Library/Sounds/Glass.aiff

Shells

  • Windows PowerShell: powershell
  • PowerShell 7+: pwsh
  • macOS / Linux: bash, zsh

Platform layout

  • src/core/
  • src/platform/windows/
  • src/platform/macos/
  • src/platform/linux/