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

@promptowl/contextnest-cli

v0.9.4

Published

CLI for structured AI agent knowledge bases — versioned documents, deterministic queries, integrity verification, and MCP integration

Readme

@promptowl/contextnest-cli

by PromptOwl | Website | Whitepaper | Specification | Discord

Command-line tool for Context Nest — structured, versioned context vaults for AI agents.

Install

npm install -g @promptowl/contextnest-cli

Quick Start

# Initialize a vault with a starter recipe
ctx init --starter developer

# See all available starters
ctx init --list-starters

# Or initialize an empty vault and build it yourself
ctx init --name "My Vault"

Available Starters

| Recipe | For | What You Get | |--------|-----|-------------| | developer | Engineering teams | Architecture, coding standards, onboarding | | executive | Leadership | Strategic priorities, decision framework, alignment | | analyst | Research / Analysis | Research framework, source catalog, report templates | | team | General teams | How we work, onboarding, team FAQ | | sales | Sales teams | Objection handling, battlecards, product knowledge |

Commands

Document Management

  • ctx add <path> — Create a new document
  • ctx add <path> --type skill — Create a skill node with trigger, inputs, and guard rails
  • ctx read <path> — Read and display a document in the terminal
  • ctx read <path> --html — Render as styled HTML and open in browser
  • ctx read <path> --html --out file.html — Save rendered HTML to file
  • ctx update <path> — Update a document
  • ctx delete <path> — Delete a document
  • ctx publish <path> — Publish (bump version, create checkpoint)
  • ctx validate [path] — Validate against the spec
  • ctx list — List documents (filter by --type, --status, --tag)
  • ctx search <query> — Full-text search

Context Queries

  • ctx query <selector> — Query context with graph traversal (default: 2 hops)
  • ctx query <selector> --hops 4 — Deeper traversal for more context
  • ctx query <selector> --full — Load all documents (legacy full mode)
  • ctx query @org/pack — Query from a cloud-hosted pack
  • ctx resolve <selector> — Execute a selector query

Versioning & Integrity

  • ctx history <path> — Show version history
  • ctx reconstruct <path> <version> — Reconstruct a specific version
  • ctx verify — Verify all hash chains

Packs & Checkpoints

  • ctx pack list — List context packs
  • ctx pack show <id> — Show pack details
  • ctx checkpoint list — List checkpoints
  • ctx checkpoint rebuild — Rebuild checkpoint history

Index & Agent Configs

  • ctx index — Regenerate context.yaml, INDEX.md, and agent config files (CLAUDE.md, GEMINI.md, .cursorrules, .windsurfrules, .github/copilot-instructions.md)

Graph Traversal

Queries use context.yaml as a lightweight graph index. Instead of loading all documents into memory, the engine evaluates selectors against metadata, traverses relationship edges for N hops via BFS, and only loads bodies for reached nodes.

ctx query "#engineering"           # Default: 2 hops from matched docs
ctx query "#engineering" --hops 4  # Deeper traversal, more context
ctx query "#engineering" --hops 1  # Shallow, fastest
ctx query "#engineering" --full    # Legacy: load everything

Edge priorities:

  • depends_on edges are always traversed (free)
  • Edges to hub nodes (most-referenced docs) are free
  • reference edges cost 1 hop
  • Set metadata.edge_priority: 0 in frontmatter to make edges from that doc free

Selectors

ctx query "#engineering"                   # All docs with a tag
ctx query "type:document"                  # All docs of a type
ctx query "type:skill"                     # All skill nodes
ctx query "type:skill + #engineering"      # Engineering skills only
ctx query "pack:engineering-essentials"    # All docs in a pack
ctx query "status:published"              # By status
ctx query "#api + #v2"                    # Union
ctx query "#api + status:published"       # Intersection

Cloud Packs

Query context from cloud-hosted packs without downloading source files:

ctx query @promptowl/executive-ai-strategy

AI Agent Integration

Running ctx index auto-generates config files so AI tools discover your vault:

| File | Tool | |------|------| | CLAUDE.md | Claude Code | | GEMINI.md | Gemini CLI | | .cursorrules | Cursor | | .windsurfrules | Windsurf | | .github/copilot-instructions.md | GitHub Copilot |

Your hand-written content in these files is preserved — only the Context Nest section (between markers) is updated.

MCP Server

For direct AI agent access via the Model Context Protocol:

npm install -g @promptowl/contextnest-mcp-server

See @promptowl/contextnest-mcp-server for setup instructions.

Related Packages

| Package | Description | |---------|-------------| | @promptowl/contextnest-engine | Core library — parsing, storage, versioning, graph traversal | | @promptowl/contextnest-mcp-server | MCP server for AI agent access |

Links

License

AGPL-3.0 — See LICENSE for details.

For commercial licensing (embedding in proprietary products without AGPL obligations), contact PromptOwl.