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

@huo15/clawbutler-oauth

v1.4.0

Published

龙虾管家企业版鉴权插件 — 手机号注册/登录 + JWT + per-user 会话隔离 + 智能体分配 + 管理后台

Readme

@huo15/clawbutler-oauth

龙虾管家企业版鉴权插件 — 手机号注册/登录 + JWT + per-user 会话隔离 + 管理后台

安装

npm install @huo15/clawbutler-oauth

在 OpenClaw 网关配置中启用:

plugins:
  load:
    paths:
      - node_modules/@huo15/clawbutler-oauth/dist/index.js
  entries:
    clawbutler-oauth:
      enabled: true
      config: {}

环境变量

| 变量 | 必填 | 说明 | |---|---|---| | HUIHUO_JWT_SECRET | 是 | JWT 签名密钥(固定值,避免重启后 token 失效) | | HUIHUO_JWT_TTL | 否 | JWT 有效期秒数(默认 604800 = 7 天) | | HUIHUO_SMS_AK_ID | 否 | 阿里云 AccessKey ID(不填则 dev 模式) | | HUIHUO_SMS_AK_SECRET | 否 | 阿里云 AccessKey Secret | | HUIHUO_SMS_SIGN_NAME | 否 | 短信签名(默认:逸寻智库) | | HUIHUO_SMS_TEMPLATE_CODE | 否 | 短信模板 CODE(不填则 dev 模式,验证码写日志) | | HUIHUO_SMS_DEV | 否 | "1" = 强制 dev 模式 | | HUIHUO_ADMIN_PHONE | 否 | 管理员手机号 |

API 端点

| 路径 | 方法 | 说明 | |---|---|---| | /plugins/huihuo/auth/send-code | POST | 发送验证码 | | /plugins/huihuo/auth/register | POST | 注册 | | /plugins/huihuo/auth/login | POST | 登录 | | /plugins/huihuo/auth/me | GET | 当前用户信息 | | /plugins/huihuo/auth/gateway-token | GET | JWT 换网关 token | | /plugins/huihuo/auth/verify | GET | nginx auth_request 校验 | | /plugins/huihuo/auth/my-agents | GET | 获取当前用户可用的智能体 ID 列表 | | /plugins/huihuo/admin | GET | 管理后台页面 | | /plugins/huihuo/admin/users | GET | 用户列表 JSON | | /plugins/huihuo/admin/agents | GET | 网关所有智能体 ID(管理员) | | /plugins/huihuo/admin/bindings | GET | 所有用户-智能体绑定(管理员) | | /plugins/huihuo/admin/bindings | POST | 设置用户-智能体绑定(管理员) |

架构

src/
  index.ts          插件入口 (definePluginEntry)
  config.ts         环境变量配置
  runtime.ts        OpenClaw runtime 注入
  auth/
    jwt.ts          JWT 签发/验证
    password.ts     bcrypt 密码哈希
    sms.ts          阿里云短信
    routes.ts       鉴权 HTTP 路由
  admin/
    store.ts        用户存储 (JSON 文件)
    routes.ts       管理后台路由
  guard/
    agent.ts        用户隔离 agent 创建
    rpc-guard.ts    RPC 会话隔离

构建

npm run build

发布

npm publish --access public

License

MIT — 青岛火一五信息科技有限公司