webhook-notify
БесплатноЗапускает вложенные скриптыНе проверенSet up webhook-to-desktop notification systems using Cloudflare Workers and ntfy.sh. Use when users want to receive desktop notifications for webhooks from…
Об этом скилле
Webhook Desktop Notifications
Set up secure, reliable webhook-to-desktop notification systems that receive webhooks from any source and display native desktop notifications on macOS.
Architecture
The system uses a proven pattern:
- Cloudflare Worker - Receives webhooks from external services (Stripe, GitHub, custom apps)
- ntfy.sh - Message relay service (no account required)
- Local Listener - Background process that subscribes to ntfy.sh and displays desktop notifications
- macOS Service - Keeps listener running automatically
Benefits:
- No local port exposure or tunneling required
- Secure and reliable message delivery
- Free tier sufficient for most use cases
- Handles network interruptions with automatic reconnection
Quick Start
Run the init script to set up a new webhook notification system:
scripts/init_webhook.sh <webhook-name> <ntfy-topic> [output-dir] [sound-file]
Example:
scripts/init_webhook.sh stripe-payments myapp-stripe
This creates:
- Cloudflare Worker for receiving webhooks
- Local listener script for desktop notifications
- macOS launchd service configuration
- All necessary configuration files
Workflow
Step 1: Initialize Webhook System
Run init_webhook.sh with appropriate parameters:
Arguments:
webhook-name: Identifier for this webhook (e.g., "stripe-payments", "github-prs")ntfy-topic: Your unique ntfy.sh topic name (e.g., "myapp-notifications-2024")output-dir: (Optional) Where to create files (default:~/.claude/webhooks/<webhook-name>)sound-file: (Optional) Custom notification sound (default: system sound)
Example with custom sound:
scripts/init_webhook.sh github-alerts my-github-topic ~/webhooks /path/to/alert.mp3
Step 2: Customize Worker Logic
Edit the generated worker.js to handle your specific webhook format.
The worker template includes examples for:
- Generic webhooks (title/message/url format)
- Stripe payment events
- GitHub events (PRs, issues, releases)
Modify the extractNotification() function to parse your webhook structure and return notification details.
Example for custom app webhooks:
function extractNotification(event) {
// Your custom webhook format
if (event.type === 'user.signup') {
return {
title: 'New User Signup',
message: `${event.user_email} just created an account`,
priority: '4',
tags: 'user,tada',
url: `https://myapp.com/admin/users/${event.user_id}`,
};
}
return null; // Ignore other events
}
Notification object fields:
title: Notification title (required)message: Notification body text (required)priority: 1-5, where 5 is highest (optional, default: 3)tags: Emoji tags for ntfy.sh like "moneybag", "warning", "fire" (optional)url: URL to open when notification is clicked (optional)
For common patterns, see EXAMPLES.md with complete examples for:
- Stripe payments and refunds
- GitHub PR/issue notifications
- Error monitoring and alerts
- Custom business events
- Event filtering and routing
Step 3: Deploy Cloudflare Worker
Navigate to the webhook directory and deploy:
cd ~/.claude/webhooks/<webhook-name>/webhook
npx wrangler deploy
The deployment will output your worker URL:
https://<webhook-name>.<your-subdomain>.workers.dev
Configure your webhook source to send POST requests to:
https://<webhook-name>.<your-subdomain>.workers.dev/webhook
Optional: Add webhook secret for signature verification:
npx wrangler secret put WEBHOOK_SECRET
Step 4: Install Local Listener
Install the listener as a background service that starts automatically:
scripts/install_service.sh ~/.claude/webhooks/<webhook-name>/com.webhook.<webhook-name>.plist
The service will:
- Start immediately
- Restart automatically if it crashes
- Run on system startup
Test manually before installing:
~/.claude/webhooks/<webhook-name>/listener.sh
Then send a test notification:
curl -d 'Test notification!' https://ntfy.sh/<your-topic>
Step 5: Test End-to-End
Send a test webhook to verify the complete flow:
curl -X POST https://<webhook-name>.<your-subdomain>.workers.dev/webhook \
-H "Content-Type: application/json" \
-d '{"title":"Test","message":"Hello from webhook!"}'
You should see:
- Worker logs in Cloudflare dashboard
- Message in listener logs:
~/.claude/webhooks/<webhook-name>/logs/listener.log - Desktop notification with sound
Troubleshooting
No notification received:
- Check worker logs:
cd webhook && npx wrangler tail - Check listener logs:
tail -f ~/.claude/webhooks/<webhook-name>/logs/*.log - Verify service is running:
launchctl list | grep webhook - Test ntfy.sh directly:
curl -d "Test" https://ntfy.sh/<your-topic>
Notification sound not playing:
- Verify sound file e
Установить webhook-notify в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл webhook-notify?
Set up webhook-to-desktop notification systems using Cloudflare Workers and ntfy.sh. Use when users want to receive desktop notifications for webhooks from services like Stripe payments, GitHub events, custom app alerts, error monitoring, or any webhook source. Handles the full setup including worker deployment, local listener, and background service installation. Supports custom sounds, click actions, rich content, and event filtering.
Как установить скилл webhook-notify?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл webhook-notify запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic