Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributepetitparser

Build fast, composable, and type-safe grammars and parsers in plain Dart code.

pub.devRemove
string_scanner

A class for parsing strings using a sequence of patterns.

pub.devRemove
ScoresHealth93 (best)81
Maintenance87 (best)53
Quality100 (best)96
Popularity97 (best)94
Community8080
Compatibility100100
UsageDownloads (30 days)18M (best)14M
Likes403 (best)222
Pub points160 / 160 (best)150 / 160
GitHub stars490 (best)123
MaintenanceLatest release7.1.0, 8 weeks ago (best)1.4.1, 2 years ago
Major versions in 12 months00
Contributors18100+ (best)
Publisherlukas-renggli.chtools.dart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies21 (best)
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Fully type-safe using modern Dart features and records.
  • Highly composable with a rich set of combinators and builders.
  • No external code generators required.
  • Built-in tools for debugging and viewing execution trees.
  • Simplifies sequential string parsing with patterns.
  • Provides helpful methods for expectations and matching errors.
Weaknesses
  • Steeper learning curve for developers unfamiliar with parser combinators.
  • May be overkill for trivial string manipulation tasks.
  • Requires manual imperative parsing logic for complex grammars.
WarningsNone
  • Quiet but busy
petitparser vs string_scanner: which Flutter package should you use? | pubscout