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

@linxiraos/pi-channels

v1.5.16

Published

IM channel adapters for Zeta (WeChat / Feishu / Telegram)

Readme

@linxiraos/pi-channels

IM channel adapters for Zeta: WeChat (ClawBot / iLink), Feishu / Lark, Telegram, Discord (official Bot API), and QQ over a user-supplied OneBot v11 bridge, plus the ChannelHost coordinator bridge, session router, workspace router, IM control, plan-approval, and plan-image helpers.

The channel runtime is embedded in zeta serve; the CLI never imports this package directly (no channel listeners exist outside a ZetaServer).

Inbound guarantees

  • channels.allowedPeers (when non-empty) plus the per-platform lists for Discord (allowedChannels/allowedUsers) and QQ (allowedGroups/allowedUsers) are checked before routing: an unauthorized peer is refused explicitly and never reaches the command router, a workspace/direct session, a bot session, or the relay. Discord and QQ are deny-by-default: an enabled channel with an empty list does not start.
  • Messages are deduped per channel by platform message id. The seen ids live in <agent dir>/run/channels-seen.json, so a retried update after a restart or reconnect is dropped instead of answered twice. Platforms that expose no message id (some WeChat payloads) skip dedupe rather than guessing.
  • Replies are correlated with the delivered message via the session's IRC wake-turn observer (ReplyCorrelator): a turn answers the chat whose message it was started for, and Studio/attach turns on the same session never consume an IM reply slot.

Feishu / Lark inbound media

Text, image, and file events reach the same inbound session route. Image and file resources are fetched with the bot's SDK client and streamed into the instance's channels-inbox/<instance>/<message-id> directory. The shared attachment byte cap is 100 MiB; a failed or oversized download reaches the agent as an unavailable attachment, without a partial file or a fabricated download URL. Missing resource keys and disabled storage are also explicit attachment failures. Other Feishu message types are rejected with a warning. This does not add outbound file support or change secret storage (ADR-0030). The additive authenticated-source API is proposed in ADR-0065.