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-update-notifier

v0.2.0

Published

OpenCode plugin that notifies you when your installed plugins have newer versions on npm

Readme

opencode-update-notifier

An OpenCode plugin that checks if your pinned npm plugins have newer versions available and shows a TUI notification.

Why pinned versions?

Pinning exact versions of your OpenCode plugins (e.g. [email protected] instead of my-plugin or my-plugin@^1.2.3) is the recommended way to defend against npm supply-chain attacks:

  • No silent code execution. Floating ranges (^1.2.3, ~1.2.3, latest) automatically pull new code the next time anything resolves dependencies. A compromised or hijacked release can therefore reach your machine without you ever editing your config. Pinning forces every upgrade to be an explicit, reviewable change.
  • Smaller blast radius for malicious releases. Recent npm incidents (account takeovers, malicious post-install scripts, typosquatted dependencies) have repeatedly shipped through patch and minor releases. A pinned version is unaffected until you opt in.
  • Auditable upgrades. Because each version bump is a config diff, you can review the changelog and the registry entry before adopting it, rather than discovering a new version was loaded after the fact.

The security trade-off is that pinned versions never update on their own, so it is easy to drift behind upstream — including behind releases that fix real vulnerabilities. That is exactly the gap this plugin closes: it watches the npm registry for newer versions of your pinned plugins and surfaces them as a single toast, so you can review and adopt security fixes deliberately, without ever handing the decision to a resolver.

What it does

On the first session start after OpenCode loads, this plugin:

  1. Reads all your OpenCode config files to find version-pinned plugin entries.
  2. Queries the npm registry for the latest version of each pinned plugin.
  3. Shows a single aggregated toast notification if any plugins have updates available.
  4. Caches the registry results locally for 6 hours.

It does not auto-update anything. You decide when to run your package manager.

Installation

Add opencode-update-notifier to your OpenCode config:

// ~/.config/opencode/opencode.json
{
  "plugin": [
    "[email protected]"
  ]
}

Cache

Results are cached at ~/.cache/opencode-update-notifier/cache.json (or $XDG_CACHE_HOME/opencode-update-notifier/cache.json).

To force a fresh registry check, delete this file:

rm -f ~/.cache/opencode-update-notifier/cache.json

How update detection works

Only pinned plugin entries are checked:

  • npm-pinned entries: @scope/name@version or name@version
  • GitHub git-pinned entries: name@git+https://github.com/<owner>/<repo>[.git]#vX.Y.Z

Unpinned entries (e.g. my-plugin or ./local-plugin), non-GitHub git URLs, and git refs that aren't SemVer versions are silently ignored.

License

MIT © Tim Hildebrandt