pubviz
6.3.0, released 2 months ago by kevmoo.com
A tool to visualize package dependencies and version constraints in your Dart project.
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
87Compare - alice_lightweight
A lightweight HTTP inspector for Flutter to view network requests and responses.
77Compare - dswitch
CLI tool to rapidly switch between channels and versions of standalone Dart.
69Compare - lakos
Visualize internal Dart library dependencies and detect dependency cycles.
61Compare
Works with
Packages commonly used together with pubviz: ones it builds on, ones built on it, and its own family.
- yamlpubviz depends on itA Dart library for parsing YAML documents into Dart data structures.
- pub_semverpubviz depends on itVersions and version constraints implementing pub's versioning policy.
- stack_tracepubviz depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- iopubviz depends on itUtilities for the Dart VM Runtime including ANSI colors, file copying, and exit code values.
- webpubviz depends on itLightweight bindings for browser APIs via JS interop
- pubspec_parsepubviz depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.
- shelfpubviz depends on itComposable web server middleware for Dart
- json_annotationpubviz depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.