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

@oakzhong/dsh-off-duty

v1.0.7

Published

A fun off-work reminder with countdown, custom rotating messages, slide-in animation and a check-in calendar.

Readme

下班铃(Off-duty bell)

一个有趣的定时下班提醒插件。打开左侧「下班铃」入口,配置好时间和文案,到点就会弹出提醒,附带从左到右的滑入动画、文案轮播、提示音与打卡日历。纯 Client 插件,配置与打卡记录保存在浏览器 localStorage。

插件信息

| 字段 | 值 | | --- | --- | | 包名 | @oakzhong/dsh-off-duty | | 版本 | 1.0.6 | | 入口 | index.js(Host,空实现)· client.js(Client) | | 类型 | DSH bundle 插件,ES 模块("type": "module"、"private": false、MIT) | | 侧边栏入口 | 下班铃(左侧) |

功能

1. 时间与触发

  • 设置下班时间(HH:mm),只要插件启用就会全局监控,到点自动弹窗提醒——无需打开面板。当天已提醒/已打卡则不再重复。
  • 可勾选「仅工作日提醒」(周一至周五,周末静默)。
  • 可一键启用/禁用提醒。
  • 同一天只触发一次;打卡后当天不再提醒。
  • 「再干一会」按钮延后 15 分钟再提醒。

2. 自定义文案与轮播

  • 多行文本框任意编辑提醒文案(每行一条)。
  • 到点后按顺序轮播,间隔秒数可调(1–60 秒)。
  • 内置 5 条默认文案(含 "Are you ready? Go go go! 下班?" / "Are you ok?" / "今天也辛苦了,给你加个大鸡腿 🍗" 等)。

3. 动画与提醒方式

  • 动画效果:从左到右滑入(slide)/ 淡入淡出(fade)/ 打字机(typewriter)。
  • 提醒方式:右上角横幅(banner)/ 全屏遮罩(overlay)。
  • 提示音:6 种 Web Audio 合成音效可选(和弦 / 钟声 / 叮咚 / 马林巴 / 电子音 / 关闭),无需外部音频文件,可点「试听」预览。
  • 打卡时撒花粒子动画。

4. 打卡与数据

  • 「打卡下班」记录当天打卡,撒花庆祝。
  • 补打:忘记打卡时,在打卡日历上点过去未打卡的日期即可补打(需确认)。每条打卡(含补打)都记录具体时间,日历悬停可查看;补打记录与正常打卡分开存储、样式不同——补打格为橙色虚线边框并带「补」角标,正常打卡为实心渐变。补打同样计入连续天数、本月与累计统计。
  • 打卡日历(当月视图,已打卡日期高亮,今天描边)。
  • 统计:连续打卡天数、本月打卡数、累计打卡数。

5. 预览与测试

  • 面板提供「测试提醒」/「预览效果」按钮,立即查看动画,无需等到点。
  • 设置修改后点「保存设置」持久化。

Host API

无(Host 半片为空实现),全部逻辑在 Client 端。

目录结构

dsh-off-duty/
├── index.js              # Host 半片:空实现
├── client.js             # Client 半片:面板、定时器、动画、音效、打卡
├── cordis.patch.yml      # DSH bundle patch
├── icon.svg / icon.png   # 插件图标
├── locale/               # zh.json / en.json 元数据
├── package.json
├── README.md             # 本文档(英文)
└── README.zh.md          # 中文文档

安装与使用

  1. 将本 bundle 安装到目标 DSH profile 并刷新 Harness Web UI。
  2. 左侧打开「下班铃」。
  3. 设置下班时间、编辑文案、选动画与提醒方式,点「保存设置」。
  4. 到点会自动弹出提醒;也可点「测试提醒」立即预览。
  5. 每天点「打卡下班」积累连续记录。

发布(GitHub Actions)

推送版本 tag(如 v1.0.6)时自动读取 package.json 版本,若 npm 上不存在则发布到 npm(npm publish --access public)并用该 tag 创建 GitHub Release(自动生成 Release Notes,附带 npm pack 生成的 .tgz 离线安装包)。已发布版本跳过,避免重复。需在仓库 Secrets 配置 NPM_TOKEN;GITHUB_TOKEN 由 Actions 自动提供。