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

claw-mum

v1.0.9

Published

Claw Mum mobile app integration for OpenClaw

Downloads

823

Readme

OpenClaw Channel Plugin: Claw Mum

这个插件是 Claw Mum 项目的一部分,用于拦截 OpenClaw Agent 的消息并转发到 Claw Mum 后端,实现 App 端与 Agent 的互通。

功能特性

  1. 状态同步:实时向后端汇报 Agent 的 session_statusonline_idle, online_busy, offline)。
  2. 多媒体拦截(Feature 4):拦截 Agent 输出的所有媒体标签:
    • <img><file>:标准媒体标签
    • <qqimg><qqfile><qqvoice><qqvideo><qqvoid>:QQBot 兼容标签
    • 自动通过 HTTP API 将文件推送到后端 /api/channel/outbound/media,并通知 App。
  3. 系统提示词注入:静默向用户消息末尾追加引导 Prompt,指导 Agent 在需要发送文件时输出 <img><file> 标签,禁止使用 QQBot 专用标签。
  4. 原生指令支持:支持 /new/reset 等指令新建/重置会话,App 收到 "✅ New session started" 确认。

安装与部署

由于 Claw Mum 的后端已经部署在公网上(https://116.62.219.48),你需要在 OpenClaw 容器内配置该插件。

  1. 进入你的 OpenClaw 容器:
docker exec -it claw2 bash
  1. 将此目录下的代码复制到容器的 extensions/ 目录下:
docker cp ./claw_mum_plugin_openclaw/extensions/claw-mum claw2:/root/.openclaw/extensions/
  1. 重要:确保 src/ 目录下不存在 .js 文件,否则 TypeScript 运行时会优先加载旧编译产物而非源文件:
docker exec claw2 rm -f /root/.openclaw/extensions/claw-mum/src/*.js
  1. 重启 OpenClaw Gateway(需要设置 NODE_TLS_REJECT_UNAUTHORIZED=0 以信任自签名证书):
docker exec claw2 bash /root/openclaw-restart.sh

更新插件

如果你修改了插件的 TypeScript 源代码:

  1. 将修改后的 .ts 文件复制到容器内的对应位置:
docker cp ./src/gateway.ts claw2:/root/.openclaw/extensions/claw-mum/src/gateway.ts
  1. 确保 src/ 下没有同名 .js 文件遮蔽新的 .ts 文件。
  2. 重启 OpenClaw Gateway。

注意:无需手动编译。OpenClaw 使用 TypeScript 运行时直接加载 .ts 文件,不需要 npm run build