Package Exports
- buzzme
Readme
buzzme
Send notifications from your terminal. Supports Telegram, Discord, Slack, and ntfy.
npm i -g buzzmeQuick start (Telegram)
- Create a bot with @BotFather and save the token:
buzzme --token <token>
- Message your bot, grab your chat ID from
https://api.telegram.org/bot<TOKEN>/getUpdates, and save it:buzzme --chat-id <id>
- Send a message:
buzzme -m "deploy finished"
Usage
# Send a message
buzzme -m "deploy finished"
# Pipe from stdin
echo "server is down" | buzzme
cat error.log | buzzme
# Run a command and notify with the result
buzzme --run "npm test"
# Send without notification sound
buzzme -m "non-urgent update" --silent
# Prepend timestamp
buzzme -m "deploy done" --time # [2026-03-23 21:30] deploy done
# Markdown formatting
buzzme -m "*bold* _italic_ \`code\`" --md
# Send a file or image
buzzme -f ./screenshot.png
buzzme -f ./build.log -m "build log attached"
# Combine flags
buzzme --run "npm test" --silent --timeOther platforms
# Discord
buzzme --platform discord --webhook <url>
# Slack
buzzme --platform slack --webhook <url>
# ntfy
buzzme --platform ntfy --topic <topic>
buzzme --platform ntfy --topic <topic> --server https://my-ntfy.example.comSending to a specific platform
buzzme -m "hello" --via discord
buzzme -m "hello" --all # sends to every configured platform
buzzme --default discord # change the defaultOptions
| Flag | Short | Description |
|---|---|---|
--message <text> |
-m |
Send a message |
--file <path> |
-f |
Send a file or image |
--run <command> |
-r |
Run a command and notify with the result |
--silent |
-s |
Send without notification sound |
--time |
Prepend timestamp to message | |
--md |
Parse message as Markdown | |
--token <token> |
-t |
Save Telegram bot token |
--chat-id <id> |
-i |
Save Telegram chat ID |
--platform <name> |
Target platform for setup | |
--webhook <url> |
Webhook URL (Discord, Slack) | |
--topic <topic> |
ntfy topic | |
--server <url> |
ntfy server (default: ntfy.sh) | |
--via <name> |
Send to a specific platform | |
--all |
Send to all configured platforms | |
--default <name> |
Set the default platform | |
--config |
Show saved config |
API
npm i buzzmeimport { buzzme } from "buzzme";
await buzzme("deploy finished");
await buzzme("done", { silent: true, markdown: true, time: true });
// Send a file
await buzzme.file("./screenshot.png");
await buzzme.file("./build.log", { caption: "build log" });
// Send to a specific platform
await buzzme("done", { via: "discord" });
await buzzme("done", { all: true });Without a config file
Pass a platform instance directly:
import { buzzme, discord, telegram, ntfy } from "buzzme";
await buzzme("deploy finished", {
platform: discord({ webhook: "https://discord.com/api/webhooks/..." })
});
await buzzme("alert", {
platform: ntfy({ topic: "my-alerts" })
});