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

koishi-plugin-chat-summarizer

v1.19.6

Published

Koishi聊天记录收集和上传插件

Readme

koishi-plugin-chat-summarizer

npm version License: MIT

Koishi 聊天记录收集和上传插件

主要功能

  • 自动收集群聊消息并保存到本地
  • 自动上传图片、文件到 S3 存储
  • 支持多种格式和时间范围的聊天记录导出
  • 支持AI总结功能(文本/图片格式)
  • 定时任务和数据库缓存管理
  • 支持 AWS S3、MinIO 等 S3 兼容存储

📚 API

命令

  • cs.status: 查看插件状态
  • cs.geturl: 获取回复消息中图片/文件的S3链接(仅管理员可用)
    • 使用方法:回复包含图片或文件的消息,然后发送 cs.geturl 命令
    • 权限要求:需要在配置中的 admin.adminIds 列表中
    • ⚠️ 限制:只能查询最近24小时内的消息(数据库缓存期限)
  • cs.export [群组] [时间范围] [格式] [-t 消息类型] [-s]: 导出指定时间范围的聊天记录(仅管理员可用)
    • 时间范围:预设(today/yesterday/last7days等)或具体日期(2024-01-01)
    • 格式:json(默认)、txt、csv
    • 可选参数:-t 过滤消息类型,-s 生成AI总结
  • cs.summary.check [天数]: 检查缺失的AI总结(仅管理员可用)
    • 默认检查最近7天,可指定1-365天
    • 显示哪些日期的群组缺失AI总结
  • cs.summary.retry <日期> [群组ID]: 重新生成指定日期的AI总结(仅管理员可用)
    • 支持重新生成单个群组或该日期所有群组的总结
    • 自动清除旧的总结记录并重新生成
  • cs.summary.get <日期> [群组ID]: 获取指定日期的AI总结图片(仅管理员可用)
    • 支持预设日期(today、yesterday等)和具体日期格式
    • 在群聊中可省略群组参数,自动使用当前群组
    • 群组参数:
      • current - 当前群(仅在群聊中有效)
      • 123456789 - 具体群号
  • cs.analysis <自然语言查询>: AI分析聊天记录(仅管理员可用)
    • 自动识别时间范围并转换为具体日期(如:昨天 → 2025-01-07,最近3天 → 2025-01-05, 2025-01-06, 2025-01-07)
    • 根据问题生成针对性分析结果(限制100字以内)
    • 支持各种类型的查询(事件总结、话题分析、金句提取等)
    • 输出纯文本格式,简洁直接