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-code-notifier-hook

v1.2.0

Published

Claude Code Stop hook notifier — sends a system notification when Claude finishes a task

Readme

Claude Code Notifier Hook

当 Claude Code 完成任务时,自动发送 macOS 系统通知(可附带提示音),让你不用盯着屏幕等待。

效果

  • Claude 完成任务后弹出系统通知:"Claude Code 任务完成,请继续..."
  • 可选播放提示音(系统音效或内置趣味音效)

安装

npm install -g claude-code-notifier-hook

使用

初始化(只需运行一次)

claude-code-notifier-hook init

向导会引导你:

  1. 选择安装级别

    • 用户级别 ~/.claude/settings.json — 对所有项目生效
    • 项目级别 .claude/settings.json — 仅对当前项目生效
  2. 选择提示音(macOS)

    • 系统音效:Frog、Purr、Sosumi、Submarine
    • 内置趣味音效:来啦老弟 / 你干嘛 / 开始工作
    • 自定义音效(~/Library/Sounds 中的 .aiff 文件)
    • 或不使用提示音

配置完成后,Claude Code 每次完成任务都会自动触发通知。

手动测试

echo '{"stop_hook_active": false}' | claude-code-notifier-hook notify --sound Frog

工作原理

本工具作为 Claude Code 的 Stop hook 运行。每当 Claude 完成一轮任务,Claude Code 会自动调用 notify 子命令并通过 stdin 传入 JSON 数据。

防止无限循环: 若 JSON 中 stop_hook_active === true(表示 hook 本身触发了新会话),通知器会立即退出,避免循环触发。

用户级去重: 安装到用户级别时,hook 命令会先检查当前项目是否已有自定义 notifier hook,有则跳过,避免重复通知。

内置音效说明

| 音效名 | 文件 | |--------|------| | 来啦老弟 | lailalaodi.aiff | | 你干嘛 | niganma.aiff | | 开始工作 | letsgetwork.aiff |

init 时会将所选文件复制到 ~/Library/Sounds/,之后通过 afplay 播放。

系统要求

  • macOS(通知与音效功能依赖 macOS API)
  • Node.js >= 14

License

MIT