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

claude-code-graph

v1.2.0

Published

Claude Code with live structural graphs for large codebases

Readme

Claude Code Graph

License: MIT

Claude Code with intelligent code graphs for large codebases

Claude Code Graph enhances Claude Code with live structural analysis of your codebase. It builds and maintains graphs of your code's architecture, dependencies, and relationships - giving Claude deep contextual understanding of even the largest projects.

🚀 Quick Start

Prerequisites

Make sure you have Claude Code installed first:

npm install -g @anthropic-ai/claude-code

Installation

  1. Install Claude Code Graph globally:

    npm install -g claude-code-graph
  2. Navigate to your project and start coding:

    cd your-project/
    ccg start

That's it! The first run will automatically:

  • Initialize graph structures
  • Build code analysis graphs
  • Start the live update daemon
  • Launch Claude Code with graph intelligence

🎯 What It Does

Claude Code Graph provides Claude with:

  • Dependency Analysis: Understand how files and modules relate to each other
  • Call Graph Mapping: Track function calls and inheritance chains across languages
  • AST Structure: Deep understanding of code syntax and semantics
  • Architecture Overview: High-level view of your codebase organization
  • Live Updates: Graphs stay current as you code

Supported Languages

  • JavaScript/TypeScript: Module dependencies via madge
  • Python: Call graphs via pyan3, import analysis
  • C/C++: Include dependencies, symbol analysis
  • Universal: AST parsing with tree-sitter for all languages

📋 Commands

| Command | Description | |---------|-------------| | ccg start | Launch Claude Code with graph intelligence (auto-setup) | | ccg doctor | Check system health and dependencies | | ccg status | Show current graph and daemon status | | ccg build | Manually rebuild all graphs | | ccg daemon start/stop | Manage live graph update daemon | | ccg init | Initialize graphs in new project (manual setup) |

🔧 Advanced Setup

Manual Workflow (if needed)

# 1. Initialize in your project
ccg init

# 2. Check dependencies 
ccg doctor

# 3. Build graphs
ccg build

# 4. Start daemon for live updates
ccg daemon start

# 5. Launch Claude Code
ccg start

Dependencies

Required:

  • Node.js 18+
  • Python 3.8+
  • madge (for JS/TS analysis)

Optional (improves analysis):

  • tree-sitter-cli: npm install -g tree-sitter-cli
  • pyan3: pip install pyan3
  • Python packages: pip install watchdog networkx psutil aiofiles

Check with: ccg doctor

📊 Performance

Claude Code Graph is optimized for large codebases:

  • Smart Filtering: Skips node_modules, build directories, etc.
  • File Limits: Processes up to 500 files for tree-sitter, 200 for C++, 50 for Python
  • Incremental Updates: Only processes changed files via daemon
  • Caching: Intelligent caching for faster subsequent runs

For projects with 1000+ files, initial graph building takes 2-5 minutes instead of 30+ minutes.

📁 Project Structure

your-project/
├── .graph/                 # Graph data (auto-created)
│   ├── js.json            # JavaScript/TypeScript modules  
│   ├── py.dot             # Python call graph
│   ├── cpp.json           # C++ dependencies
│   ├── ts.json            # Tree-sitter AST
│   ├── metrics.json       # Graph statistics
│   └── daemon.lock        # Daemon status
├── .gitignore             # Updated to exclude .graph/
└── your code...

🛠️ Development

# Clone the repo
git clone https://github.com/aibozo/claude-code.graph.git
cd claude-code-graph

# Install dependencies
npm install

# Build tools
npm run build

# Install globally for testing
npm install -g .

# Run tests
npm test

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes and test thoroughly
  4. Submit a pull request

📝 License

MIT License - see LICENSE.md for details.

🐛 Issues & Support

🔗 Links


Made with ❤️ for better AI-assisted coding