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

@wzzhaoyi/direct-relay

v0.2.1

Published

Lightweight message relay plugin for OpenClaw — push notifications to QQBot, Telegram, Discord, Slack, Signal, WhatsApp, iMessage and Line, bypassing LLM

Readme

openclaw-direct-relay

轻量级 OpenClaw 插件 — 绕过 LLM,直接将通知推送到各消息平台。

支持的 channel

| channel 值 | 平台 | 说明 | |-------------|------|------| | telegram | Telegram | 需在 OpenClaw 中配置 Telegram channel | | discord | Discord | 需在 OpenClaw 中配置 Discord channel | | slack | Slack | 需在 OpenClaw 中配置 Slack channel | | signal | Signal | 需在 OpenClaw 中配置 Signal channel | | whatsapp | WhatsApp | 需在 OpenClaw 中配置 WhatsApp channel | | imessage | iMessage | 需在 OpenClaw 中配置 iMessage channel | | line | LINE | 需在 OpenClaw 中配置 LINE channel | | qqbot | QQ 机器人 | 需在配置中填写 appId + clientSecret |

安装

openclaw plugins install @wzzhaoyi/direct-relay

配置

插件本身无独立配置项,复用 OpenClaw 已有的 channel 配置。

QQBot 需在 openclaw.json 中额外添加:

{
  "channels": {
    "qqbot": {
      "appId": "YOUR_APP_ID",
      "clientSecret": "YOUR_CLIENT_SECRET"
    }
  }
}

认证 token 读取自 OpenClaw 配置的 hooks.token,或环境变量 OPENCLAW_HOOKS_TOKEN

API

POST /relay

请求头

| Header | 说明 | |--------|------| | x-openclaw-token | 认证 token(或 Authorization: Bearer <token>) | | Content-Type | application/json |

请求体

{
  "channel": "telegram",
  "to": "CHAT_ID",
  "text": "消息内容"
}

to 格式说明

| Channel | 格式 | 示例 | |---------|------|------| | telegram | Telegram chat ID | 123456789 | | discord | 频道或用户 ID | channel:123456789 | | slack | 频道或用户 | #general / U12345 | | signal | 手机号 | +8613800000000 | | whatsapp | 手机号 | +8613800000000 | | imessage | 手机号或邮箱 | +8613800000000 | | line | 用户/群组 ID | U1234... | | qqbot | c2c:<openid>group:<group_openid> | c2c:OPENID |

响应

{ "ok": true, "channel": "telegram" }

使用示例

# Telegram
curl -X POST http://127.0.0.1:18789/relay \
  -H "x-openclaw-token: YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"channel":"telegram","to":"123456789","text":"备份完成"}'

# QQBot 私聊
curl -X POST http://127.0.0.1:18789/relay \
  -H "x-openclaw-token: YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"channel":"qqbot","to":"c2c:OPENID","text":"服务器告警"}'

更多示例见 examples/ 目录。

License

MIT