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-daily-analysis

v0.0.9

Published

Group daily analysis plugin for Zhin.js — stats, LLM topics/quotes/user titles, reuse unified inbox

Downloads

894

Readme

@zhin.js/plugin-group-daily-analysis

群日常分析插件:基于 zhin 内置收件箱(unified_inbox_message)统计群消息、参与人数、活跃时段,可选 LLM 话题/金句/用户画像,支持文本或图片报告与定时推送。

依赖

  • 收件箱:需在主配置中启用 inbox.enableddatabase,否则无法读取历史消息。
  • 可选:配置 ai 服务后可启用话题/金句/用户画像的 LLM 分析。
  • 可选:安装 @zhin.js/plugin-html-renderer 且配置 outputFormat: "image" 时可输出图片报告。

配置

zhin.config.yml 中:

database: { dialect: sqlite, filename: ./data/db.sqlite }
inbox:
  enabled: true

plugins:
  - "@zhin.js/plugin-group-daily-analysis"

group-daily-analysis:
  analysisDays: 1              # 默认分析最近天数
  autoAnalysisEnabled: false   # 是否定时自动分析
  autoAnalysisCron: "0 9 * * *"  # 每日 9 点
  enabledGroups: []           # 群 ID 白名单(空表示不限制)
  disabledGroups: []           # 群 ID 黑名单
  outputFormat: "text"         # text | image(image 需 html-renderer)
  maxMessagesPerAnalysis: 500 # 单次分析最多使用的消息条数

命令

| 命令 | 说明 | |------|------| | /群分析 [天数] | 分析本群近期消息(默认 1 天),输出统计与可选 LLM 摘要 | | /分析设置 enable | 为本群启用日常分析(用于定时任务) | | /分析设置 disable | 为本群关闭日常分析 | | /分析设置 status | 查看本群是否已启用分析 |

功能说明

  • 基础统计:消息总数、参与人数、总字数、最活跃时段、每小时消息分布。
  • LLM 分析(需配置 ai):热门话题、金句筛选、用户称号/画像(灵感见下)。
  • 报告格式outputFormat: "text" 为纯文本;"image" 时尝试用 html-renderer 出图,失败则回退文本。
  • 定时任务autoAnalysisEnabled: true 时按 autoAnalysisCron 执行;仅对「已启用分析」的群(分析设置 enable 或位于白名单)推送。

灵感与参考

本插件的功能与设计参考了以下项目,在此致谢:

在源码中,与上述参考相关的逻辑已用注释标明「灵感来自 astrbot_plugin_qq_group_daily_analysis」。

License

MIT