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-group-suite

v1.0.1

Published

Zhin.js 群运营套件 — 群管、签到、统计、日常分析、问答(合并原 5 个插件)

Readme

@zhin.js/plugin-group-suite

群运营一体化插件(破坏性合并,替代以下独立包,不再维护):

  • @zhin.js/plugin-group-admin
  • @zhin.js/plugin-checkin
  • @zhin.js/plugin-stats
  • @zhin.js/plugin-group-daily-analysis
  • @zhin.js/plugin-teach

安装

pnpm add @zhin.js/plugin-group-suite

旧包已在 npm 标记废弃(维护者执行):

npm login   # 或 export NODE_AUTH_TOKEN=...
node scripts/deprecate-group-legacy-packages.mjs

配置(扁平 groupSuite,多数项有默认值)

plugins:
  - "@zhin.js/plugin-group-suite"
  # 可选:stats / 群分析 等自动出图;未安装则框架自动发纯文本
  - "@zhin.js/plugin-html-renderer"

database:
  dialect: sqlite
  filename: ./data/bot.db

inbox:
  enabled: true   # 群日报需要

# 可整段省略,使用默认值
groupSuite:
  noticeAdapters: [icqq]
  autoAnalysisEnabled: true
  autoAnalysisCron: "0 9 * * *"

常用可选字段(单层,无需 admin: / checkin: 等嵌套):

| 字段 | 默认 | 说明 | |------|------|------| | welcome | 欢迎新成员… | 入群欢迎语 | | recallNotify | true | 撤回提示 | | keywordReply | false | 内置关键词(建议用 teach) | | noticeAdapters | [icqq] | 处理 notice 的适配器 | | basePointsMin / basePointsMax | 10 / 30 | 签到积分 | | rankSize | 10 | 签到与统计排行人数 | | statsRetentionDays | 90 | 统计保留天数 | | analysisDays | 1 | 群分析天数 | | analysisGroups | [] | 日报白名单(空=不限制) | | analysisGroupsBlock | [] | 日报黑名单 | | teachMaxPerGroup | 200 | 每群问答上限 | | teachCooldownMs | 3000 | 问答冷却(毫秒) |

统计与群分析出图

statsmystats群分析 等命令返回 segment.html({ html }),由出站链统一处理:

  • 安装 @zhin.js/plugin-html-renderer → 自动渲染为 PNG 卡片
  • 未安装 → core 从 HTML 自动剥离纯文本(零业务侧 detect)

卡片 HTML 在 stats-card.ts / analysis-card.ts 中用 @zhin.js/satorih() 与内置组件构建,视觉对齐 test-bot 的 zt-report-card

命令

| 命令 | 模块 | |------|------| | 签到 / checkin / mypoints / rank | 签到 | | stats / stats-week / stats-rank / mystats | 统计 | | 群分析 / 分析设置 | 日报 | | teach / teach-regex / forget / teach-list | 问答(teach 问题 回答teach 问题\|答案) | | 添加关键词 … | 仅 keywordReply: true |