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

@yyhhkya/koishi-plugin-napcat-status

v0.1.0

Published

在onebot掉线时发送通知

Downloads

463

Readme

@yyhhkya/koishi-plugin-napcat-status

npm

它做什么

  • 定时检查所有 platform === 'onebot' 的账号
  • 异常时发送告警(支持邮件、企业微信,或两者同时)
  • 支持启动后立即检查
  • 支持告警冷却,避免短时间重复提醒

什么算异常

  • 无法获取群列表
  • Koishi 连接状态异常
  • OneBot 返回 online === false

配置

monitor

  • enable: 是否开启巡检
  • checkOnStartup: 启动后是否立即检查一次
  • checkInterval: 巡检间隔(秒)
  • reminderCooldown: 相同异常提醒冷却时间(秒)

mail

  • enable: 是否启用邮件
  • host: SMTP 地址
  • port: SMTP 端口
  • secure: 是否启用 SSL/TLS
  • user: SMTP 用户名(可空)
  • pass: SMTP 密码或授权码
  • from: 发件人邮箱
  • to: 收件人邮箱列表
  • subject: 邮件主题

wecom

  • enable: 是否启用企业微信机器人
  • webhook: 企业微信机器人 Webhook

最小示例

plugins:
  @yyhhkya/napcat-status:
    monitor:
      enable: true
      checkOnStartup: true
      checkInterval: 60
      reminderCooldown: 600
    wecom:
      enable: true
      webhook: "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

提醒规则

  • 存在异常就会触发告警
  • 同一异常在冷却时间内不重复发送
  • 异常内容变化会立即重新发送
  • 未启用可用通道时不会发送告警