ArchSentinel 🛡️**The Guardian of Your Clean Architecture.** Visualize dependencies, detect cycles, and enforce architectural boundaries in real-time. 🌐 Visit Official Website 🚀 OverviewArchSentinel is a static analysis tool designed for teams who care about Software Architecture. It goes beyond simple linting by modeling your project as a directed graph to detect structural anomalies. Whether you follow Clean Architecture, Hexagonal, or Onion Architecture, ArchSentinel ensures your dependency rules are respected, preventing "Spaghetti Code" before it happens. ✨ Key Features1. 🏗️ Boundary EnforcementDefine strict rules in a simple JSON file. If your Domain Layer tries to import the Infrastructure Layer, ArchSentinel will flag it immediately inside the editor.
2. 🕸️ Interactive Architecture GraphVisualize your project's health with a physics-based graph.
3. 📐 Scientific Metrics (Instability)We calculate Robert C. Martin's Instability Metric (I) for every file: $$I = \frac{FanOut}{FanIn + FanOut}$$
4. 🔄 Circular Dependency DetectionDetects dangerous cycles (e.g., 5. 🛠️ Developer Experience (DX)
📸 Screenshots
⚙️ ConfigurationCreate a file named Example for Clean Architecture:
🛡️ Suppressing RulesSometimes you need to break the rules temporarily (e.g., legacy code or rapid prototyping). You can suppress a violation by adding a comment on the line before the import:
This will turn the error into a warning and change the edge color in the graph to Yellow. 📦 Installation
🤝 ContributingWe believe in open source! If you want to add support for Python, Java, or improve the graph visualization:
📝 LicenseDistributed under the MIT License. See |

