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-get-image-local

v1.0.5

Published

📷 本地图片精准调用 | 缓存加速、权限组、范围查询、调试日志、控制台日志显示

Readme

koishi-plugin-get-image-local

npm

主要功能

  • 精准匹配:按编号调用图片,001 只匹配 001.jpg
  • 子文件夹支持:自动递归查找。
  • 缓存加速:启动时扫描所有图片,后续调用毫秒级响应。
  • 权限组:定义群组,指令可引用,简化配置。
  • 范围查询:支持 图片 1-10 批量返回图片(可设置最大张数)。
  • 调试日志:开启后输出详细调用信息到控制台。
  • 稳定顺序:指令列表按添加顺序排列,修改指令名不会打乱。
  • 友好提示:无权限或图片不存在时返回自定义消息。

配置示例

plugins:
  get-image-local:
    defaultPrivate: false
    defaultEnable: true
    superUsers:
      - '10001'
    enableCache: true
    enableDebug: false
    maxRange: 10
    enableNoPermissionMessage: true
    groups:
      内部群:
        - '123456'
        - '789012'
      测试群:
        - '345678'
    commands:
      - name: 图片
        path: /data/images
        guilds:
          - '123456789'
        group: 内部群
        private: false
      - name: meme
        path: /data/memes
        private: true

指令用法 在允许的群聊或私聊中发送:

text <指令名> <编号> 例如:图片 42、meme 007

权限说明 普通用户:受指令的 guilds 列表和 private 权限控制。

超级管理员:在 superUsers 中配置的用户,可无视所有群聊/私聊限制,在任何地方调用任意指令