lakos
2.0.7, released 8 months ago by olegalexander.com
Visualize internal Dart library dependencies and detect dependency cycles.
What it does
Lakos is a command line tool and library that visualizes internal Dart library dependencies in Graphviz dot format, detects dependency cycles, identifies orphan nodes, and computes dependency graph metrics.
AI-written summary of version 2.0.7, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to visualize and analyze internal library dependencies in a Dart project.
- You want to detect and prevent dependency cycles in CI pipelines.
Skip it when
- You are looking for a package-level dependency visualization tool (like pubviz).
- You rely on `library` and `part` directives instead of standard imports/exports.
Strengths
- Provides multiple output formats including Graphviz dot and JSON.
- Calculates useful metrics like CCD, ACD, NCCD, and node instability.
- Can be used as a CLI tool or integrated as a library.
Weaknesses
- Only supports `import` and `export` directives (not `library` and `part`).
- Requires external tools like Graphviz to render images from dot files.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 5
Install via pub.dev and optionally install Graphviz to render visual graphs.
lakos .Alternatives
Packages that do the same job and could replace lakos.
Works with
Packages commonly used together with lakos: ones it builds on, ones built on it, and its own family.
- globlakos depends on itA file and directory globbing library that supports Bash-style path matching and listing.
- argslakos depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- darqlakos depends on itPort of .NET LINQ and MoreLINQ functional enumerable extension methods to Dart.
- directed_graphlakos depends on itGeneric directed and weighted directed graph data structures with algorithms for sorting and paths.