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

zlab-weixin-bridge

v1.0.3

Published

WeChat bot bridge for pi — QR login, message polling, auto-reply via WeChat ilink API

Readme

zlab-weixin-bridge 🤖💬

WeChat bot bridge for pi — QR login, message polling, and auto-reply via the WeChat ilink API.

Features

  • QR code login — scan with your phone, no password
  • Message polling — receive WeChat messages in real-time
  • Auto-reply — pi auto-replies to WeChat messages through the normal conversation flow
  • Active push — send WeChat messages proactively via tools
  • Contact persistence — auto-save contacts who message you
  • Session continuity — context tokens preserved across restarts
  • Token caching — no need to re-scan every time

Install

pi install npm:zlab-weixin-bridge

Or test without installing:

pi -e npm:zlab-weixin-bridge

Usage

1. Login

Run the login command in pi:

/weixin-login

If it's the first time, you'll get a URL. Open it in your browser, scan the QR code with your phone's WeChat, and confirm.

On subsequent runs, cached tokens are reused automatically — no re-scan needed.

2. Send messages proactively

The LLM can use the weixin_send tool to push messages to anyone who has messaged the bot:

to: "[email protected]" (user ID, obtained automatically when they message you)

3. Manage contacts

| Command / Tool | Description | |---|---| | weixin_contacts | List all known contacts and their IDs | | weixin_alias | Set a nickname for a contact | | weixin_status | Check connection status |

Tools registered

| Tool | Description | |---|---| | weixin_login | QR code login (or cached token recovery) | | weixin_send | Send text message to a WeChat user | | weixin_status | Check connection status | | weixin_contacts | List known contacts | | weixin_alias | Set alias for a contact |

Commands registered

| Command | Description | |---|---| | /weixin-login | Login or recover session | | /weixin-status | Quick status check |

How it works

  1. The extension logs into your personal WeChat account via ilink API (QR scan)
  2. It polls for new messages in the background
  3. Incoming messages are injected into pi as user messages
  4. pi's response is automatically sent back via WeChat
  5. Active messages can be sent via weixin_send

Security

  • The extension runs with your full system permissions
  • Bot tokens are cached locally in .pi/weixin/
  • Only message text is processed; media messages are ignored (for now)
  • You can only message people who have messaged you first (WeChat API limitation)

Limitations

  • ❌ Cannot add friends or search contacts
  • ❌ Cannot join or monitor group chats
  • ❌ Only works for 1-on-1 messaging
  • ❌ Media/file messages are not supported yet

License

MIT