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

@zhin.js/plugin-checkin

v0.0.0

Published

Daily check-in & points plugin for Zhin.js — gamified engagement with streaks, ranks, and rewards

Readme

@zhin.js/plugin-checkin

签到积分插件 —— 每日签到、积分累积、连续签到奖励、排行榜。

安装

npm install @zhin.js/plugin-checkin

配置

zhin.config.yml 中添加:

plugins:
  - "@zhin.js/plugin-checkin"
checkin:
  basePoints: [10, 30]  # 基础积分范围(随机)
  streakBonus: 5         # 连续签到每天额外积分
  streakCap: 50          # 连续奖励上限
  rankSize: 10           # 排行榜显示人数

命令

| 命令 | 说明 | |------|------| | checkin | 每日签到,获得随机积分 | | mypoints | 查看个人积分、签到天数、连续天数 | | rank | 查看积分排行榜 |

积分规则

  • 每日签到获得 10~30 基础积分(可配置)
  • 连续签到每多一天,额外 +5 积分(上限 50)
  • 中断签到后连续天数重置

AI 工具

| 工具名 | 说明 | |--------|------| | checkin_query | 查询用户积分信息或系统摘要 | | checkin_rank | 获取排行榜数据 |

数据库

依赖 Zhin 数据库服务,自动创建 checkin_records 表:

| 字段 | 类型 | 说明 | |------|------|------| | user_id | text | 用户 ID | | user_name | text | 用户名 | | points | integer | 当前积分 | | total_checkins | integer | 累计签到天数 | | streak | integer | 当前连续天数 | | max_streak | integer | 历史最长连续 | | last_checkin | text | 上次签到日期 | | context_type | text | 上下文类型 (global/group) | | context_id | text | 群 ID |

许可

MIT