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

@ruhooai/rhclaw-channel

v1.0.6

Published

RHClaw Channel plugin for OpenClaw Gateway

Readme

RHClaw Channel

运行在 OpenClaw Gateway 中的标准 Channel 插件,用于把 RHOpenClaw 的控制面协议桥接到 OpenClaw 运行时。

开发者指南

环境要求

  • Node.js 22+
  • OpenClaw >= 2026.3.9

本地开发

当前项目级测试不依赖固定的 .env 文件。运行期若需要通过环境变量注入设备令牌,建议在 OpenClaw 宿主配置中把 gatewayTokenRef.id 约定为统一名称,例如 RHCLAW_DEVICE_TOKEN

npm install
npm run typecheck
npm run test

安装方式

正式环境推荐直接通过 npm 安装:

openclaw plugins install @ruhooai/rhclaw-channel

开发或回归场景可使用本地目录安装:

openclaw plugins install /path/to/RHClaw-Channel

核心配置

插件统一挂载在 channels.rhclaw 下,常用字段包括:

  • serverUrl
  • deviceSocketUrl
  • deviceId
  • gatewayTokenRef
  • defaultAgentId
  • heartbeatIntervalSec

技术实现

  1. index.ts 负责插件注册与 OpenClaw 扩展入口声明。
  2. src/channel.ts 负责生命周期接入、主流程编排与 Gateway 交互。
  3. src/server-client.ts 负责控制面 HTTP 与数据面连接管理。
  4. src/inbound.tssrc/outbound.ts 负责 RH 协议与 OpenClaw envelope 的双向转换。
  5. src/runtime.tssrc/session-map.tssrc/status.ts 负责运行时状态、会话映射与诊断上报。

相关文档