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

@anhnguyen02/catlas

v1.0.9

Published

Graph-powered code intelligence for AI agents.

Readme

🐱 Catlas

Graph-powered code intelligence for AI agents.

Catlas is a high-performance code analysis engine that transforms complex repositories into structured knowledge graphs. Built for the era of agentic coding, it enables AI agents to understand architecture, reason about dependencies, and navigate codebases with expert-level precision.


🚀 Key Features

  • Graph-Based Ingestion: Maps symbols (classes, functions, methods) and their relationships (calls, imports, inheritance) using high-precision Tree-sitter parsers.
  • Community Detection: Implements the Leiden Algorithm to detect functional clusters, helping agents understand how different modules work together beyond directory structures.
  • Hybrid Search: Combines BM25 keyword search with vector embeddings for deep semantic retrieval of code concepts.
  • Intelligence Synthesis: Automatically generates AI context files and specialized "skills" for agents like Claude, Gemini, and GPT.
  • Multi-Language Support: Professional-grade parsing for TypeScript, JavaScript, Python, Go, Rust, Java, C/C++, Ruby, and more.

📦 Installation

Install globally via npm:

npm install -g @anhnguyen02/catlas

Or run directly using npx:

npx @anhnguyen02/catlas analyze

🛠 CLI Reference

| Command | Description | | ------------- | ---------------------------------------------------------------- | | analyze | Initialize or rebuild the knowledge graph for a repository. | | list | Enumerate all registered repositories and their stats. | | status | Retrieve index health for the current repository context. | | query | Search execution flows via concept-based semantic lookup. | | context | 360-degree symbol inspection: call graph and flow participation. | | impact | Blast radius analysis: transitively map structural dependants. | | eval | Run the baseline eval suite for core workflows. | | cypher | Execute raw Cypher against the underlying knowledge graph. | | ui | Start local web UI dashboard for code intelligence overview. | | eval-server | Start persistence daemon for low-latency tool access. | | clean | Purge Catlas index and registry state. |

🧩 MCP Tools Reference

When connected via Model Context Protocol, Catlas exposes these tools to AI agents:

| Tool | Purpose | | ---------------- | --------------------------------------------------------------- | | list_repos | List all indexed repositories available for analysis. | | query | Concept-based semantic search for execution flows. | | context | 360-degree view of a single code symbol (callers, callees). | | impact | Analyze the blast radius of changing a code symbol. | | detect_changes | Trace the impact of uncommitted git changes on execution flows. | | rename | Multi-file coordinated symbol rename via the knowledge graph. | | route_map | Map API routes to frontend components and backend handlers. | | tool_map | Inspect MCP/RPC tool definitions and their handlers. | | shape_check | Validate API response shapes against their consumers. | | api_impact | Risk assessment for changing an API endpoint. |

MCP Output Contract

Catlas also exposes catlas://contract, a shared semantics reference for output fields across MCP-facing tools.

  • confidence: confidence in the included item or conclusion, not completeness
  • partial: result is incomplete or truncated
  • ambiguous: multiple plausible matches remain
  • inferred: result was synthesized from graph or heuristic evidence
  • evidence_source: direct, graph, semantic, heuristic, or mixed

🏗 How it Works

Catlas operates in three main phases:

  1. Ingestion: Parallel parsing of source files into an Abstract Syntax Tree (AST) and extraction of structural symbols.
  2. Structural Mapping: Building a multi-relational graph of how code interacts across file boundaries.
  3. Intelligence Synthesis: Running community detection to identify "functional heartbeats" of the codebase and generating metadata for AI consumption.

📜 License

Distributed under a Non-Commercial License. See LICENSE for more information.


Built with ❤️ by anhnguyen.