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

claude-ping

v3.1.0

Published

Play a sound on your laptop when Claude Code stops and needs your attention — zero-config interactive CLI setup

Readme

claude-ping

Never miss a Claude Code moment.

Get Slack notifications + loud alarm sounds when Claude Code stops and needs your attention.

One command. No manual Slack setup. Works on macOS, Linux, and Windows.

Install & Setup

npx claude-ping

The CLI walks you through:

  1. Alert preferences (channel, idle threshold, sound, message style)
  2. Slack app creation (opens browser, pre-configured manifest)
  3. Webhook connection (paste URL, auto-validated)
  4. Claude Code hook registration (automatic)

Setup takes ~2 minutes.

What Triggers Alerts

| Scenario | Slack Message | |---|---| | Claude waiting for input | "Claude is waiting for your input" | | Token limit reached | "Claude hit token limit — needs you to continue" | | Error occurred | "Claude hit an error — needs your attention" | | Permission needed | "Claude needs permission to proceed" |

Alerts only fire when you've been idle longer than your threshold (default: 30 seconds). No spam while you're at the keyboard.

Manage Settings

Re-run to update preferences, change channel, test alerts, or uninstall:

npx claude-ping

How It Works

  1. Creates a Slack app in your workspace via pre-built manifest (you own it)
  2. Generates a hook script at ~/.claude-ping/hook.sh
  3. Registers the hook in Claude Code's settings.json
  4. On every Claude stop: checks idle time → pauses media → plays alarm at max volume → restores volume → resumes media → sends Slack message

The hook returns instantly — a fully detached background worker handles the alert logic so Claude Code is never blocked.

Platform Support

| Feature | macOS | Linux | Windows (WSL) | |---|---|---|---| | Slack alerts | Yes | Yes | Yes | | Sound alerts | Yes (sharp alarm + media pause/resume) | Yes | Limited | | Idle detection | Yes | Yes | Limited |

Sound and idle detection degrade gracefully — Slack alerts always work.

Uninstall

npx claude-ping
# Select "Uninstall" from the menu

This removes the hook from Claude Code settings and deletes ~/.claude-ping/.

To also remove the Slack app: go to Slack App Management and delete "claude-ping".

Configuration

All config is stored at ~/.claude-ping/:

| File | Purpose | |---|---| | config.json | Preferences, webhook URL, hook status | | hook.sh | Thin launcher — reads stop event, spawns worker | | worker.sh | Background worker — idle polling, sound, Slack POST | | alarm.wav | Generated sharp alarm tone (macOS) |

Requirements

  • Node.js >= 18
  • Claude Code installed
  • Slack workspace where you can create apps

Development

git clone https://github.com/singhsameer2891-pixel/claude-task-alert.git
cd claude-task-alert
npm install
npm run build
npm test

License

MIT