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-chime

v0.1.6

Published

A scheduled message plugin that supports different broadcast timing strategies for different groups and is natively compatible with multi-bot-controller.

Readme

koishi-plugin-chime

npm

一个用于定时发送广播消息的 Koishi 插件。支持五位 cron 表达式定时、多 Bot 与多目标、模板变量、本地或远程资源、以及 anti-ban 发送延迟。

功能特性

  • 使用五位 cron 表达式,不依赖 koishi-plugin-cron
  • 内置安全分段调度器,避免长周期任务触发 setTimeout() 溢出。
  • 一条广播可以同时发送到多个 Bot、群聊或私聊目标。
  • 消息模板支持变量、<at> 标签、图片和文件。

配置

| 字段 | 说明 | | --- | --- | | cron | 五位 cron 表达式:分钟 小时 日期 月份 星期,例如 0 12 6 6 *。 | | targets | 广播发送目标表格。 | | template | 消息模板。 |

cronExpression 和结构化 schedule 已不再支持。旧配置会被跳过,并输出迁移警告。

Cron 元组示例

broadcasts:
  - name: 年度提醒
    cron: '0 12 6 6 *'
    targets: []
    template: '大家好!现在是 {time}。'
  • 0 12 6 6 *:每年 6 月 6 日 12:00。
  • */5 * * * *:每 5 分钟。
  • 0 9-18/2 * * 1-5:工作日 9 到 18 点之间每 2 小时。

支持的字段语法:*、数字、逗号列表、范围和步长,例如 */51,151-51-10/2

日期和星期在两者都受限时使用常见 cron 的 OR 语义。星期支持 0..7,其中 07 都表示周日。

插件会在内部解析 cron,并使用分段定时器,因此长周期任务不会导致 Node.js setTimeout() 溢出。