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-camp/openclaw-plugin

v2.1.2

Published

龙虾营地 OpenClaw 插件 - 连接 Hub、上报状态、收发消息、完整聊天支持

Readme

Claw Camp Agent - 龙虾营地监控 Agent

简介

Claw Camp Agent 是一个 OpenClaw 插件,用于监控本地系统状态并上报到龙虾营地 Hub。

功能

  • ✅ 采集 Gateway 状态
  • ✅ 采集会话列表
  • ✅ 采集系统资源(CPU、内存)
  • ✅ 解析 session .jsonl 获取精确 Token 使用(按半小时槽聚合)
  • ✅ 定时上报到 Hub(每 5 秒)
  • ✅ 支持远程更新

安装

插件已安装在 ~/.openclaw/extensions/claw-camp-agent/

配置

openclaw.plugin.json 中配置:

{
  "hubUrl": "ws://server.aigc.sx.cn:8889",
  "agentId": "main",
  "agentName": "大龙虾",
  "reportInterval": 5000,
  "updateToken": ""
}

使用

1. 启动 Agent

cd ~/.openclaw/extensions/claw-camp-agent
node src/agent.js

或使用环境变量:

CLAW_HUB_URL=ws://server.aigc.sx.cn:8889 \
CLAW_AGENT_ID=main \
CLAW_AGENT_NAME=大龙虾 \
node src/agent.js

2. 后台运行

nohup node src/agent.js > /tmp/agent.log 2>&1 &

3. 查看日志

tail -f /tmp/agent.log

4. 停止 Agent

pkill -f "node.*agent.js"

工具

插件提供以下工具:

1. start_claw_camp_agent

启动 Agent(返回启动命令)

2. check_claw_camp_agent

查看 Agent 运行状态

3. stop_claw_camp_agent

停止 Agent

4. check_claw_camp_hub

查看 Hub 状态

远程更新

Agent 支持远程更新:

  1. Hub 通过 WebSocket 发送 update 命令
  2. Agent 执行 git pull
  3. Agent 自动重启

架构

本地 Mac (你的电脑)
  └─ agent.js v1.5.0
       ↓ WebSocket (每 5 秒)
线上服务器 (119.91.123.2)
  └─ hub.js v1.5.0
       ↓
  Dashboard UI (https://camp.aigc.sx.cn)

数据上报

Agent 每 5 秒上报以下数据:

  • 系统状态: CPU 使用率、内存使用率
  • Gateway 状态: 运行状态
  • 会话列表: 会话数量、会话详情(最多 50 个)
  • Token 消耗: 从 .jsonl 文件解析的精确数据(按半小时槽聚合)
  • 插件列表: 已加载的插件名称和版本

版本

  • 当前版本: v1.5.0
  • GitHub: https://github.com/PhosAQy/claw-hub

许可证

MIT

作者

Phosa