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

@hopgoldy/agent-bridge

v0.6.0

Published

IM to Agent bridge with dual-adapter architecture

Readme

agent-bridge

npm version npm unpacked size test status Node.js License: MIT

agent-bridge connects IM channel (feishu, weixin, wecom...) to local coding agent (pi, codex, opencode...) using a dual-adapter architecture.

The design stays intentionally simple and compact: no harness layer, no extra tools, no extra skills, just forwarding messages from IM to the local agent.

Current support

Client side:

| Platform | Image/file in | Image/file out | Emoji | Dynamic progress | | ------------- | ------------- | -------------- | ----- | ---------------- | | Feishu / Lark | ✅ | ✅ | ✅ | ✅ | | WeCom | ✅ | ✅ | — | ✅ | | Weixin | ✅ | ✅ | — | — |

  • Emoji = platform-native emoji / reaction capability currently used by the bridge.
  • Dynamic progress = progress shown before the final answer arrives.

Agent side:

| Agent | New | Stop | Compact | Model switching | Setup guide | | --------------- | --- | ---- | ------- | --------------- | ---------------------------------- | | PI Coding Agent | ✅ | ✅ | ✅ | ✅ | Guide | | OpenCode | ✅ | ✅ | ✅ | ✅ | Guide |

The current built-in support is intentionally small, but the architecture is designed for straightforward horizontal extension. The project will primarily maintain the integrations used in practice today, and contributions for additional client or agent adapters are welcome through forks and PRs.

Quick Start

Install the CLI:

npm install -g @hopgoldy/agent-bridge

The CLI currently provides these commands:

  • agent-bridge add
  • agent-bridge ls
  • agent-bridge remove <channel-name>
  • agent-bridge start <channel-name>

Create a channel interactively:

agent-bridge add

The prompt flow currently asks for:

  • channel name
  • select client module type
  • set client config...
  • select agent module type
  • set agent config...

Start the configured channel:

agent-bridge start <channel-name>

List configured channels:

agent-bridge ls

Remove a configured channel:

agent-bridge remove <channel-name>

Config file: ~/.config/agent-bridge/config.json

Architecture overview: docs/architecture-design.md

Command usage across IM adapters: docs/command-system.md

Development

npm install
npm run build
npm test
npm run dev -- --help

Q&A

Why not implement this directly as a pi-feishu, pi-wechat, or similar plugin?

Because plugin-style integrations for Pi or similar local agents do not provide enough control over session lifecycle, channel behavior, and local runtime isolation.

In practice, this shows up in a few ways:

  • It is hard to implement a real /new that cleanly resets the remote conversation while keeping channel-side routing predictable.
  • Connecting the same local agent cleanly to multiple channels is much harder when each integration is embedded as a plugin inside the agent runtime.
  • Different channels have very different behavior, and existing integrations are often maintained independently without a shared contract.
  • The local development and runtime experience becomes much more invasive: starting Pi for normal local work can also start multiple channel-facing plugins and inject extra tools that are unrelated to the task at hand.

agent-bridge takes the opposite approach: keep the local agent runtime focused, keep channel integration outside the agent process, and make session routing explicit at the bridge layer.

License

MIT.