pana
0.23.19, released 3 months ago by tools.dart.dev
Produce a report summarizing the health and quality of a Dart package
What it does
A library for analyzing Dart packages that invokes executables from the Dart SDK or Flutter SDK. It generates reports covering documentation, static analysis, dependencies, and Dart conventions.
AI-written summary of version 0.23.19, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to analyze the health and quality of a Dart package locally
- You are building tools that require package metrics and scoring reports
Skip it when
- You need a general-purpose runtime package manager rather than an analysis tool
Strengths
- Used directly by the official Dart Package site (pub.dev)
- Supports local directories or hosted packages from pub.dev
- Comprehensive health reporting across multiple categories
Weaknesses
- Requires access to the Dart SDK or Flutter SDK environments
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 23
Can be activated globally via pub using `dart pub global activate pana`.
dart pub global activate pana
pana --hosted <published package name>Alternatives
Packages that do the same job and could replace pana.
- talker
Advanced error handler and logger package for Flutter and Dart apps.
94Compare - talker_flutter
Advanced error handler and logger package for Flutter and Dart applications
93Compare - catcher_2
Plugin for automatic error catching and handling in Flutter apps.
87Compare - shake_flutter
Flutter plugin for automated bug reporting and session tracking.
75Compare
Works with
Packages commonly used together with pana: ones it builds on, ones built on it, and its own family.
- analyzerpana depends on itPerforms static analysis of Dart code for tool integration and embedding.
- yamlpana depends on itA Dart library for parsing YAML documents into Dart data structures.
- cryptopana depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- pub_semverpana depends on itVersions and version constraints implementing pub's versioning policy.
- iopana depends on itUtilities for the Dart VM Runtime including ANSI colors, file copying, and exit code values.
- pubspec_parsepana depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.
- asyncpana depends on itUtility classes and helpers that extend Dart's async library.
- source_spanpana depends on itStandard representation for source code locations, spans, and human-friendly error messages.