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

@xiaoqiong0v0/opencode-file-tool

v1.0.8

Published

File cache & image analysis plugin for OpenCode. Auto-caches pasted images, analyzes via multimodal model.

Readme

opencode-file-tool

OpenCode 文件缓存与图片分析插件。自动缓存用户粘贴的图片,通过多模态模型分析,绕过主模型不支持视觉的限制。

安装

opencode.jsonplugin 数组添加包名:

"plugin": ["@xiaoqiong0v0/opencode-file-tool"]

重启 OpenCode 后自动安装。首次使用 file_tool set-provider <模型名> 配置视觉模型。

功能

  • 文件缓存 — 粘贴图片时自动缓存到 ~/.opencode/plugins-cache/file-tool/
  • 图片分析 — 通过 analyze_image file_id:N 调用视觉模型分析
  • 会话父子链 — 子 agent 会话可通过 parent 链回退读取祖先会话的缓存
  • 开关控制 — 主模型支持视觉时可用 disable 关闭缓存,让模型直接读取图片
  • 多语言 — 支持中/英文提示

工具

| 工具 | 说明 | |------|------| | file_tool list-provider | 列出可用模型 | | file_tool set-provider <model> | 切换视觉模型 | | file_tool list-cache [all\|N\|main\|main N] | 查看缓存文件 | | file_tool enable | 临时开启图片缓存(重启恢复默认) | | file_tool disable | 临时关闭图片缓存(重启恢复默认) | | file_tool enable-save | 持久开启图片缓存(写入配置) | | file_tool disable-save | 持久关闭图片缓存(写入配置) | | file_tool status | 查看缓存开关状态和当前视觉模型 | | analyze_image file_id:N | 分析指定图片 |

命令

| 命令 | 说明 | |------|------| | /file-tool | 触发 file_tool 工具 |

配置

~/.config/opencode/file-tool.jsonc 在首次启动时自动生成,支持 enabled 字段控制缓存开关。

GitHub

https://github.com/xiaoqiong0v0/opencode-file-tool