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

opencode-feishu-bridge

v1.0.3

Published

Feishu bridge for OpenCode

Readme

opencode-feishu-bridge

opencode-feishu-bridge 是一个连接飞书与 OpenCode 的轻量级桥接服务。它通过飞书长连接接收消息,转发给 OpenCode 处理,并将结果回传到会话中。

运行方式

方式一:全局安装

npm i -g opencode-feishu-bridge

启动服务:

ofbs

启动 OpenCode 并连接到服务:

# ofbc <url>
ofbc

方式二:直接使用 npx(无需安装)

npx --package opencode-feishu-bridge ofbs

启动 OpenCode 并连接到服务:

# npx --package opencode-feishu-bridge ofbc <url>
npx --package opencode-feishu-bridge ofbc

看到 飞书长连接已启动,等待消息... 后:

  1. 配置 allowedOpenId 后,只有白名单内的用户可以使用机器人;未授权用户会收到提示。
  2. allowedOpenId 为空,则允许所有用户接入(启动时会打印安全告警日志)。
  3. 发送消息后,机器人会返回 OpenCode 的回答。
  4. 如需清空上下文,发送 /reset/new;如需新会话切到指定目录,发送 /new <工作目录>
  5. 如需停止当前任务并清空当前用户队列,发送 /stop
  6. 如需查看可恢复会话,发送 /session;如需切换到某个会话,发送 /session <编号|session_id>
  7. 如需查看已配置 provider 的可用模型,发送 /models
  8. 如需查看当前会话最近使用模型,发送 /model;如需切换模型,发送 /model <model_id>

飞书后台最小配置

  • 启用机器人能力
  • 开启事件订阅(长连接模式)
  • 订阅 接收消息 v2.0im.message.receive_v1)和 消息撤回事件im.message.recalled_v1
  • 授权机器人可读取并发送消息