@me-mayank/arc
v3.2.7
Published
Architecture Relationship Compiler (ARC) - visualize and understand code dependencies
Downloads
851
Maintainers
Readme
ARC — Architecture Relationship Compiler
ARC is a CLI tool that analyzes your codebase and visualizes how files are connected.
It helps you understand dependencies, explore unfamiliar projects, and reason about architecture quickly.
🚀 Quick Start
npm install -g @me-mayank/arc
arc . --backendOr run without installing:
npx @me-mayank/arc . --backend📌 What ARC Does
ARC analyzes your project and generates:
- Dependency graphs
- Readable summaries
- Project structure
Instead of manually tracing imports, ARC gives you a clear architectural overview instantly.
🧩 Supported Environments
ARC is currently designed for:
- JavaScript
- Node.js projects
- React (basic frontend support)
⚠️ Other languages are not supported yet.
🤖 Why ARC is Useful with AI
Modern AI tools require relevant code context to generate accurate results.
ARC helps by:
- Identifying only the relevant files and dependencies
- Reducing the amount of code you need to share with AI tools
- Improving the quality of AI-generated responses
Instead of passing large parts of a codebase, ARC lets you provide focused, structured context, making AI-assisted development more efficient.
📌 Usage
arc <path> [mode]Example:
arc . --backend🧠 Modes
Backend Mode (Stable)
arc . --backend- File-level dependency analysis
- Graph generation
- Metadata output
Frontend Mode (Experimental)
arc . --frontend- Component relationships
- Basic route analysis
⚠️ Frontend analysis is experimental and may produce incomplete results.
Full Mode
arc . --fullRuns both backend and frontend analysis.
📂 Output
ARC generates:
- PNG Graph — Visual dependency graph (requires Graphviz)
- DOT File — Graph structure
- Text Report — Readable dependency summary
- Structure File — Project directory structure
- Metadata JSON — Machine-readable analysis
⚠️ Graphviz Requirement
Graphviz is required to generate PNG graphs.
If not installed:
- PNG generation is skipped
- Other outputs still work
📦 Install Graphviz
macOS
brew install graphvizLinux
sudo apt install graphvizWindows
winget install Graphviz.Graphviz🔍 Verify Installation
dot -V🪟 Windows PATH Fix
If dot is not recognized after installing Graphviz:
- Open System Environment Variables
- Click Environment Variables
- Under System Variables, select
Path - Click Edit
- Add:
C:\Program Files\Graphviz\bin- Restart your terminal
Then verify again:
dot -V🧩 Example Workflow
cd your-project
arc . --backendYou will get:
- Dependency graph
- Text summary
- Project structure
📄 Documentation
👉 https://bit.ly/arc_docs
👨💻 Author
Mayank Tripathi https://github.com/me-mayank
⭐ Support
If you find ARC useful, consider starring the repository.
