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-image-saver

v1.0.5

Published

群内存图/更图插件:一条指令存入图片,一条指令发出图片,每群独立隔离

Readme

koishi-plugin-image-saver

群内存图 / 更图插件 —— 一条指令存,一条指令发,每群独立隔离。

功能介绍

  • 存图:触发指令后,机器人等待你发送或引用一张图片,自动下载保存到本地
  • 更图:将本群已保存的图片发送出来
  • 每个群聊的存图互相独立,互不干扰
  • 每群只保存一张,再次存图直接覆盖旧图
  • 支持直接发图引用含图消息两种方式存图
  • 指令名称可在配置中自由修改

安装

在 Koishi 控制台插件市场搜索 image-saver 安装,或在 koishi.yml 中手动添加:

plugins:
  image-saver:
    saveCommand: 存图
    getCommand: 更图
    waitTimeout: 60

配置项

| 配置项 | 类型 | 默认值 | 说明 | |--------|------|--------|------| | saveCommand | string | 存图 | 保存图片的指令名称 | | getCommand | string | 更图 | 发出已保存图片的指令名称 | | waitTimeout | number | 60 | 等待用户发送图片的超时时间(秒,范围 10 ~ 300) |

使用示例

用户:存图
机器人:📷 请在 60 秒内发送或引用含图的消息

用户:[发送一张图片]
机器人:✅ 存图成功!

用户:更图
机器人:[发出之前存的图片]

注意事项

  • 此指令仅限群聊使用,私聊中无效
  • 存图等待期间,若超时未发送图片,机器人会发送超时提示并自动取消
  • 图片以二进制文件形式保存在 Koishi 数据目录下的 data/image-saver/ 文件夹中,不依赖图片 URL(QQ 图片 URL 有时效限制)
  • 支持格式:PNG、JPG、GIF、WebP

数据存储路径

<Koishi 数据目录>/data/image-saver/<群ID>.png

License

MIT