ArchMetrics
Analyzes compiled Java bytecode to identify architectural issues, measure package stability, and detect Hexagonal Architecture violations.
ArchMetrics is a local server that processes compiled Java bytecode to generate detailed reports on a project's architectural health. It provides critical insights into package stability, coupling, and dependency cycles, as well as adherence to Hexagonal Architecture principles. By analyzing `.class` files directly, it offers an accurate view of the project's structure without requiring modifications to the source code, making it an invaluable tool for developers and architects seeking to maintain high-quality software design.
Key Features
01Calculates Main Sequence metrics (abstractness, instability, coupling, distance from ideal)
02Identifies Hexagonal Architecture fitness, boundary violations, and provides actionable scores
03Detects and visualizes package and module dependency cycles and topology
04Provides detailed coupling analysis, categorizing incoming and outgoing dependencies
05Supports suppression of known package-zone warnings for tailored analysis
060 GitHub stars
Use Cases
01Integrate with an MCP client (e.g., Claude Code) to ask AI assistants about architectural quality
02Track architectural drift over time using timestamped JSON snapshots of package metrics
03Identify and fix `DOMAIN → ADAPTER` and `PORT → ADAPTER` dependency violations in Hexagonal Architectures