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

warhorn

v1.0.0

Published

Sound notifications for Claude Code — chimes, alerts, and AI voice lines

Readme

WARHORN

Sound notifications for Claude Code

Never miss the end of a long task, a permission request, or a failed tool call again. Chimes, alerts, and AI voice lines — your choice.

npx warhorn

What is warhorn?

Claude Code runs in the terminal — no visual cues, no push notifications, no sound. If you step away or switch tabs during a long task, you have no idea when it's done, when it needs approval, or when something breaks.

warhorn fixes that. It hooks into Claude Code's lifecycle events and plays sounds when things happen:

  • Instrumental chimes — bundled WAV files that work immediately, no setup needed
  • AI voice lines — short, punchy character voice clips generated via edge-tts (free Microsoft TTS)
  • Both — instrumentals and voice lines mixed randomly per hook
  • Fully customizable — pick which hooks trigger sounds, choose a voice preset and personality tone, or describe your own

Getting Started

1. Install Claude Code (if you haven't already)

# macOS / Linux
curl -fsSL https://claude.ai/install.sh | bash

# Windows (PowerShell)
irm https://claude.ai/install.ps1 | iex

Verify it's working:

claude --version

Need help? See the official setup guide.

2. Install warhorn

npx warhorn

warhorn installs itself as a Claude Code plugin — sounds, scripts, commands, and hooks all set up automatically.

3. Configure

Open Claude Code in any project directory and run:

/warhorn:setup

The interactive wizard walks you through picking your hooks, sound type, voice, and personality.

How It Works

1. Pick your hooks — Choose which Claude Code events should play sounds (task complete, permission needed, errors, etc.)

2. Pick your sound type — Instrumental chimes, AI voice lines, or both

3. Pick your voice — If using voice lines, choose a voice preset and personality tone (sarcastic, grumpy, enthusiastic, dramatic, or describe your own)

4. Generate — Claude Code writes custom voice lines and generates WAV files via edge-tts. Done.

~/.claude/warhorn/
├── sounds/
│   ├── Stop/               ← random .wav plays when Claude finishes
│   │   ├── chime.wav
│   │   └── voice_1.wav
│   ├── PostToolUseFailure/  ← plays when a tool fails
│   ├── PermissionRequest/   ← plays when Claude needs approval
│   └── ...                  ← 14 hook folders total
└── scripts/
    ├── play-sound.sh        ← picks random file, plays it
    └── generate_voices.py   ← generates WAVs via edge-tts

Commands

Once installed, you have access to these commands in Claude Code:

  • /warhorn:setup — Interactive setup wizard — pick hooks, sound type, voice character
  • /warhorn:mute — Mute all sounds
  • /warhorn:unmute — Unmute sounds

Voice Presets

| Preset | Voice | |--------|-------| | male_deep | Australian male, deep and gruff | | male_mid | British male, mid-pitch (default) | | female_mid | British female, mid-pitch | | female_high | American female, bright and high |

Personality tones

| Tone | Vibe | Example | |------|------|---------| | sarcastic | Makes fun of you | "Done. You're welcome." | | grumpy | Hates everything | "Done. Go away." | | enthusiastic | Annoyingly excited | "WOOHOO! Done!" | | informational | Just the facts | "Response complete." | | dramatic | Over the top epic | "The quest is complete!" |

You can also describe a custom personality during /warhorn:setup and Claude will write voice lines for it.

Supported Hooks

| Hook | Default sound | When it fires | |------|:---:|-------------| | Stop | chime, success, bell | Claude finishes responding | | SessionStart | boot, ready | Session begins | | SessionEnd | shutdown | Session ends | | PostToolUseFailure | buzz, sad, wonk | Tool fails | | PermissionRequest | alert, doorbell | Claude needs approval | | Notification | ping, bubble | Claude sends notification | | SubagentStart | spawn | Subagent spawns | | SubagentStop | return | Subagent finishes | | TaskCompleted | victory | Task marked complete | | PreCompact | warning | Context compaction starting | | UserPromptSubmit | tick, tap | You submit a prompt | | PreToolUse | (empty) | Before every tool call | | PostToolUse | (empty) | After every tool call | | TeammateIdle | (empty) | Team member idles |

Add Your Own Sounds

Drop any audio file into a hook folder:

cp ~/my-sound.wav ~/.claude/warhorn/sounds/Stop/

Supported formats: .wav (recommended), .mp3, .aiff, .ogg

Requirements

  • macOS — Works out of the box (afplay is built in)
  • Linux — Needs pulseaudio or alsa-utils for sounds
  • Voice lines (optional) — pip install edge-tts + internet

Uninstall

npx warhorn uninstall

Cleanly removes sounds, commands, and hooks from ~/.claude/settings.json.

License

MIT © Alex Levadski


Congrats, your Claude Code just got voice!

Report Bug · Request Feature