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

@upstash/context7-opencode

v0.1.0

Published

Official Context7 plugin for OpenCode — wires up the Context7 MCP server and a documentation skill

Readme

Context7 Plugin for OpenCode

Context7 solves a common problem with AI coding assistants: outdated training data and hallucinated APIs. Instead of relying on stale knowledge, Context7 fetches current documentation directly from source repositories.

What's Included

Installing the plugin adds two things to OpenCode:

  • MCP Server - The hosted Context7 server, with context7_resolve-library-id and context7_query-docs
  • Skill - context7-mcp auto-triggers documentation lookups when you ask about libraries

Installation

opencode plugin @upstash/context7-opencode

The command installs the plugin and adds it to your OpenCode config. You can also add it by hand:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@upstash/context7-opencode"]
}

Restart OpenCode after installing. On the first documentation lookup, OpenCode opens a browser window so you can log in to Context7 via OAuth, which gives you your account's rate limits.

API Key

OAuth is the default and needs no configuration. If you would rather use an API key, for example on a headless machine, create one in the Context7 dashboard and export it before launching OpenCode:

# e.g. in ~/.zshrc or ~/.bashrc
export CONTEXT7_API_KEY="your-api-key"

The plugin picks up CONTEXT7_API_KEY automatically and sends it as an Authorization header instead of running the OAuth flow. You can also pass the key through the plugin options:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [["@upstash/context7-opencode", { "apiKey": "your-api-key" }]]
}

Overriding What the Plugin Adds

Both entries are additive, and an entry you configure yourself always wins. If your opencode.json already defines an MCP server named context7, the plugin leaves it untouched.

Usage

The skill triggers on its own when you ask about a library:

  • "How do I set up authentication in Next.js 15?"
  • "Show me React Server Components examples"
  • "What's the Prisma syntax for relations?"

Available Tools

context7_resolve-library-id

Searches for libraries and returns Context7-compatible identifiers.

Input: "next.js"
Output: { id: "/vercel/next.js", name: "Next.js", versions: ["v15.1.8", "v14.2.0", ...] }

context7_query-docs

Fetches documentation for a specific library, ranked by relevance to your question.

Input: { libraryId: "/vercel/next.js", query: "app router middleware" }
Output: Relevant documentation snippets with code examples

Version Pinning

To get documentation for a specific version, include the version in the library ID:

/vercel/next.js/v15.1.8
/supabase/supabase/v2.45.0

The context7_resolve-library-id tool returns available versions, so you can pick the one that matches your project.

License

MIT