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

@jimmyyen/opencode-registry-plugin

v0.1.0

Published

Intent-driven MCP resource scheduling plugin for OpenCode — context-aware tool scoping via system-prompt injection and tool-description down-ranking.

Readme

@jimmyyen/opencode-registry-plugin

Intent-driven resource scheduling for OpenCode.

Scans your MCP servers, tags them by capability, and — per active profile or detected intent — steers the model toward the relevant tools and away from the noise. Goal: fewer irrelevant tools in context, lower token waste, sharper tool use on big projects.

⚠️ Unstable / experimental. This package is early and the slash-command registration path is still being ironed out. Don't rely on it in production yet — see Commands for the current setup and fallback.

How it works (and its limit). OpenCode has no hook that can delete MCP tools at request time. This plugin uses the real, supported hooks:

  • experimental.chat.system.transform — injects a short note naming the active scope and in-scope MCP servers.
  • tool.definition — down-ranks out-of-scope MCP tools by rewriting their description (soft-gating: the model is steered, not blocked).
  • chat.message — captures user intent + applies auto-profile.
  • tool — the registry tool; slash command /registry (see Commands).

Every hook is wrapped in fail-open: a registry error never blocks the provider request.

Install

npm i -g @jimmyyen/opencode-registry-plugin

Then add to your opencode.json:

{
  "plugins": ["@jimmyyen/opencode-registry-plugin"]
}

Config

Profiles (YAML)

Define scenes as YAML. Loaded from both global and project dirs:

  • ~/.config/opencode/profiles/*.yaml
  • <project>/.opencode/profiles/*.yaml or <project>/profiles/*.yaml
# profiles/bugfix.yaml
name: bugfix
description: Fix bugs — code, search, read, debug only
includeTags: [code, search, read, debug]
excludeTags: [web, db, doc]

Project auto-switch — opencode.registry.json

Drop one in your project root (or ~/.config/opencode/opencode.registry.json for a global default). Project overrides global.

{
  "defaultProfile": "feature",
  "autoProfiles": [
    { "match": { "pathContains": "migrations" }, "profile": "db" },
    { "match": { "fileTypes": [".py"] }, "profile": "python" }
  ]
}

Commands

The plugin exposes a registry tool and registers a /registry slash command via the plugin's config hook.

| Command | Effect | |---|---| | /registry list | List loaded profiles | | /registry status | Show active scope, servers, tags | | /registry switch <name> | Activate a profile | | /registry off | Deactivate; fall back to auto-intent | | /registry reload | Re-scan registry + profiles |

Set MCP_REGISTRY_DEBUG=1 to write a debug snapshot to /tmp/opencode-registry-<session>.json.

License

MIT