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-bilibili-push

v1.0.0

Published

Bilibili UP主动态与直播推送插件

Readme

koishi-plugin-bilibili-push

Bilibili UP 主动态、直播、粉丝数变化推送插件。

✨ 功能

  • 📢 动态推送:新动态自动推送(图文/视频/转发等)
  • 🔴 直播推送:开播/下播提醒
  • 📊 粉丝推送
    • 🎯 里程碑提醒(10万/100万等)
    • 📈 粉丝增长阈值推送
    • 📉 掉粉提醒
    • 📅 每日粉丝报告
  • 🎨 完全可定制推送模板
  • 🔍 动态类型过滤
  • 🍪 支持 Cookie 提高 API 限额

📦 安装

```bash npm install koishi-plugin-bilibili-push ```

🚀 指令

订阅管理

| 指令 | 说明 | |------|------| | bili.add <uid> | 订阅全部(动态+直播+粉丝) | | bili.add <uid> -d | 仅订阅动态 | | bili.add <uid> -l | 仅订阅直播 | | bili.add <uid> -f | 仅订阅粉丝变化 | | bili.remove <uid> | 取消订阅 | | bili.toggle <uid> dynamic\|live\|fans | 切换订阅类型 | | bili.list | 查看订阅列表 |

查询

| 指令 | 说明 | |------|------| | bili.info <uid> | 查询 UP 主信息 | | bili.fans <uid> -d 7 | 查看最近 N 天粉丝变化 |

管理员

| 指令 | 说明 | |------|------| | bili.preview <type> | 预览模板 | | bili.check | 手动检查 | | bili.report | 手动触发每日报告 |

bili.preview 的 type 可选: dynamic / live / offline / milestone / fans-up / fans-down / report

⚙️ 配置

基础

  • interval - 动态/直播检查间隔(分钟),默认 2
  • fansInterval - 粉丝检查间隔(分钟),默认 30
  • cookie - B 站 Cookie

粉丝监控

  • fansMilestones - 里程碑数组,默认 [1万, 5万, 10万, 50万, 100万, 500万, 1000万]
  • fansThreshold - 粉丝增长阈值,默认 1000(0=关闭)
  • fansLossAlert - 是否开启掉粉提醒
  • fansLossThreshold - 掉粉阈值,默认 100
  • dailyReport - 是否开启每日报告
  • dailyReportTime - 报告时间,默认 20:00

模板变量

粉丝里程碑{name} {uid} {milestone} {fans} {delta} {url}

粉丝变化{name} {uid} {fans} {delta} {time} {url}

每日报告{name} {uid} {fans} {delta} {gained} {lost} {time} {url}

📜 License

MIT