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

@cortex-context/cli

v0.0.21

Published

CLI to initialize and manage Cortex Context (Knowledge Graph) in any VS Code workspace

Readme

cortex-context CLI

npm version CI License: MIT Node.js 18+

CLI to initialize and manage Cortex Context (Knowledge Graph) tooling in any VS Code workspace.

Installs:

  • Skills — VS Code Copilot Agent skills for Cortex (cortex-research, cortex-dimensions, cortex-ingest, generate-spec)
  • MCP Server — TypeScript stdio server exposing Cortex tools to GitHub Copilot (bundled — no Python needed)
  • VS Code Config — Injects cortex entry into .vscode/mcp.json

Requirements

Installation

# Install globally
npm install -g @cortex-context/cli

# Or run directly without installing
npx @cortex-context/cli init

Usage

# Initialize Cortex Context in the current workspace
cortex-context init

# Initialize with specific options (non-interactive)
cortex-context init --url http://localhost:8082 --token <your-token>

# Initialize in a specific workspace folder
cortex-context init --workspace /path/to/your/workspace

# Sync Skills/MCP to latest bundled version
cortex-context sync

# Preview what sync would change
cortex-context sync --dry-run

# Validate installation and connectivity
cortex-context doctor

What init Does

  1. Prompts for Cortex server URL and optional API token
  2. Tests connectivity to the Cortex server
  3. Copies Skills into {workspace}/.github/skills/
  4. Injects cortex entry into {workspace}/.vscode/mcp.json (uses npx @cortex-context/cli mcp-serve)
  5. Saves configuration to ~/.cortex-context/config.json

After Init

# Reload VS Code (Cmd/Ctrl+Shift+P → "Reload Window")
# Then run doctor to verify:
cortex-context doctor

Commands

Workspace setup

| Command | Description | | --------------------------------- | ------------------------------------------------------ | | cortex-context init | Full interactive setup (Skills, MCP, hooks, rules) | | cortex-context update | Update Skills + MCP files to latest bundled version | | cortex-context update --dry-run | Preview update changes without writing files | | cortex-context sync | Ingest latest git diff into the Cortex Knowledge Graph | | cortex-context sync --dry-run | Show diff without sending to Cortex API | | cortex-context doctor | Validate installation + test Cortex connectivity | | cortex-context uninstall | Remove Cortex Context from the workspace |

Local server

| Command | Description | | ----------------------------------------- | -------------------------------------------------------------------------------------- | | cortex-context server | Install Docker (if needed) and start Neo4j + Cortex API locally | | cortex-context server --embeddings | Start with embeddings image (sentence-transformers, CPU, ~1.5 GB) | | cortex-context server --embeddings-gpu | Start with embeddings GPU image (PyTorch CUDA, ~2 GB — requires nvidia) | | cortex-context upgrade | Pull latest Cortex backend image and restart the local stack | | cortex-context upgrade --embeddings | Upgrade using the embeddings image variant | | cortex-context upgrade --embeddings-gpu | Upgrade using the embeddings GPU image variant (PyTorch CUDA, ~2 GB — requires nvidia) | | cortex-context upgrade --pull-only | Pull latest image without recreating the container | | cortex-context downgrade | Switch to the base image variant (lightest, no embeddings) | | cortex-context downgrade --embeddings | Switch to the CPU embeddings variant (lighter than GPU) |

Token management

| Command | Description | | ---------------------------------- | ------------------------------------------------------- | | cortex-context token | Show current API token (masked) | | cortex-context token --show | Reveal the full token | | cortex-context token --rotate | Generate a new random token, save it, and restart stack | | cortex-context token --set <val> | Set a specific token value (empty string clears auth) |

Advanced

| Command | Description | | -------------------------- | ------------------------------------------------------------------- | | cortex-context reset | Wipe all nodes and relationships from the Knowledge Graph | | cortex-context mcp-serve | Start the MCP server over stdio (used internally by VS Code/Cursor) |

Options (init)

| Flag | Description | | --------------- | ------------------------------------------------------------------------- | | --url <url> | Cortex server URL (skips prompt) | | --token <tok> | API token (skips prompt) | | --workspace | Target workspace path (default: cwd) | | --local | Deploy a local Cortex stack with Docker (mutually exclusive with --url) | | --skip-mcp | Don't configure MCP server | | --skip-skills | Don't install Skills | | --skip-hooks | Don't install git hooks | | --skip-rules | Don't inject Copilot/Cursor rules | | --force | Overwrite existing files without prompting |

Contributing

Contributions are welcome! Please read CONTRIBUTING.md before opening a pull request.

Found a bug? Open a bug report.
Have an idea? Open a feature request.

License

MIT