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

brainrot-errors

v1.0.4

Published

Plays a sound whenever a terminal command outputs an error

Readme

brainrot-errors

Plays a sound whenever a terminal command outputs an error. Because why stare at your terminal when you can HEAR your failures? 🎵

Installation

npm install -g brainrot-errors

Or use without installing:

npx brainrot-errors <command>

Quick Start

# Wrap any command - plays sound on error
brainrot tsc --watch
brainrot next dev
brainrot npm run build

# Show help
brainrot --help

CLI Commands

| Command | Description | |---------|-------------| | brainrot <command> | Run any command and watch for errors | | brainrot --sounds | List available sound files | | brainrot --set-sound <filename> | Set which sound plays on error | | brainrot --config | Show config directory path | | brainrot --uninstall | Show clean uninstall instructions | | brainrot --help | Show help message |

Examples

TypeScript Watch Mode

brainrot tsc --watch
# Plays sound when TypeScript errors occur

Next.js Development

brainrot next dev
# Plays sound on build errors

npm scripts

brainrot npm run build
brainrot npm run dev

Python

brainrot python main.py
# Plays sound on Python exceptions/tracebacks

Rust

brainrot cargo build
# Plays sound on Rust compile errors

Sound Files

Where to put sounds

  1. User custom sounds (recommended):

    ~/.config/brainrot-errors/sounds/
  2. Bundled sounds (in package):

    ./sounds/

Supported formats

  • .mp3
  • .wav

Sound selection modes

  • random - plays a random sound from available files (default)
  • Specific filename - plays that exact file
# Set to random (default)
brainrot --set-sound random

# Set to specific sound
brainrot --set-sound explosion.wav

Adding sounds

# Create sounds directory
mkdir -p ~/.config/brainrot-errors/sounds

# Copy your sound files there
cp mysound.mp3 ~/.config/brainrot-errors/sounds/

# List available sounds
brainrot --sounds

Error Detection

The package detects errors from:

  • TypeScript: error TS2345:, error TS2304:, etc.
  • Next.js/Vite/webpack: Build failures, compilation errors
  • Node.js: TypeError, ReferenceError, SyntaxError, etc.
  • Python: Tracebacks, exceptions
  • Rust: Compile errors
  • Go: Compile errors
  • General: "error:", "failed", "build failed", "cannot find module"

Ignored patterns (false positives)

  • "0 errors"
  • "compiled successfully"
  • "no errors"
  • "errorHandler" (variable names)

Configuration

Config is stored at: ~/.config/brainrot-errors/config.json

{
  "sound": "random",
  "volume": 1
}

Volume control

Edit the config file directly to adjust volume (0.0 to 1.0):

{
  "sound": "random",
  "volume": 0.5
}

Clean Uninstall

# Remove the global package
npm uninstall -g brainrot-errors

# Remove config and custom sounds
rm -rf ~/.config/brainrot-errors

That's it! Nothing else is left behind.

How it works

  1. Wraps your command and runs it
  2. Watches both stdout and stderr for error patterns
  3. Plays a sound file when an error is detected
  4. Falls back to terminal bell (\x07) if no sound file found

License

MIT