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
text_parser

A Dart package for parsing text flexibly using multiple regular expression patterns.

pub.devRemove
ScoresHealth93 (best)46
Maintenance87 (best)4
Quality100100
Popularity97 (best)16
Community80 (best)41
Compatibility100100
UsageDownloads (30 days)18M (best)1.3k
Likes403 (best)8
Pub points160 / 160160 / 160
GitHub stars490 (best)9
MaintenanceLatest release7.1.0, 8 weeks ago (best)2.4.0, 2 years ago
Major versions in 12 months00
Contributors18 (best)1
Publisherlukas-renggli.chkaboc.cc
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies21 (best)
LicenseMITMIT
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.
  • Includes useful preset matchers for URLs, emails, and phone numbers.
  • Supports running parsing tasks in an isolate to prevent UI jank.
  • Allows custom matchers and exact string matching with escaped regex characters.
Weaknesses
  • Steeper learning curve for developers unfamiliar with parser combinators.
  • May be overkill for trivial string manipulation tasks.
  • Reliance on regular expressions can become hard to maintain for highly complex nested grammars.
  • Named capture groups lose their names in the resulting groups list.
WarningsNoneNone
petitparser vs text_parser: which Flutter package should you use? | pubscout