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

@openhermit/channel-wechat

v0.1.1

Published

OpenHermit channel plugin for personal WeChat (Weixin) via Tencent iLink. Text-only v0.

Readme

WeChat Channel Adapter

@openhermit/channel-wechat connects a personal WeChat (Weixin) bot to a gateway-managed OpenHermit agent over Tencent's iLink HTTP protocol.

v0 scope

  • Text inbound and outbound only — image / voice / file / video items are ignored.
  • QR-link wizard (ChannelSetup) returns the QR URL as a plain string; the admin UI renders it with its own QR-code library.
  • No typing indicators, no media upload, no multi-account juggling.

Loading the plugin

This package is not bundled into the gateway by default. Add it to the gateway config:

{
  "channelPackages": ["@openhermit/channel-wechat"]
}

On gateway boot the plugin loader picks it up via dynamic import and registers the wechat channel manifest with the runtime registry as an external origin — so unlike telegram / slack / discord, no row is auto-seeded into agent_channels on agent create. Owners add WeChat on demand from the UI's "Add channel" picker.

Linking a bot

  1. In /manage/channels (web) or /admin/channels (gateway admin), click Add channel → pick WeChat.
  2. The wizard renders a QR code (qrText carries the URL).
  3. Open WeChat on your phone, scan the QR, confirm on phone. On confirmation the gateway persists the agent_channels row and the channel comes online.

Stored config

After setup, the agent_channels.config row carries:

| key | value | |-----------------|---------------------------------------------| | bot_token | iLink bot token | | base_url | IDC-redirected per-bot base URL | | ilink_bot_id | server-issued bot id (diagnostics) | | ilink_user_id | scanner's iLink user id (optional) | | bot_agent | optional override for the User-Agent-style header |

iLink-App-Id

Tencent's iLink protocol carries an iLink-App-Id header read from this package's own package.json (ilink_appid). Operators running their own iLink app should either:

  • patch the ilink_appid field in package.json, or
  • set the OPENHERMIT_WECHAT_APP_ID env var on the gateway process.

The default empty value works against Tencent's public iLink endpoints for testing only.