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

code-helm

v0.2.11

Published

Control local Codex sessions from Discord: approve, resume, interrupt, and monitor AI coding work from your phone.

Readme

npm Bun TypeScript Discord

English · 中文

演示 · 快速开始 · 工作流 · Discord 设置 · 开发

⚡ 概览

CodeHelm 会在本机运行一个 daemon,管理本地 Codex App Server,并把一个 Discord 频道变成 Codex 会话的控制面板。你可以设置工作目录、创建或恢复会话、 审批请求、中断正在运行的回合,并在同一个 Discord thread 里跟进进度,而不用在 多个工具之间来回切换。

适合这些场景:

  • 离开终端时,用手机审批 Codex 操作
  • 让团队在 Discord 里一起看 AI coding session
  • 长任务不用一直守着 terminal,回来还能继续

你只需要:在本机启动 CodeHelm,把 Codex 连接到它打印出来的 remote 地址, 然后使用配置好的 Discord 频道。

CodeHelm 会给你:一个绑定真实 Codex 会话的 Discord thread,里面包含转录更新、 审批按钮和最终输出。

演示

工作流

  1. 启动本地 daemon:CodeHelm 连接 Discord,并在 loopback 上启动托管的 Codex App Server。
  2. 连接 Codex:使用 code-helm start 打印的地址运行 codex --remote <ws-url>
  3. 选择工作目录:在配置好的 Discord 控制频道里使用 /workdir
  4. 创建或恢复会话:使用 /session-new/session-resume
  5. 在托管 thread 里工作:继续发送消息、审批请求、查看状态、中断当前回合, 并读取最终回答。

每个托管的 Discord thread 都会绑定到一个 Codex 会话,所以你可以离开一会儿, 之后再回来继续,而不用从头开始。

快速开始

安装

前置要求

| 工具或设置 | 要求 | 检查方式 | | --------------- | -------------------------------------- | ------------------------------------------------ | | Bun | 安装在运行 CodeHelm 的机器上 | bun --version | | Codex | 安装在同一台机器上 | codex --version | | Discord bot | Bot token、目标服务器、控制频道 | Discord 设置指南 | | Discord channel | 支持 public threads 的文本或公告频道 | 检查频道权限 | | Bot intent | 开启 Message Content Intent | Discord Developer Portal |

1. 安装 CodeHelm

选择一种安装方式:

npm install -g code-helm
bun add -g code-helm

即使用 npm 安装,CodeHelm 运行时仍然需要 Bun。

2. 配置 Discord

code-helm onboard

引导式配置会询问:

  • Discord bot token
  • 目标 guild
  • 控制频道

3. 启动 CodeHelm

前台运行:

code-helm start

后台运行:

code-helm start --daemon

默认情况下,CodeHelm 会在 ws://127.0.0.1:4200 启动托管的 Codex App Server。

如果这个端口已被占用,可以为本次运行选择另一个端口:

code-helm start --port 4201
code-helm start --daemon --port 4201

4. 连接 Codex

使用 code-helm start 打印出来的地址:

codex --remote <ws-url>

如果希望 Codex 从当前 shell 目录启动:

codex -C "$(pwd)" --remote <ws-url>

5. 从 Discord 控制会话

控制频道命令:

| 命令 | 用途 | | ----------------- | ------------------------------ | | /workdir | 设置当前本地工作目录 | | /session-new | 创建新的 Codex 会话 | | /session-resume | 重新连接已有 Codex 会话 | | /session-close | 关闭当前托管会话 thread | | /session-sync | 恢复状态异常的托管会话 thread |

托管 thread 里的命令和操作:

| 命令或操作 | 用途 | | ---------------------------- | ---------------------------- | | 发送普通 thread 消息 | 继续 Codex 对话 | | 审批按钮 | 批准或拒绝 Codex 请求 | | /status | 查看当前托管会话状态 | | /interrupt | 中断当前 Codex 回合 |

命令

| 命令 | 用途 | | ------------------------------- | ----------------------------------------- | | code-helm onboard | 配置 Discord bot 和控制频道 | | code-helm start | 在前台运行 CodeHelm | | code-helm start --daemon | 在后台运行 CodeHelm | | code-helm status | 查看 daemon 状态和 Codex remote URL | | code-helm stop | 停止后台 daemon | | code-helm check | 检查是否有新的 package 版本 | | code-helm update | 更新已安装的 package | | code-helm autostart enable | 在 macOS 上启用登录后自动启动 | | code-helm autostart disable | 在 macOS 上移除登录启动项 | | code-helm uninstall | 删除本地 CodeHelm 配置、状态和数据库 | | code-helm version | 打印当前安装版本 |

开发

本地仓库开发:

bun install
bun test
bun run typecheck

常用开发命令:

bun run dev
bun run migrate