Skip to content
pubscout

lakos

2.0.7, released 8 months ago by olegalexander.com

Visualize internal Dart library dependencies and detect dependency cycles.

$ flutter pub add lakos
Source repository

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.

  • pubviz

    A tool to visualize package dependencies and version constraints in your Dart project.

Works with

Packages commonly used together with lakos: ones it builds on, ones built on it, and its own family.