Description
napi is an offline command line tool that analyzes the architecture of a codebase: its dependencies, complexity and structure. It generates dependency manifests from your source code, stores them locally, and serves an interactive graph visualizer from the CLI in your browser. It maps every file, symbol and dependency, and its audit command flags files and symbols that exceed complexity, size or coupling thresholds. You can extract specific functions, classes or symbols into standalone files for refactoring. The core analysis is fully offline and needs no accounts or servers. An optional labeling step can use OpenAI, Google or Anthropic models to label dependencies. napi supports Python, C#, C and Java, with C++, PHP and JS/TS in progress. On Unix systems it installs from a script or a release binary, and on Windows you use WSL until native support is ready. The project suggests running napi in CI to generate manifests on every push and track architecture over time. The quick start saves manifests in the .napi/manifests folder and opens the visualizer on localhost port 3000.…
Highlights
- Offline architecture analysis of your codebase
- Audit for complexity, size and coupling
- Interactive dependency graph in the browser
- Extract symbols into standalone files
- Supports Python, C#, C and Java
Ratings & Reviews
No ratings yet
Be the first to rate Napi.
People also visit
Napi FAQ
What does napi do?
It analyzes a codebase's dependencies, complexity and structure, then lets you visualize and refactor it.
Does my code leave my machine?
The README says the core analysis is fully offline. Only the optional AI labeling step calls OpenAI, Google or Anthropic models.
Which languages are supported?
Python, C#, C and Java. C++, PHP and JS/TS are in progress.
How do I use it on Windows?
Through WSL, since native Windows support is still in progress.
How do I start?
Run napi init to create a configuration file, then follow the quick start to generate a manifest and open the visualizer at localhost port 3000.
What are the best Napi alternatives?
Popular alternatives to Napi include GraphMind, Oh My Mermaid and Gograph. See all Napi alternatives











