Skip to content
pubscout

pubviz

6.3.0, released 2 months ago by kevmoo.com

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

$ flutter pub add pubviz
Source repository

What it does

Pubviz generates interactive visualizations of dependency graphs and version constraints for Dart and Flutter projects. It supports opening an interactive web UI, or printing raw GraphViz DOT and Mermaid flowchart formats to the command line.

AI-written summary of version 6.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to inspect or document the dependency tree of a Dart or Flutter project.
  • You need to identify outdated packages or visualize a Dart pub workspace graph.

Skip it when

  • You are looking for a library to manage package states or runtime code generation inside your application.

Strengths

  • Provides both a local web UI and raw text export options (DOT and Mermaid).
  • Automatically infers Dart workspace context.
  • Can check pub.dev for latest package versions and highlight outdated dependencies.

Weaknesses

  • Requires external tools like GraphViz installed on your machine for certain image export formats.

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
16

Can be run directly via `dart run pubviz@` or installed globally with `dart install pubviz`.

dart run pubviz@

Alternatives

Packages that do the same job and could replace pubviz.

  • fvm

    CLI to manage Flutter SDK versions per project

  • alice_lightweight

    A lightweight HTTP inspector for Flutter to view network requests and responses.

  • dswitch

    CLI tool to rapidly switch between channels and versions of standalone Dart.

  • lakos

    Visualize internal Dart library dependencies and detect dependency cycles.

Works with

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