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

codexia

v0.4.0

Published

Engineering intelligence layer for repositories - analyze impact, complexity, history, and enforce architectural invariants

Readme

Codexia

Codexia header banner showing brand colors and tagline

Engineering intelligence layer for repositories.

Codexia understands your codebase, its history, its architecture, and its rules—and produces evidence-based insight, not guesses.


Quick Start

# Install globally
npm install -g codexia

# Run the interactive wizard
codexia

When you run codexia without any arguments, an interactive wizard guides you through all features:

┌────────────────────────────────────────┐
│  🧠 Codexia - Engineering Intelligence │
└────────────────────────────────────────┘

? What would you like to do?
  📊 Analyze - Scan, signals, impact analysis
  📋 Reports - PR reports, changelog, history
  🎯 Quality - Complexity, invariants, conventions
  🧪 Testing - Test suggestions, prioritization
  ⚙️  Setup - Initialize, watch mode, MCP server

Select a category, then choose a specific command—the wizard handles paths, options, and output format prompts for you.

Or use commands directly for scripting and CI:

codexia scan          # Full repository scan
codexia impact        # Analyze change impact
codexia signals       # Detect code smells

What Codexia Does

🔍 Repository Scanning

Indexes your codebase to understand structure, symbols, exports, and dependencies.

codexia scan

📊 Impact Analysis

Shows exactly what your changes affect—which modules, which consumers, which tests.

codexia impact --staged
codexia impact --branch feature/new-api

Convention Checking

Validates changes against your project's documented conventions and architectural rules.

codexia check

🧪 Test Suggestions

Recommends specific tests based on what code actually changed.

codexia tests

📝 PR Reports

Generates comprehensive pull request analysis with risk scores and evidence.

codexia pr-report --base main --head feature/new-api

🔗 Dependency Visualization

Visualize your dependency graph in multiple formats.

codexia graph                    # ASCII tree view
codexia graph --format mermaid   # Mermaid diagram
codexia graph --format dot       # Graphviz DOT format
codexia graph src/core/types.ts  # Focus on specific file

🧮 Complexity Analysis

Analyze code complexity, maintainability, and coupling metrics.

codexia complexity                     # Analyze all files
codexia complexity src/                # Specific directory
codexia complexity --threshold 60      # Show files below threshold
codexia complexity --symbols           # Include per-symbol breakdown

📜 Git History Intelligence

Understand temporal patterns, ownership, and risk from git history.

codexia history                   # Full temporal analysis
codexia history --churn           # File change frequency
codexia history --ownership       # Code ownership & bus factor
codexia history --coupling        # Files that change together
codexia history --regression-risk # Regression-prone areas

🛡️ Architectural Invariants

Enforce architectural rules and boundaries automatically.

codexia invariants              # Check all invariants
codexia invariants --init       # Generate example config
codexia invariants --strict     # Fail on any violation

🔥 Hot Path Detection

Identify critical code paths and their impact.

codexia hotpaths                     # Auto-detect entry points
codexia hotpaths -e src/index.ts     # From specific entry
codexia hotpaths --trace handleReq   # Trace through symbol
codexia hotpaths --impact src/db.ts  # Impact on hot paths

📋 Changelog Generation

Generate semantic changelogs from git history.

codexia changelog --from v1.0.0           # Since tag
codexia changelog --from HEAD~20          # Last 20 commits
codexia changelog --include-api           # Include API changes
codexia changelog -o CHANGELOG.md         # Write to file

📦 Monorepo Support

Analyze multi-package repositories (npm, yarn, pnpm, lerna, nx, turborepo).

codexia monorepo --detect           # Detect packages
codexia monorepo --graph            # Package dependency graph
codexia monorepo --impact @org/core # Cross-package impact
codexia monorepo --cycles           # Circular dependencies

👀 Watch Mode

Live analysis as you code.

codexia watch              # Watch and scan on changes
codexia watch --signals    # Watch and detect signals
codexia watch --impact     # Watch and analyze impact
codexia watch --check      # Watch and check conventions

🤖 MCP Server (AI Integration)

Model Context Protocol server for AI assistant integration.

codexia mcp-server                # Start stdio server (for Claude)
codexia mcp-server --port 3000    # Start HTTP server

📊 Web Dashboard

Beautiful, real-time visualization of your repository health.

codexia dashboard                 # Start dashboard server
codexia dashboard --port 3200     # Custom port
codexia dashboard --open          # Auto-open in browser

The dashboard provides:

  • Repository Health Score — Overall health with breakdown
  • Complexity Heatmap — Visual file complexity overview

Security & Compliance

Security Controls

Codexia ships with secure-by-default settings for local use and supports optional hardening for enterprise deployments. See:

SOC 2 Alignment (Control Mapping)

Codexia provides technical controls that map to SOC 2 Common Criteria:

  • CC6 (Logical Access): Optional bearer-token auth for HTTP services, localhost binding by default.
  • CC7 (System Operations & Monitoring): Structured security logging for auth failures and invalid requests.
  • CC8 (Change Management): npm run security:check (lint, tests, dependency audit) for release gating.
  • CC9 (Risk Mitigation): Rate limiting and request size caps for public-facing endpoints.

Operational SOC 2 requirements (policies, access reviews, incident response, vendor risk) must be implemented by the deploying organization.

GDPR Considerations

  • Codexia processes repository source code and git metadata locally by default.
  • If you enable AI providers, content may be sent to third parties; treat this as data export.
  • Use data minimization: avoid sending sensitive files; set internal policy for secrets scanning.
  • Define retention for logs and caches, and document a data processing policy.

Codexia does not ship with a built-in DPA. Enterprises should execute their own DPA with AI providers if used.

  • Code Signals — Issues ranked by severity
  • Hot Paths — Critical areas needing attention
  • Team Leaderboard — Contributor stats and activity
  • Commit Activity — GitHub-style contribution heatmap
  • Code Ownership — Bus factor and knowledge silo risks
  • Branch Overview — Active and stale branches

AI Integration

Codexia includes optional AI-powered features for enhanced analysis:

Configuration

Set your preferred AI provider via environment variables:

# OpenAI
export OPENAI_API_KEY=sk-...

# Anthropic
export ANTHROPIC_API_KEY=sk-ant-...

# Ollama (local, free)
export OLLAMA_HOST=http://localhost:11434

Features

AI integration enables:

  • Smart commit message generation
  • Enhanced code explanations
  • Intelligent refactoring suggestions
  • Natural language queries about your codebase

The system gracefully falls back if no API keys are configured—all core analysis features work without AI.


Multi-Language Support

Codexia supports analysis across multiple programming languages:

| Language | Symbols | Dependencies | Complexity | |----------|---------|--------------|------------| | TypeScript/JavaScript | ✅ | ✅ | ✅ | | Python | ✅ | ✅ | ✅ | | Ruby | ✅ | ✅ | ✅ | | Java | ✅ | ✅ | ✅ | | Go | ✅ | ✅ | ✅ | | Rust | ✅ | ✅ | ✅ |


Installation

npm install -g codexia

Or use directly with npx:

npx codexia scan

Project Memory

Codexia uses a .codexia/ directory in your repository to store architectural knowledge:

.codexia/
├── architecture.md    # System design and module boundaries
├── conventions.md     # Coding standards and patterns
├── invariants.md      # Rules that must never be broken
└── adrs/              # Architecture Decision Records
    ├── ADR-0001.md
    └── ADR-0002.md

This "memory" is:

  • Human-readable — Plain Markdown files
  • Version-controlled — Part of your repo
  • AI-consumable — Structured for tooling

Invariants Configuration

Define architectural rules in codexia.invariants.yaml:

rules:
  - name: no-ui-in-core
    description: "Core modules should not import from UI layer"
    type: no-import
    from: "src/core/**"
    target: "src/ui/**"
    severity: error

  - name: max-dependencies
    description: "No file should have more than 15 imports"
    type: max-dependencies
    max: 15
    scope: "src/**"
    severity: warning

Supported rule types:

  • no-import — Prevent imports between modules
  • require-import — Require certain dependencies
  • layer-boundary — Enforce architectural layers
  • naming-pattern — Enforce naming conventions
  • max-dependencies — Limit import count
  • annotation-required — Require JSDoc annotations

MCP Integration

Codexia exposes a Model Context Protocol server for AI assistants:

# For Claude Desktop, add to claude_desktop_config.json:
{
  "mcpServers": {
    "codexia": {
      "command": "npx",
      "args": ["codexia", "mcp-server"]
    }
  }
}

Available MCP Tools

| Tool | Description | |------|-------------| | codexia_scan | Scan and index repository | | codexia_impact | Analyze change impact | | codexia_context | Get intelligent file context | | codexia_validate | Check conventions | | codexia_signals | Detect code signals | | codexia_tests | Suggest affected tests | | codexia_dependencies | Get dependency info | | codexia_hotpaths | Analyze critical paths | | codexia_complexity | Get complexity metrics | | codexia_memory | Access project memory |


Output Formats

All commands support JSON output for integration with other tools:

codexia scan --json
codexia impact --staged --json
codexia check --json
codexia complexity --json
codexia history --json

Philosophy

| Principle | Description | | -------- | ------------- | | Evidence-based | Every insight has a traceable source | | Deterministic | Same input, same output—no randomness | | Transparent | You can see exactly how conclusions are reached | | Composable | Works with your existing tools, not against them |


CLI Reference

Usage: codexia [options] [command]

Interactive Mode:
  codexia             Launch interactive wizard (no arguments)

Commands:
  init                Initialize .codexia directory
  scan                Scan and index repository
  impact              Analyze change impact
  check               Check conventions
  tests               Suggest affected tests
  signals             Detect code signals
  pr-report           Generate PR analysis report
  watch               Watch mode with live analysis
  graph               Visualize dependency graph
  complexity          Analyze code complexity
  history             Analyze git history patterns
  invariants          Check architectural invariants
  hotpaths            Detect critical code paths
  changelog           Generate semantic changelog
  monorepo            Analyze monorepo structure
  mcp-server          Start MCP server for AI tools
  dashboard           Start web dashboard

Options:
  --json              Output as JSON
  --format <format>   Output format (text, json, markdown)
  -v, --verbose       Verbose output
  -h, --help          Display help

When to Use Codexia

Use Codexia when:

  • You want to understand impact before merging
  • You need to enforce architectural boundaries
  • You want evidence-based PR reviews
  • You're onboarding to a new codebase
  • You need complexity and maintainability metrics
  • You want to understand code ownership and bus factor
  • You need to generate changelogs automatically
  • You're working with monorepos

Don't use Codexia when:

  • You need code generation (use Copilot, Cursor, etc.)
  • You want autocomplete suggestions
  • You need natural language explanations (pair with an LLM)

Integration with AI Tools

Codexia is designed to complement AI coding assistants:

  • GitHub Copilot — You write code, Codexia analyzes impact
  • Cursor — AI suggests changes, Codexia validates them
  • Claude/ChatGPT — LLM explains, Codexia provides evidence
  • Claude Desktop — Use MCP server for deep integration
# Feed Codexia output to your AI tool
codexia impact --staged --json | your-ai-tool --context

# Or use the MCP server directly
codexia mcp-server

License

AGPL-3.0