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

@surlymochan/codexclaw

v0.1.1

Published

Feishu WebSocket channel gateway for local Codex CLI sessions

Readme

CodexClaw

CodexClaw 是一个面向飞书的本地 Codex 助手网关。

它把飞书会话连接到本地 codex CLI 线程,并把对话、记忆和后台任务都保存在本地。

项目特点

  • 每个飞书会话对应一个 Codex thread
  • 默认纯文本,Markdown 会自动走飞书 JSON 2.0 模板卡
  • Markdown 卡片会把首个 # 提成卡片标题,正文原样进入 markdown 组件
  • session、去重、记忆、story 和定时任务都保存在本地
  • 从仓库根目录的本地文件加载 guidance
  • 支持 heartbeat 和 cron 后台任务

环境要求

  • Node.js 22+
  • 已开启 WebSocket 事件推送的飞书应用
  • 本地可用的 codex CLI

快速开始

cp .env.example .env
npm install
npm run init:local-guidance
npm run dev

完整启动流程见 docs/quickstart.md。

如果你想用一条命令把本地准备和常驻服务一起装好,可以直接运行:

npx -y @surlymochan/codexclaw bootstrap --service

一行部署

如果你只想先把本地环境和引导文件准备好,可以运行:

npx -y @surlymochan/codexclaw bootstrap

如果你想连常驻服务一起安装,就加上 --service。

常驻运行

常驻运行可使用 macOS launchd:

npm run service:install
npm run service:restart
npm run service:uninstall

npm run selfcheck 会检查飞书凭据和本地 codex。

本地 Guidance

运行时会读取仓库根目录下的本地文件。这些文件已加入 gitignore。 通用模板在 docs/templates,本地引导说明在 docs/local-guidance.md。

Markdown 模板卡

助手回复中的 Markdown 默认使用飞书 JSON 2.0 卡片渲染:

  • # 会被提取为卡片标题
  • body.elements 里使用官方 markdown 组件
  • 常见 Markdown 语法直接保留给飞书渲染
  • 这条路径用于所有 Markdown 回复,不区分简报、日志或说明

文档

命令

  • /reset 重置当前 Codex session
  • /status 查看 session 绑定状态
  • /diag 查看运行诊断信息
  • /new 新建 thread 并重新加载 guidance
  • /compact 请求压缩并重新注入 guidance