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

codebase-compass

v0.2.3

Published

Convert any unknown codebase into a structured, navigable knowledge system and interactive HTML dashboard.

Readme

Codebase-Compass

Convert any unknown codebase into a structured, navigable knowledge system and an interactive HTML dashboard — with every claim traced back to real source files.

Codebase-Compass is an installable agent skill for opencode, Claude Code, Codex, and Open Agents (.agents). Once installed in a project, it reads the repository in read-only mode and generates detailed topic cards plus a browsable dashboard under codebase-compass/.

What gets generated

codebase-compass/
  00-codebase-view/
    index.html                  # Browsable dashboard shell
    styles.css                  # Dashboard styles (copied from assets/dashboard.css)
    script.js                   # Dashboard logic (theme toggle, sorts sidebar by key)
    manifest.json               # Registry of topics
    sections/
      NN-topic.html             # Dashboard section
  NN-topic/
    NN-topic.md                 # Detailed knowledge card

Installation

Quick install (recommended)

Run the installer in the project you want to analyze:

npx codebase-compass install

The installer will:

  • Detect which agent configuration already exists in the project (.opencode, .claude, .codex, or .agents).
  • Ask you to pick one if multiple are detected.
  • Install the Codebase-Compass skill into that agent's project-local skills directory.
  • For opencode, merge the /codebase-compass and /codebase-compass-all command blocks into .opencode/opencode.json.

If no agent configuration is detected, it defaults to .agents/skills/.

After installation, restart your agent if needed. Dashboard files (index.html, styles.css, script.js) are copied from assets/ into the generated codebase-compass/00-codebase-view/ on first use.

Update an existing installation

npx codebase-compass update

The update command refreshes SKILL.md and assets/ (including dashboard.css, index.html, script.js) in the installed skill directory without touching your generated codebase-compass/ content. For opencode, it also merges command blocks into .opencode/opencode.json only when the result differs. Dashboard files (styles.css, index.html, script.js) under codebase-compass/00-codebase-view/ are automatically refreshed to match the latest assets if present.

Manual install

Open agents / .agents

cp -r .agents/skills/codebase-compass ~/.agents/skills/

Claude Code

cp -r .claude/skills/codebase-compass ~/.claude/skills/

Codex

cp -r .codex/skills/codebase-compass ~/.codex/skills/

opencode

mkdir -p ~/.config/opencode/skills
cp -r .opencode/skills/codebase-compass ~/.config/opencode/skills/

Then copy the command section from .opencode/opencode.json into ~/.config/opencode/opencode.json and restart opencode.

Usage

Once installed, use the skill inside your agent:

  • /codebase-compass <topic> — analyze one topic, e.g. /codebase-compass request-flow
  • /codebase-compass-all — analyze the full catalog

Dashboard theming

The generated dashboard supports light and dark themes:

  • Light mode is the default on first load.
  • Click the toggle button (☀️/🌙) in the sidebar header to switch themes.
  • Your preference is persisted in localStorage.

Styles are maintained in the skill's assets/dashboard.css file using CSS custom properties. When the agent creates the dashboard, it copies this file into codebase-compass/00-codebase-view/styles.css.

Topic catalog

| # | Topic | Description | |---|-------|-------------| | 01 | system-overview | High-level system purpose and structure | | 02 | folder-structure | Directory layout and conventions | | 03 | bootstrapping | Application startup and initialization | | 04 | entrypoints | CLI, HTTP, job, and event entry points | | 05 | module-map | Modules and their responsibilities | | 06 | dependency-graph | Internal and external dependencies | | 07 | domain-model | Core domain entities and relationships | | 08 | business-rules | Business rules and invariants | | 09 | feature-breakdown | Major features and how they are implemented | | 10 | request-flow | HTTP request lifecycle | | 11 | data-flow | Data movement and transformation | | 12 | api-overview | API surface (REST, GraphQL, RPC, etc.) | | 13 | validation | Input validation | | 14 | error-handling | Error handling patterns | | 15 | logging | Logging system | | 16 | async-jobs | Background/async job processing | | 17 | database-schema | Database/schema layer | | 18 | repositories | Repository/data access patterns | | 19 | transactions | Transaction management | | 20 | caching | Caching strategy | | 21 | security | Security controls and concerns | | 22 | auth | Authentication | | 23 | authorization | Authorization | | 24 | secrets | Secrets management | | 25 | threat-model | Threat model | | 26 | external-integrations | Third-party integrations | | 27 | testing | Test structure and conventions | | 28 | deployment | Deployment configuration | | 29 | ci-cd | CI/CD pipelines | | 30 | observability | Metrics, tracing, monitoring | | 31 | performance | Performance patterns and concerns |

Important rules

  • Read-only analysis: Codebase-Compass never modifies the source code being analyzed.
  • Traceability: Every claim in the generated markdown links back to a real source file.
  • Safe output: All generated files are written under the codebase-compass/ directory.
  • Graceful handling: If a topic does not apply to the repository, a short note is produced explaining what was checked.

Development

# Build distribution files for all supported agents
npm run build

# Publish to npm
npm publish

Requirements

  • Node.js >= 18.0.0

License

MIT