modularity_cli
LogoModularity

modularity_cli#

CLI tools for analyzing and visualizing Modularity module dependency graphs.

Provides utilities to introspect a module tree at build time and render the resulting dependency graph in a browser.

Key Classes#

Quick Start#

import 'package:modularity_cli/modularity_cli.dart';

void main() async {
  await GraphVisualizer.visualize(
    AppModule(),
    renderer: GraphRenderer.g6,
  );
}

Classes#

ClassDescription
DependencyRecord Metadata about a single dependency registration captured by RecordingBinder .
GraphVisualizer Generate and display module dependency graphs in a browser.
ModuleBindingsAnalyzer Analyzes a Module tree and produces ModuleBindingsSnapshot for each node by running its binds and exports phases against a RecordingBinder .
ModuleBindingsSnapshot Immutable snapshot of a Module 's dependency registrations.
ModuleEdge Represents a directed relationship between two modules in the graph.
ModuleGraphData Complete graph data structure containing all ModuleNode s and ModuleEdge s.
ModuleNode Represents a single module as a node in the dependency graph.
RecordingBinder Binder implementation that records registrations without instantiating any dependencies.

Enums#

EnumDescription
DependencyRegistrationKind Classification of how a dependency is registered in a Binder .
GraphRenderer Available visualization renderers.
ModuleEdgeType Types of directed relationships between modules in the dependency graph.

Extensions#

ExtensiononDescription
DependencyRegistrationKindLabel DependencyRegistrationKind Provide a human-readable label for each DependencyRegistrationKind value.