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-slack-notifier

v1.0.1

Published

Send Slack notifications when Claude Code tasks complete. Cross-platform (Windows, macOS, Linux).

Readme

Claude Slack Notifier

npm version License: MIT

Send Slack notifications when Claude Code tasks complete. Cross-platform support for Windows, macOS, and Linux.

Features

  • 🔔 Automatic Notifications: Get notified when Claude Code finishes a task
  • 📁 Project-specific Config: Different settings per project
  • 🌍 Cross-platform: Works on Windows, macOS, and Linux
  • Zero Dependencies: Pure Node.js, no external packages
  • 🎨 Rich Messages: Beautiful Slack messages with project info

Installation

npm install -g claude-slack-notifier

Quick Start

1. Set up Slack Webhook

Step 1: Create a Slack App

  1. Go to Slack API Apps
  2. Click "Create New App"
  3. Select "From scratch"
  4. Enter an App Name (e.g., "Claude Code Notifier")
  5. Select your workspace and click "Create App"

Step 2: Enable Incoming Webhooks

  1. In the left sidebar, click "Incoming Webhooks"
  2. Toggle "Activate Incoming Webhooks" to On
  3. Click "Add New Webhook to Workspace" at the bottom
  4. Select the channel where you want notifications (e.g., #dev-alerts)
  5. Click "Allow"

Step 3: Copy the Webhook URL

After authorization, you'll see a new webhook URL. Copy this URL - you'll need it for the configuration.

Note: Keep your webhook URL secret! Anyone with this URL can post messages to your Slack channel.

2. Configure Claude Code Hook

Add to ~/.claude/settings.json:

{
  "hooks": {
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "claude-slack-notify"
          }
        ]
      }
    ],
    "Notification": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "claude-slack-notify"
          }
        ]
      }
    ]
  }
}

3. Create Project Config

cd your-project
claude-slack-notify init

Edit .claude/slack.json:

{
  "webhook": "https://hooks.slack.com/services/YOUR/WEBHOOK/URL",
  "channel": "#dev-alerts",
  "project": "My Project",
  "lang": "en"
}

4. Test

claude-slack-notify test

Configuration

Project Config (.claude/slack.json)

{
  "webhook": "https://hooks.slack.com/services/...",
  "channel": "#channel-name",
  "project": "Project Name",
  "lang": "en"
}

| Field | Description | |-------|-------------| | webhook | Slack Webhook URL (required) | | channel | Slack channel name | | project | Project name | | lang | Language code (default: en) |

Global Config (~/.claude/slack-notifier.json)

Same format as project config. Used as fallback when no project config exists.

Environment Variables

| Variable | Description | |----------|-------------| | SLACK_WEBHOOK_URL | Webhook URL (fallback) | | SLACK_CHANNEL | Channel name (fallback) | | SLACK_PROJECT_NAME | Project name (fallback) |

Commands

| Command | Description | |---------|-------------| | claude-slack-notify | Send notification (auto-called by hook) | | claude-slack-notify init | Create project config file | | claude-slack-notify test | Send test notification | | claude-slack-notify help | Show help | | claude-slack-notify version | Show version |

Notification Types

| Event | Emoji | When | |-------|-------|------| | Stop | ✅ | Task completed | | Notification | ⏳ | Waiting for input | | Error | ❌ | Error occurred |

Supported Languages

50 languages are supported. Set the lang field in your config to one of these codes:

| Code | Language | Code | Language | Code | Language | |------|----------|------|----------|------|----------| | en | English | ko | Korean | ja | Japanese | | zh | Chinese (Simplified) | zh-tw | Chinese (Traditional) | es | Spanish | | fr | French | de | German | it | Italian | | pt | Portuguese | ru | Russian | ar | Arabic | | hi | Hindi | bn | Bengali | id | Indonesian | | ms | Malay | th | Thai | vi | Vietnamese | | tr | Turkish | pl | Polish | nl | Dutch | | el | Greek | cs | Czech | ro | Romanian | | hu | Hungarian | sv | Swedish | da | Danish | | no | Norwegian | fi | Finnish | uk | Ukrainian | | he | Hebrew | fa | Persian | sw | Swahili | | tl | Filipino | ca | Catalan | sk | Slovak | | bg | Bulgarian | hr | Croatian | sr | Serbian | | sl | Slovenian | et | Estonian | lv | Latvian | | lt | Lithuanian | is | Icelandic | mt | Maltese | | cy | Welsh | ga | Irish | af | Afrikaans | | eu | Basque | | | | |

Example Slack Message

✅ Claude Code: Task Completed
━━━━━━━━━━━━━━━━━━━━━━━━━━━
Project:              My Project
Time:                 2025-01-30 15:30:00
Customer Request:     User request content
Work Summary:         Claude Code task summary

Troubleshooting

Notifications not working

  1. Test your webhook: claude-slack-notify test
  2. Check config path: .claude/slack.json
  3. Verify hook setup: ~/.claude/settings.json

Only want notifications for specific projects

Don't create a global config. Only create .claude/slack.json in projects where you want notifications.

Disable notifications for a project

Simply delete the .claude/slack.json file from your project directory.

How It Works

Claude Code Task Completes
        ↓
   Stop Hook Fires
        ↓
 claude-slack-notify runs
        ↓
 Reads .claude/slack.json
        ↓
 Sends Slack Message

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT © 2025 mint-soft