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-archive

v0.0.13

Published

[UNFINISHED] Archive QQ-group menbers' awesome messages, revisiting someday ^o^

Readme

  • koishi-plugin-chat-archive

    npm

    “留档群u的发言,并在将来发挥作用”

    "Archive group menbers' awesome messages, revisiting someday."


    一个归档群聊聊天信息的插件,仅此而已

    你问我这个插件有什么用?你可以参考 QQ 的精华消息,和那个功能差不多:

    # 模拟聊天记录
    [2024-08-21 01:23:45] 	A: 一进群就感觉有人欠我 50 块钱
    [2024-08-21 01:23:46] 	Z: [引用 A: 一进群就感觉有人欠我 50 块钱] savechat
    [2024-08-21 01:23:46] 	Bot: #1 消息已储存
      
    [2024-08-21 01:23:46] 	Z: [引用 Bot: #1 消息已储存] savechat
    [2024-08-21 01:23:46] 	Bot: #2 消息已储存
      
    [2024-08-21 01:23:47] 	A: listchat -p 1				// 列举聊天记录
    [2024-08-21 01:23:47] 	Bot: 第 1/1 页, 总计2条记录:
    						#2 [2025-08-24 01:23] Bot: 
    						 #1 消息已储存
    						#1 [2025-08-24 01:23] A: 
    						 一进群就感觉有人欠我 50 块钱
    						使用 listchat -p  查看其他页
    						使用 listchat -s  查看单条消息
      
    [2025-08-21 01:23:48] 	A: rollchat						// 随机聊天记录
    [2025-08-21 01:23:48] 	Bot: [2025-08-24 01:23:45] 	A: 
    							一进群就感觉有人欠我 50 块钱

    一些我可以想到的使用场景:

    1. 知识库检索
    [2025-06-08 15:03:00] 	A: findchat 衬衫 便士
    [2025-06-08 15:03:01] 	Bot: 第 1/1 页, 共找到1条记录:
    							#3 [2024-06-08 15:02] Bot: 
    							衬衫的价格是九磅十五便士
    1. 随机群发言回顾(~~你可能不相信这是这个插件的最初开发目的~~)
    [2025-06-16 19:19:00] 	好事的群u: rollchat
    [2025-06-16 19:19:01]	Bot: [2024-08-21 01:23:45] A: 
    							  一进群就感觉有人欠我 50 块钱

    还有什么功能有待思考,就写到这里吧。


插件目前的问题 / TODO:
  • 不能合并转发(这个我不会)

  • 不能读取群昵称

  • 在储存图片时,目前直接获取的是qq的临时链接,链接在一定时间后过期,导致信息无法发送,目前考虑:

    1. 直接删除图片内容 2. 建立本地文件夹 3. 用户手动设置一个图床地址
  • 很多可以复用的代码被我直接复制粘贴了,应该多拆成几个子函数来着

  • 以“预览”的模式展示所有需要输出 -p 形式内容的输出,也就是只展示前面几个文字,后面的用省略号代替