Search packages, repositories and app categories

Package detailsv0.23.19

pana

PAckage aNAlyzer - produce a report summarizing the health and quality of a Dart package.

AndroidiOSmacOSWindowsLinux
30-day downloads
689K
Likes
139
Pub points
140

Install package

flutter pub add pana

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Pana is a Dart package analyzer that evaluates the health, quality, and maintainability of a Dart package. It generates detailed reports on code structure, dependencies, documentation, and potential issues. Designed for developers and maintainers, it helps ensure packages meet best practices and are ready for public distribution. Pana integrates seamlessly into development workflows via command-line tools and CI/CD pipelines. It supports all major platforms including Android, iOS, macOS, Windows, and Linux.

Use cases

  • Assessing package quality before publishing
  • Identifying code and dependency issues
  • Improving documentation and maintainability
  • Integrating into CI/CD pipelines
  • Validating package health during development

Key features

  • Comprehensive health scoring
  • Dependency analysis
  • Documentation quality checks
  • Issue detection and reporting
  • Cross-platform support

Suitable for

  • Dart package maintainers
  • Open-source contributors
  • CI/CD automation
  • Quality assurance teams
  • Development teams using Flutter

Considerations

  • Requires command-line usage
  • Reports depend on package metadata
  • May need configuration for custom rules
  • Not a runtime tool
  • Best used in automated workflows

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Build Status

A library for analyzing Dart packages. It invokes executables from the Dart SDK (or from the Flutter SDK if the package uses Flutter).

Reports are created in the following categories:

Used by the Dart Package site.

Use as an executable

Installation
dart pub global activate pana
Usage

You can specify either a package (+ version) or a local directory to analyze:

Usage: pana [<options>] --hosted <published package name> [<version>]
       pana [<options>] <local directory>

Options:
      --dart-sdk               The directory of the Dart SDK.
      --flutter-sdk            The directory of the Flutter SDK.
      --exit-code-threshold    The exit code will indicate if (max - granted points) > threshold.
  -j, --json                   Output log records and full report as JSON.
      --hosted-url             The server that hosts <package>.
                               (defaults to "https://pub.dev")
      --hosted                 Download and analyze a hosted package (from https://pub.dev).
      --[no-]dartdoc           Run dartdoc and score the package on documentation coverage.
                               (defaults to on)
      --dartdoc-version        The dartdoc version to use: `sdk`, `latest` (default) or `<version constraint>`.
      --license-data           The path to the directory containing the SPDX license data.
      --project-root           The root directory path of the project (pub workspace or otherwise). Use this when the package is located in a subdirectory so pana can copy and analyze the entire project tree.

Categories

Dependencies

Dependency list 23 items

Source repository

Projects using this package

Rankings