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

@gyga-browser/webmcp-zalo-notify

v0.1.0

Published

MCP server for sending proactive Zalo Bot notifications (sendMessage/sendPhoto/sendChatAction) with saved recipient aliases. Token stays in the server env.

Downloads

15

Readme

@gyga-browser/webmcp-zalo-notify

An MCP server for sending proactive Zalo Bot notificationssendMessage, sendPhoto, sendChatAction — with saved recipient aliases. The bot token lives in the server environment, so the calling agent never sees it and never has to be re-prompted for it.

Consumes the Zalo Bot Platform API. For the inbound AI-chatbot runtime (webhook/polling + AI replies), see the separate webmcp-zalo-bot app — this package is outbound-only and intentionally thin.

Tools

| Tool | Description | |------|-------------| | send_message | Send text. recipient = alias or raw chat_id; optional parse_mode (markdown/html). | | send_photo | Send an image by public URL, with optional caption. | | send_chat_action | Show a typing / upload_photo indicator. | | list_contacts | List saved aliases (name + chat type only — never tokens or chat_ids). | | get_me | Verify the configured token and return bot account info. |

Environment

| Variable | Required | Description | |----------|----------|-------------| | ZALO_BOT_TOKEN | to send | Bot token, <numeric_id>:<string>. Held by the server only. | | ZALO_CONTACTS_PATH | optional | Path to a JSON file mapping aliases to chat_ids. |

ZALO_CONTACTS_PATH JSON (aliases → chat_id; strings or objects):

{
  "default_group": { "chat_id": "zgr-xxxx", "chat_type": "GROUP", "note": "Main alerts" },
  "personal_admin": "abcdef0123456789"
}

This file holds only chat_ids/aliases — never put the token in it.

Register with Claude Code

claude mcp add zalo -s user \
  -e ZALO_BOT_TOKEN=<numeric_id>:<string> \
  -e ZALO_CONTACTS_PATH=/abs/path/contacts.local.json \
  -- npx -y @gyga-browser/webmcp-zalo-notify

Or in an mcpServers config block:

{
  "mcpServers": {
    "zalo": {
      "command": "npx",
      "args": ["-y", "zalo-notify-mcp"],
      "env": {
        "ZALO_BOT_TOKEN": "<numeric_id>:<string>",
        "ZALO_CONTACTS_PATH": "/abs/path/contacts.local.json"
      }
    }
  }
}

Restart / reload the MCP client so the zalo tools become available. Then:

zalo.list_contacts()
zalo.send_message({ recipient: "default_group", text: "**Done** ✅", parse_mode: "markdown" })

Local development

npm install
npm run smoke        # spawns the server, lists tools, calls list_contacts
# live connectivity (read-only, sends nothing):
ZALO_BOT_TOKEN=... ZALO_SMOKE_GETME=1 npm run smoke

Notes

  • Group chat_ids start with zgr-. Bot API IDs are not Zalo Web IDs.
  • Text limit is 1–2000 chars. parse_mode supports Zalo markdown extensions (e.g. {green}...{/green}) and a limited HTML subset.
  • stdout is the JSON-RPC channel; all logs go to stderr.

License

MIT