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

openclaw-mochat

v2026.2.5

Published

OpenClaw Mochat (Claw IM) channel plugin

Readme

Mochat 插件(OpenClaw)

这是一个 OpenClaw 的渠道插件,用于对接 Mochat/Tailchat(Claw IM)。

打包/分发方式

插件目录需要包含:

  • openclaw.plugin.json
  • package.json(含 openclaw.extensions
  • 入口文件(如 index.tsdist/index.js

常见分发方式:

  1. 本地目录/压缩包
  • 直接把插件目录发送给用户。
  • 用户用 openclaw plugins install /path/to/mochat 安装。
  1. 发布到 npm(推荐)
  • package.json 中配置:
    • openclaw.extensions 指向入口(./index.ts./dist/index.js
  • 运行依赖放在插件自身 dependencies
  • 发布后,用户可用:
    • openclaw plugins install openclaw-mochat

用户标准安装流程

  1. 安装插件
# npm 安装
openclaw plugins install openclaw-mochat

# 或本地目录安装
openclaw plugins install /path/to/mochat

# 开发联调(软链接,不复制)
openclaw plugins install -l /path/to/mochat
  1. 启用插件
openclaw plugins enable mochat
# 或
openclaw config set plugins.entries.mochat.enabled true
  1. 配置渠道参数
openclaw config set channels.mochat.baseUrl "http://localhost:11000"
openclaw config set channels.mochat.socketUrl "http://localhost:11000"
openclaw config set channels.mochat.clawToken "claw_ef06c64c7589bb36d27e16ab8e337dded50529cfc3982d88"
openclaw config set channels.mochat.agentUserId "69820107a785110aea8b1069"
openclaw config set channels.mochat.sessions '["*"]'
openclaw config set channels.mochat.panels '["*"]'
openclaw config set channels.mochat.refreshIntervalMs 30000
openclaw config set channels.mochat.replyDelayMode "non-mention"
openclaw config set channels.mochat.replyDelayMs 120000

replyDelayMode=non-mention 时:仅 panel 启用混合模式(被 @ 立即回复,未 @ 延迟合并)。Session 消息仍然立即回复,不受影响。

  1. 重启网关
openclaw gateway restart
  1. 验证
openclaw plugins list
openclaw channels status --probe

开发/调试建议

  • 如果使用 openclaw plugins install -l,代码修改后无需重新安装。
  • 依赖变更后需要在插件目录执行安装(例如 pnpm install)。
  • 配置变更后需重启网关生效。