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 🙏

© 2025 – Pkg Stats / Ryan Hefner

koishi-plugin-sleep

v1.7.0

Published

提供精致睡眠功能,可在指定时间段内自我禁言,适合睡觉打卡。

Readme

koishi-plugin-sleep

npm

提供精致睡眠功能,可在指定时间段内自我禁言,适合睡觉打卡。

功能简介

  • 精致睡眠:在指定的时间段内,用户可以使用指令自我禁言。禁言可以持续一个固定的时长,或者持续到第二天设定的具体时间。这非常适合用于睡觉打卡,避免夜间消息打扰。

指令说明

  • sleep精致睡眠
    • 功能:进入精致睡眠模式,禁言自己。
    • 用法:直接发送指令即可。插件会根据配置计算禁言时长,并将你禁言。只有在配置的特定时间段内(默认为晚上20点到第二天早上8点)该指令才有效。

配置项

| 配置项 | 说明 | 默认值 | |---|---|---| | sleepTime | 开启时段精致睡眠指令可用的时间范围,格式为 HH-HH。如果结束时间小于开始时间,则代表跨天。 | 20-8 | | sleepSetting | 睡眠模式设置禁言的计算方式,可以是固定时长或截止时间。- 固定时长 (数字):设置一个具体的 小时数。- 截止时间 (字符串):设置一个 HH:MM 格式的时间点。 | 808:00 | | sleepMsg | 睡眠提示成功触发精致睡眠后,从列表中随机发送一条消息。 | ['晚安,做个好梦~', '休息一下吧,明天见!', '夜深了,该睡觉了哦~', '睡个好觉,明天元气满满!', '已开启精致睡眠,请勿打扰~'] |

消息模板占位符

你可以在 sleepMsg 的消息模板中使用以下占位符:

| 占位符 | 描述 | |---|---| | {at} | @触发指令的用户 | | {username} | 触发指令的用户名 | | {duration} | 格式化后的禁言时长(例如:8小时, 7小时30分钟) |