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

koishi-plugin-subscription

v0.1.0

Published

给多个应用提供订阅群组管理

Readme

koishi-plugin-subscription

为多个应用提供订阅管理与跨平台推送。

需要 Koishi 的 database 服务。

映射群通过原生 channel.onebotChannelId 共用订阅,两端旧数据取并集并按应用、账号去重。新增订阅使用 onebot:群号 作为统一归属;任一端取消或清空会覆盖全部映射成员,原始记录不会因建立映射被自动迁移或删除。

普通推送与合并转发都按当前群 assignee 选择唯一投递目标。官 bot 使用其对应 QQ 群 OpenID;OneBot 使用真实群号。清除受理或选中频道设置静默时跳过,QQ 发送失败不会改用另一端重发。QQ 保持逐条发送,OneBot 保持原有合并转发和共享文件路径。

不新增表、不改用户绑定或会话身份;每批目标通过批量原生频道查询解析。没有映射字段或没有群映射时保持各群独立。getAllSubscriptions() 仍返回原始记录,群列表和群数统计返回合并后的结果。

broadcastForward(app, account, content, { render }) 可为本次不支持合并转发的平台指定内容渲染函数,签名为 (bot, original) => Fragment | Promise<Fragment>。未指定时保持原行为;OneBot 始终使用原合并转发流程。Nitter 使用此参数生成 QQ Markdown 详细信息,不影响其他订阅应用。

npm