dep_graph_visualizer library
Circular dependency and import graph visualizer for Dart and Flutter projects.
Classes
- Cycle
- Describes a detected circular dependency group (Strongly Connected Component).
- DependencyExplainer
- Explains dependency paths and SCC membership for individual target files.
- DependencyGraph
- Represents the dependency graph of a scanned Dart project.
- DepGraphConfig
-
Project-level configuration options loaded from
dep_graph.yamlorpubspec.yaml. - DotExporter
- Exports the dependency graph and cycle analysis into Graphviz DOT syntax.
- FileNode
- Represents a scanned Dart file in a project.
- GraphEdge
- Represents a directed edge from from to to in the dependency graph.
- HtmlExporter
- Centerpiece interactive HTML visualizer exporter.
- JsonExporter
- Exports scan results and detected circular dependency SCCs to machine-readable JSON format.
- LayerDefinition
- Layer definition for Clean Architecture / Layer boundary rules.
- LayerValidator
- Validates dependency graph edges against configured Clean Architecture layers.
- LayerViolation
- Violation record for Clean Architecture layer rule checking.
- MermaidExporter
-
Exports dependency graphs to Mermaid markdown flowchart format (
.mmd), suitable for native rendering in GitHub/GitLab PRs and markdown files. - ProjectScanner
- Scans a Dart/Flutter project or monorepo workspace directory to discover files and dependency edges.
- PubspecReader
- Reads pubspec.yaml files to extract package and workspace information.
- ScanResult
- Holds the output of scanning a project repository.
- SccComponent
- Represents a Strongly Connected Component (SCC) in the dependency graph with architectural severity metrics.
- TextReporter
- Formats and prints scan results and detected cycles to text (terminal).
- WorkspacePackage
- Represents a package in a Dart 3.5+ workspace or monorepo.