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

@zytrux/daoyu

v0.1.17

Published

Daoyu 3D AI conversation channel plugin for OpenClaw.

Downloads

36

Readme

daoyu

Daoyu channel plugin for OpenClaw.

Daoyu is a 3D chat software product focused on AI-powered conversational experiences.

Repository / 仓库地址: zytrux-tech/openclaw-daoyu

Issue Reporting / 问题反馈: Please open an Issue in the repository if installation, connection, or signing fails.
如遇安装、连接、签名校验问题,请在仓库中提交 Issue。

Production Only / 仅支持正式环境: This plugin is designed for production deployment only. Use https:// / wss:// only.
本插件仅面向正式环境发布与使用,只支持 https:// / wss://

English | 中文


English

Features

  1. appId/appSecret bot authentication
  2. persistent WebSocket connection to Daoyu server
  3. signed inbound and outbound frames
  4. multi-account support
  5. isolated session context per accountId
  6. runtime token cache with persisted deviceId

Installation

Install from npm:

openclaw plugins install @zytrux/daoyu

Install from a local archive:

openclaw plugins install ./zytrux-daoyu-0.1.17.tgz

Upgrade

Repack and reinstall the plugin after code changes:

pnpm pack
openclaw plugins install ./zytrux-daoyu-0.1.17.tgz

Then restart the gateway:

openclaw gateway --port 18789 --verbose

Compatibility

This plugin follows the OpenClaw SDK migration guidance and uses scoped plugin SDK subpath imports.

Requirements:

  1. use a recent OpenClaw version that supports scoped plugin SDK imports
  2. do not use deprecated openclaw/plugin-sdk/compat
  3. reinstall the plugin package after upgrading plugin code

Minimal Config

{
  "channels": {
    "daoyu": {
      "enabled": true,
      "accounts": {
        "bota": {
          "enabled": true,
          "auth": {
            "appId": "bot_xxx",
            "appSecret": "sec_xxx"
          }
        }
      }
    }
  }
}

Default values:

  1. serverUrl = https://api.aidaoyu.cn
  2. wsPath = /openclaw/ws
  3. oauth.tokenPath = /openclaw/oauth/token
  4. auth.requiredSignatures = true
  5. auth.signatureDebug = false

Runtime behavior:

  1. deviceId may be written back to config for stable device identity
  2. accessToken is cached in memory and is not written back to openclaw.json

Multi-Account Example

{
  "agents": {
    "list": [
      {
        "id": "daoyu-bota",
        "workspace": "/root/.openclaw/workspace/daoyu-bota",
        "agentDir": "/root/.openclaw/agents/daoyu-bota/agent"
      },
      {
        "id": "daoyu-botb",
        "workspace": "/root/.openclaw/workspace/daoyu-botb",
        "agentDir": "/root/.openclaw/agents/daoyu-botb/agent"
      }
    ]
  },
  "bindings": [
    {
      "agentId": "daoyu-bota",
      "match": {
        "channel": "daoyu",
        "accountId": "bota"
      }
    },
    {
      "agentId": "daoyu-botb",
      "match": {
        "channel": "daoyu",
        "accountId": "botb"
      }
    }
  ],
  "channels": {
    "daoyu": {
      "enabled": true,
      "defaultAccount": "bota",
      "accounts": {
        "bota": {
          "enabled": true,
          "auth": {
            "appId": "bot_xxx_a",
            "appSecret": "sec_xxx_a"
          }
        },
        "botb": {
          "enabled": true,
          "auth": {
            "appId": "bot_xxx_b",
            "appSecret": "sec_xxx_b"
          }
        }
      }
    }
  }
}

Server Requirements

Your Daoyu server should provide:

  1. POST /openclaw/oauth/token
  2. GET /openclaw/ws
  3. Authorization: Bearer <accessToken> for WebSocket handshake
  4. frame signing compatible with the Daoyu plugin protocol

Recommended production behavior:

  1. bind requestId to the original uid + appId
  2. rate limit token requests and failed WS handshakes
  3. keep token TTL short enough for rotation
  4. avoid logging raw business payloads in production

Security

Production deployment requirements:

  1. use https:// and wss:// only
  2. keep requiredSignatures = true
  3. keep signatureDebug = false
  4. do not commit appSecret, accessToken, or local openclaw.json
  5. rotate bot secrets when credentials are exposed

Notes

  1. each account keeps its own runtime token cache, deviceId, and session context
  2. session isolation key includes accountId
  3. different accounts can stay online at the same time on one gateway

中文

Daoyu 是一款面向 AI 对话体验的 3D Chat 软件。

功能特性

  1. 支持 appId/appSecret BOT 鉴权
  2. 支持与 Daoyu 服务端保持持久 WebSocket 长连接
  3. 支持消息帧签名
  4. 支持多账户同时在线
  5. accountId 隔离上下文
  6. accessToken 运行时缓存,deviceId 持久化

安装

从 npm 安装:

openclaw plugins install @zytrux/daoyu

从本地压缩包安装:

openclaw plugins install ./zytrux-daoyu-0.1.17.tgz

升级

代码更新后,重新打包并重新安装:

pnpm pack
openclaw plugins install ./zytrux-daoyu-0.1.17.tgz

然后重启网关:

openclaw gateway --port 18789 --verbose

兼容性

本插件已按 OpenClaw 官方 SDK migration 方案切换为 scoped plugin SDK subpath import。

要求:

  1. 使用支持 scoped plugin SDK import 的较新版本 OpenClaw
  2. 不再使用已废弃的 openclaw/plugin-sdk/compat
  3. 插件升级后需要重新安装插件包

最小配置

{
  "channels": {
    "daoyu": {
      "enabled": true,
      "accounts": {
        "bota": {
          "enabled": true,
          "auth": {
            "appId": "bot_xxx",
            "appSecret": "sec_xxx"
          }
        }
      }
    }
  }
}

默认值:

  1. serverUrl = https://api.aidaoyu.cn
  2. wsPath = /openclaw/ws
  3. oauth.tokenPath = /openclaw/oauth/token
  4. auth.requiredSignatures = true
  5. auth.signatureDebug = false

运行时行为:

  1. deviceId 可能会回写到配置,用于保持设备身份稳定
  2. accessToken 仅在运行时内存缓存,不会回写到 openclaw.json

多账户配置示例

{
  "agents": {
    "list": [
      {
        "id": "daoyu-bota",
        "workspace": "/root/.openclaw/workspace/daoyu-bota",
        "agentDir": "/root/.openclaw/agents/daoyu-bota/agent"
      },
      {
        "id": "daoyu-botb",
        "workspace": "/root/.openclaw/workspace/daoyu-botb",
        "agentDir": "/root/.openclaw/agents/daoyu-botb/agent"
      }
    ]
  },
  "bindings": [
    {
      "agentId": "daoyu-bota",
      "match": {
        "channel": "daoyu",
        "accountId": "bota"
      }
    },
    {
      "agentId": "daoyu-botb",
      "match": {
        "channel": "daoyu",
        "accountId": "botb"
      }
    }
  ],
  "channels": {
    "daoyu": {
      "enabled": true,
      "defaultAccount": "bota",
      "accounts": {
        "bota": {
          "enabled": true,
          "auth": {
            "appId": "bot_xxx_a",
            "appSecret": "sec_xxx_a"
          }
        },
        "botb": {
          "enabled": true,
          "auth": {
            "appId": "bot_xxx_b",
            "appSecret": "sec_xxx_b"
          }
        }
      }
    }
  }
}

服务端要求

Daoyu 服务端至少需要提供:

  1. POST /openclaw/oauth/token
  2. GET /openclaw/ws
  3. WebSocket 握手时使用 Authorization: Bearer <accessToken>
  4. 与插件一致的消息帧签名协议

正式环境建议:

  1. requestId 与原始 uid + appId 做强绑定
  2. 对 token 获取和 WS 握手失败做限流
  3. 缩短 token TTL,便于密钥轮换
  4. 生产环境避免记录原始业务正文

安全要求

正式环境请遵循:

  1. 只使用 https://wss://
  2. 保持 requiredSignatures = true
  3. 保持 signatureDebug = false
  4. 不要提交 appSecretaccessToken、本地 openclaw.json
  5. 凭据泄露后及时轮换 BOT 密钥

说明

  1. 每个账户都有自己的 token 缓存、deviceId 和会话上下文
  2. 会话隔离键中包含 accountId
  3. 不同账户可以同时连接到同一个 OpenClaw gateway