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

@gavin7758521/feishu-bridge

v0.1.0

Published

Feishu MCP server and CLI helpers for Codex, Claude, and other agent clients.

Readme

Feishu Bridge

Feishu MCP server and CLI helpers for Codex, Claude, and other agent clients.

The current architecture is:

Codex / Claude / MCP client -> Feishu Bridge MCP -> Feishu OpenAPI

This project does not run a Feishu long-connection listener. Agents call Feishu tools when they need to read or send messages.

Setup

Install from npm:

npm install -g @gavin7758521/feishu-bridge

Or install from a git checkout:

npm install
cp env.example .env

Fill in a private env file:

FEISHU_APP_ID=cli_xxx
FEISHU_APP_SECRET=xxx
FEISHU_TARGET_CHAT_ID=oc_xxx
FEISHU_BOT_OPEN_ID=ou_xxx

Required Feishu permissions depend on what you use:

  • Send messages: message send permission, such as im:message:send_as_bot.
  • Read group history: im:message.group_msg.
  • Resolve group member names for mentions: chat member read permission.

Keep real credentials outside version control. Commit env.example, not .env.

MCP

Start the MCP server from a global npm install:

FEISHU_BRIDGE_ENV_FILE=/path/to/.env feishu-bridge-mcp

The feishu-bridge command is an alias for the same MCP server:

FEISHU_BRIDGE_ENV_FILE=/path/to/.env feishu-bridge

Add it to Codex:

codex mcp add feishu-bridge --env FEISHU_BRIDGE_ENV_FILE=/path/to/.env -- feishu-bridge-mcp

For this machine, the existing private config can be reused:

codex mcp add feishu-bridge --env FEISHU_BRIDGE_ENV_FILE=/home/finnchart/personal/feishu-bridge/.env -- feishu-bridge-mcp

See docs/mcp.md for Codex and Claude configuration examples.

MCP Tools

  • feishu_read_messages: read recent messages from the configured group or an explicit chat_id.
  • feishu_send_text: send text to the configured group or an explicit chat_id.
  • feishu_find_member: resolve one group member by visible name or member id.
  • feishu_send_text_at_member: resolve one group member by name, mention them, and send text.

Message-sending tools are side-effecting. Configure your MCP client to require approval before sending.

CLI

Read recent messages:

npm run read -- --hours 24 --limit 20
npm run read -- --days 7 --json
feishu-bridge-read --hours 24 --limit 20

Send a message:

npm run send -- --text "message"
feishu-bridge-send --text "message"

Mention a member:

npm run send -- --at-open-id ou_xxx --at-label "Name" --text "message"
npm run send -- --at-name "Name" --text "message"
feishu-bridge-send --at-name "Name" --text "message"

The CLI helpers load .env from the current working directory by default. Override with:

FEISHU_BRIDGE_ENV_FILE=/path/to/feishu-bridge.env

Open Source Hygiene

  • Commit source files, env.example, and documentation.
  • Do not commit .env, .env.*, real app secrets, tenant tokens, or chat transcripts.
  • Keep deployment-specific chat IDs, paths, and credentials in private configuration.
  • Run npm pack --dry-run before publishing to confirm the package contents.
  • Read SECURITY.md before sharing logs or opening public issues.

Development

npm run check
npm test
npm audit --omit=dev
npm pack --dry-run

See docs/release.md for versioning and npm release policy.