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

opencode-vision-plugin

v1.0.7

Published

Visual vision tools (describe, OCR, analyze) for opencode as an in-process plugin. Direct fetch to Gemini + NVIDIA NIM with provider-chain fallback, dual-describe, and nested-object config. No MCP server, no subprocess, no pip.

Readme

vision plugin

Upstream: this is a fork of opencode-vision (MIT) by Nicolás Ríos Herrera. It has been meaningfully changed (in-process plugin, NIM provider chain, config-in-opencode, dual-describe) but the original work is theirs. This code was generated by an AI assistant; verify before trusting.

Adds vision_describe, vision_ocr, vision_analyze to opencode so a text-only model can still read images. Runs in-process: no MCP server, no subprocess, no Python.

Install

Zero config — copy the bundled file into your plugin dir and restart:

cp opencode-vision-plugin.js ~/.config/opencode/plugin/opencode-vision-plugin.js

Keys come from your environment (NVIDIA_API_KEY, GEMINI_API_KEY / GOOGLE_API_KEY). No config block needed.

Optional config block — if you want to override defaults (key auth, endpoints, timeouts, model-of-choice), pin the npm package and drop a block into ~/.config/opencode/opencode.jsonc:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    ["opencode-vision-plugin", {
      "provider": "chain",
      "chain": ["gemini", "nim"],
      "models": {
        "gemini": "gemini-3.6-flash",
        "nim": "meta/llama-3.2-90b-vision-instruct"
      },
      "keys": {
        "gemini": "{env:GEMINI_API_KEY}",
        "nim": "{env:NVIDIA_API_KEY}"
      },
      "baseUrls": {
        "gemini": "https://generativelanguage.googleapis.com/v1beta",
        "nim": "https://integrate.api.nvidia.com/v1"
      },
      "timeout_ms": 60000
    }]
  ]
}

Every string supports {env:VAR}, resolved at load time.

What the config actually controls

The tool itself already knows every model and keeps sensible defaults, so the config block exists to override defaults, not to enable the tools.

| Key | Default | What it does | |---|---|---| | provider | chain | Which provider to hit first | | chain | ["gemini","nim"] | Fallthrough order — if the first fails, try the next | | models.gemini | gemini-3.6-flash | Model used when you call without a model arg | | models.nim | meta/llama-3.2-90b-vision-instruct | Model used when you call without a model arg | | keys.* | env vars | API keys (endpoints reject unauthenticated calls) | | baseUrls.* | standard endpoints | Where each provider lives | | timeout_ms | 60000 | Global budget; a hanging provider gives up so the chain can fall through |

You can still pick any model at call time via the model argument — the config just sets the backstop default. If you're happy with the defaults, skip the block entirely.

Behavior

  • Default chain tries gemini then nim — if Gemini's daily quota is out, NIM keeps you working.
  • vision_describe with no model runs two NIM VLMs and returns each labelled section (structured + detail) — this is the recommended default call. The tool description steers agents to it; models are flaky, so calls are independent.
  • Every tool takes a compulsory blind boolean: true means the reader cannot see the image, so the description must be exhaustive and spatial (the blind-reader clause is appended to the prompt). false = normal description. The flag decides the prompt — no hardcoded per-model rules.
  • image_path accepts a local path, an https URL, or a data: URL.

Available models

  • meta/llama-3.2-90b-vision-instruct — structured
  • nvidia/nemotron-nano-12b-v2-vl — detail
  • meta/llama-3.2-11b-vision-instruct — light
  • nvidia/llama-3.1-nemotron-nano-vl-8b-v1 — concise
  • gemini-3.6-flash

Requirements

Node/bun global fetch + node fs/path. Needs NVIDIA_API_KEY and/or GEMINI_API_KEY.

Restart

Config is read once at startup. After changing the config or the plugin file, quit and restart opencode. If you installed via npm, also clear ~/.cache/opencode/packages/opencode-vision-plugin — opencode won't refetch.