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

@openim/openclaw-channel

v0.3.2

Published

OpenIM channel plugin for OpenClaw gateway

Downloads

280

Readme

@openim/openclaw-channel

OpenClaw Gateway 的 OpenIM 渠道插件。

English documentation: README.md

功能

  • 支持私聊与群聊
  • 支持文本/图片/文件消息的收发
  • openim_send_video 按文件消息发送(不使用 OpenIM 视频消息)
  • 支持引用消息解析(用于入站上下文)
  • 支持多账号并发(channels.openim.accounts.<id>
  • 支持群聊仅 @ 触发
  • 提供交互式配置命令:openclaw openim setup

安装

从 npm 安装:

openclaw plugins install @openim/openclaw-channel

本地路径安装:

openclaw plugins install /path/to/openclaw-channel

仓库地址:https://github.com/openimsdk/openclaw-channel

标识说明

  • npm 包名:@openim/openclaw-channel
  • 插件 id:openclaw-channel(用于 plugins.entries / plugins.allow
  • 渠道 id:openim(用于 channels.openim
  • 配置命令:openclaw openim setup

配置

方式一:交互式配置(推荐)

openclaw openim setup

方式二:手动编辑 ~/.openclaw/openclaw.json

{
  "channels": {
    "openim": {
      "accounts": {
        "default": {
          "enabled": true,
          "token": "your_token",
          "wsAddr": "ws://127.0.0.1:10001",
          "apiAddr": "http://127.0.0.1:10002"
        }
      }
    }
  }
}

userIDplatformID 为可选项,未填写时会自动从 JWT token 的 UserID / PlatformID 声明解析。

requireMention 为可选项,默认 true

inboundWhitelist 为可选项,不填或为空时保持当前逻辑;填了后仅处理白名单用户触发的消息:

  • 给账号发单聊消息
  • 在群里 @ 账号的消息

支持单账号兜底写法(不使用 accounts)。

default 账号支持环境变量兜底:

  • OPENIM_TOKEN
  • OPENIM_WS_ADDR
  • OPENIM_API_ADDR

可选环境变量覆盖项:

  • OPENIM_USER_ID
  • OPENIM_PLATFORM_ID

Agent 工具

  • openim_send_text

    • target: user:<id>group:<id>
    • text: 文本内容
    • accountId(可选):指定发送账号
  • openim_send_image

    • target: user:<id>group:<id>
    • image: 本地路径(支持 file://)或 http(s) URL
    • accountId(可选):指定发送账号
  • openim_send_video

    • target: user:<id>group:<id>
    • video: 本地路径(支持 file://)或 http(s) URL
    • 行为:按文件消息发送(不是视频消息)
    • name(可选):URL 输入时覆盖文件名
    • accountId(可选):指定发送账号
  • openim_send_file

    • target: user:<id>group:<id>
    • file: 本地路径(支持 file://)或 http(s) URL
    • name(可选):URL 输入时覆盖文件名
    • accountId(可选):指定发送账号

开发

pnpm run build
pnpm run test:connect

运行 test:connect 前请先配置 .env(参考 .env.example)。

许可证

本项目采用 AGPL-3.0-only 许可证。详见 LICENSE