@aicronic/terminal-buzz
v1.0.3
Published
CLI tool that plays nostalgic game sounds when commands finish - Make your terminal delightful again ๐ฎ
Downloads
292
Maintainers
Readme
๐ฎ Terminal Buzz
Make your terminal delightful again!
A fun CLI tool that plays nostalgic game sounds when your terminal commands finish. Turn boring command-line tasks into a gaming experience!
โจ Features
- ๐ Nostalgic Game Sounds - Success and error sounds from your favorite retro games
- ๐ Desktop Notifications - Get notified when long-running commands complete
- ๐จ Multiple Themes - Mario, Zelda, Pokemon, Sonic, and Retro arcade sounds
- โ๏ธ Configurable - Set your default theme and preferences
- ๐ฒ Random Mode - Surprise yourself with a different theme each time
- ๐คซ Silent Mode - Notifications only, no sound
- ๐ฏ Real-time Output - See command output as it happens
- ๐ก๏ธ Graceful Interruption - Ctrl+C works as expected
๐ฆ Installation
Global Installation (Recommended)
npm install -g @aicronic/terminal-buzzLocal Installation
npm install @aicronic/terminal-buzz๐ Quick Start
# Run a command with Mario theme
terminal-buzz --theme mario "npm run build"
# Set your default theme
terminal-buzz config set-theme zelda
# Use your default theme
terminal-buzz "cargo build --release"
# Random theme each time
terminal-buzz --random "python train.py"
# Silent mode (notification only)
terminal-buzz --silent "npm test"๐ฎ Available Themes
| Theme | Success Sound | Error Sound | Emoji | |-------|--------------|-------------|-------| | ๐ Mario | Coin collect | Game over | ๐ | | โ๏ธ Zelda | Chest open | Error beep | โ๏ธ | | โก Pokemon | Level up | Pokemon faint | โก | | ๐จ Sonic | Ring collect | Death | ๐จ | | ๐พ Retro | Pac-Man eat | Pac-Man death | ๐พ |
๐ Usage
Basic Command Execution
terminal-buzz [options] "<your-command>"Options
| Option | Alias | Description |
|--------|-------|-------------|
| --theme <name> | -t | Override default theme (mario, zelda, pokemon, sonic, retro) |
| --random | -r | Use a random theme |
| --silent | -s | Notification only, no sound |
| --version | -V | Show version number |
| --help | -h | Display help |
Configuration Commands
# Set default theme
terminal-buzz config set-theme <theme>
# Get current default theme
terminal-buzz config get-theme
# List all available themes
terminal-buzz config list-themes๐ก Use Cases
Long-Running Builds
terminal-buzz "npm run build"
terminal-buzz "cargo build --release"
terminal-buzz "docker build -t myapp ."Test Suites
terminal-buzz --theme pokemon "npm test"
terminal-buzz "pytest tests/"
terminal-buzz "go test ./..."Deployment Scripts
terminal-buzz --theme sonic "npm run deploy"
terminal-buzz "./deploy.sh production"Training ML Models
terminal-buzz --random "python train.py --epochs 100"Database Operations
terminal-buzz "pg_dump mydb > backup.sql"
terminal-buzz "mongorestore --db mydb dump/"๐ฏ Real-World Examples
# Frontend development
terminal-buzz --theme mario "npm run build && npm run deploy"
# Backend compilation
terminal-buzz --theme sonic "go build -o server cmd/main.go"
# Data processing
terminal-buzz --random "python process_data.py --input large_dataset.csv"
# System administration
terminal-buzz --silent "rsync -avz /source/ /backup/"
# Multiple commands
terminal-buzz "npm install && npm run build && npm test"๐ Global Shell Integration (Recommended)
Want sounds after every command without typing terminal-buzz? Let the setup wizard handle it!
terminal-buzz setupThis will automatically detect your shell (Bash or Zsh) and add the necessary hook to your config file.
Manual Integration
If the setup doesn't detect your shell, you can add these manually:
Bash (~/.bashrc):
PROMPT_COMMAND='terminal-buzz --notify $? &'Zsh (~/.zshrc):
precmd() {
terminal-buzz --notify $? &!
}๐ง Configuration
Configuration is stored in ~/.config/terminal-buzz-config.json (or platform equivalent).
Default configuration:
{
"theme": "mario"
}๐จ Adding Custom Themes
Want to contribute a new theme? Here's how:
- Create a new folder in
sounds/with your theme name - Add two MP3 files:
success.mp3- Plays on successful command completion (exit code 0)error.mp3- Plays on command failure (non-zero exit code)
- Keep files under 50KB each for fast loading
- Update
lib/index.jsto include your theme in theTHEMESobject - Submit a pull request!
Sound Requirements
- Format: MP3
- Bitrate: 64kbps recommended
- Duration: 1-3 seconds
- Size: < 50KB per file
- License: Must be free to use (CC0, public domain, or similar)
๐ ๏ธ Development
# Clone the repository
git clone https://github.com/aicronic/terminal-buzz.git
cd terminal-buzz
# Install dependencies
npm install
# Make CLI executable
chmod +x bin/cli.js
# Test locally
node bin/cli.js --theme mario "echo 'Hello World'"
# Test error handling
node bin/cli.js --theme mario "exit 1"๐งช Testing Checklist
- โ Success sound plays on exit code 0
- โ Error sound plays on non-zero exit code
- โ Desktop notification appears
- โ Config persists between runs
- โ Ctrl+C kills both tool and child process
- โ Command output streams in real-time
- โ Works on Mac/Linux/Windows
- โ Fallback to system beep if audio fails
๐ Platform Support
| Platform | Status | Notes |
|----------|--------|-------|
| macOS | โ
Full Support | Native audio and notifications |
| Linux | โ
Full Support | Requires alsa-utils or pulseaudio |
| Windows | โ
Full Support | Native audio via Windows Media Player |
Linux Audio Setup
If you encounter audio issues on Linux, install one of these:
# Ubuntu/Debian
sudo apt-get install alsa-utils
# Or use PulseAudio
sudo apt-get install pulseaudio๐ License
MIT ยฉ aicronic
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request. Here are some ideas:
- ๐ต Add new game themes
- ๐ Fix bugs or improve error handling
- ๐ Improve documentation
- โจ Suggest new features
๐ Credits
Sound effects sourced from:
- The Mushroom Kingdom - Mario sounds
- Zelda Dungeon - Zelda sounds
- Sounds Resource - Sonic sounds
- Mixkit - Free game sound effects
- Freesound - CC0 licensed sounds
โญ Show Your Support
If you find this tool useful, please consider:
- โญ Starring the repository
- ๐ฆ Sharing on social media
- ๐ Reporting bugs
- ๐ก Suggesting new features
๐ฌ Contact
- GitHub: @aicronic
- Issues: GitHub Issues
Made with โค๏ธ and nostalgia by developers, for developers
Remember: Every successful build deserves a victory sound! ๐ฎ
