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

@ofelipedsnts/opencontext

v0.1.4

Published

Unified context hub CLI for AI agents

Readme

OpenContext

OpenContext is a CLI that provides a unified context hub for AI agents. It combines private local documentation with public docs from the context-hub (chub).

Install

Global install:

npm install -g opencontext
opencontext init

Team install (repo mode):

git clone <your-repo-url>
cd opencontext
npm install -g .

Quick start

opencontext init
opencontext add ./acme/docs/auth-api/DOC.md
opencontext get acme/auth-api
opencontext search "authentication"

Commands

  • opencontext init — create local config and directories
  • opencontext add <path> — add a DOC.md/SKILL.md file to the local store
  • opencontext add <path> --team — add a DOC.md/SKILL.md file to the repo content/ directory
  • opencontext get <author>/<name> — fetch documentation (local, team, or chub)
  • opencontext list — list available documentation (local and team)
  • opencontext search <query> — search across sources
  • opencontext annotate <author>/<name> <note> — add a local note
  • opencontext annotate <author>/<name> --clear — clear notes for a document
  • opencontext annotate --list — list all annotations
  • opencontext sync init <git-url> — configure team sync
  • opencontext sync pull — pull updates from remote
  • opencontext sync push — push updates to remote
  • opencontext config — show or update configuration

Global flags

  • --lang <py|js> — language filter for chub
  • --version <version> — version filter for docs
  • --source <local|team|chub|cascade> — force a source
  • --no-cache — bypass chub cache
  • --json — JSON output for agent integration

Modes

Personal mode

Documents live in ~/.config/opencontext/private/.

Team mode

Documents live in ./content/ inside the repository. This enables versioned, shared documentation for a team.

chub integration

OpenContext delegates to chub when a document is not found locally or in the team repository. Example:

opencontext get openai/chat --lang py

Agent skill

Copy skills/opencontext-skill.md into your agent skill directory and instruct the agent to use opencontext before writing code.

Document format

Docs follow the Content Guide format. Each entry lives in a DOC.md file with frontmatter fields like name, description, and metadata.*.

Entry ids are author/name (author from the directory, name from frontmatter).

---
name: auth-api
description: Authentication service documentation
metadata:
  languages: javascript
  versions: "1.0.0"
  revision: 1
  updated-on: "2026-01-01"
  source: maintainer
  tags: "auth,api"
---

# Auth API

...

Folder structure conventions

OpenContext follows the Content Guide directory structure. Content is organized by author (vendor/org), then by type (docs or skills), then by entry name.

<author>/
  docs/
    <entry-name>/
      DOC.md
  skills/
    <entry-name>/
      SKILL.md

Local (personal) store

  • Base directory: ~/.config/opencontext/private/
  • Path rule: <author>/docs/<entry-name>/DOC.md

Example:

~/.config/opencontext/private/acme/docs/widgets/DOC.md

Team (repo) store

  • Base directory: ./content/
  • Same structure as local

Example:

./content/acme/docs/widgets/DOC.md

Multi-language docs

acme/docs/widgets/javascript/DOC.md
acme/docs/widgets/python/DOC.md

Multi-version docs

acme/docs/widgets/v1/DOC.md
acme/docs/widgets/v2/DOC.md

Add command behavior

  • opencontext add <path> expects the path to include /docs/ or /skills/ and copies it into the local store, preserving the structure.
  • opencontext add <path> --team does the same inside ./content/.