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

project-brain-cli

v1.0.0

Published

A persistent intelligence layer for AI coding agents

Readme

Project Brain

A persistent intelligence layer for AI coding agents.

Project Brain builds a semantic understanding of your codebase and provides context to AI coding agents. It indexes your project structure, symbols, dependencies, workflows, and architecture to enable intelligent code navigation and context-aware assistance.

Features

  • Code Intelligence: Analyzes source code to extract symbols, relationships, and dependencies
  • Knowledge Indexing: Builds a structured knowledge base from your codebase
  • RAG-Based Context: Retrieves relevant context using vector search
  • MCP Integration: Exposes a Model Context Protocol server for AI agent integration
  • Incremental Sync: Tracks changes and syncs knowledge incrementally
  • Impact Analysis: Determines what would be affected by code changes
  • Workflow Tracing: Discovers and traces feature workflows across the codebase

Installation

npm install -g project-brain-cli

Quick Start

# Initialize Project Brain in your project
project-brain init

# Scan the repository and create a project inventory
project-brain study

# Check the current status
project-brain status

# Incrementally sync after code changes
project-brain sync

# Start the MCP server for AI agent integration
project-brain mcp

Commands

| Command | Description | |---------|-------------| | init [options] | Initialize Project Brain in the current repository | | study [options] | Scan the repository and create a project inventory | | status | Show Project Brain status | | analyze [options] | Analyze source code and build code intelligence | | explain <query> | Explain a module or symbol from project knowledge | | knowledge [options] | Build project knowledge from code intelligence | | explain-module <module> | Explain a module using project knowledge | | index [options] | Build the RAG index for vector search | | sync [options] | Incrementally sync project knowledge | | watch [options] | Watch for changes and sync automatically | | ask [options] <query> | Ask a question about the codebase | | impact [options] <symbol> | Analyze the impact of changing a symbol | | trace-workflow [options] <query> | Trace how a feature/workflow works | | context [options] <task> | Build minimal sufficient context for a task | | eval [options] | Benchmark Project Brain context quality | | mcp [options] | Start the MCP server |

MCP Tools

When running project-brain mcp, the following tools are exposed:

  • project_overview - Get project technology, modules, and statistics
  • search_project - Search for symbols and files
  • get_symbol - Get detailed information about a symbol
  • find_references - Find all references to a symbol
  • find_dependencies - Find dependencies of a symbol
  • explain_module - Get an explanation of a module
  • get_architecture - Get project architecture information
  • build_context - Build minimal context for a task
  • impact_analysis - Analyze the impact of changing a symbol
  • trace_workflow - Trace a workflow through the codebase

Configuration

Project Brain creates a .project-brain/ directory in your project root to store configuration and indexed data. This directory should be added to your .gitignore.

Supported Languages

  • TypeScript (.ts, .tsx)
  • JavaScript (.js, .jsx)

Privacy & Security

  • No data is sent to external servers by default
  • All processing happens locally
  • No API keys or credentials are stored in the project
  • Secrets in code are automatically redacted from the knowledge base

Development

# Install dependencies
npm install

# Run typecheck
npm run typecheck

# Run tests
npm test

# Build for production
npm run build

# Run in development mode
npm run dev

License

MIT