Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecsslib

A Dart library that parses CSS strings or byte lists into an AST.

pub.devRemove
petitparser

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

pub.devRemove
ScoresHealth5093 (best)
Maintenance5287 (best)
Quality100100
Popularity8797 (best)
Community8080
Compatibility100100
UsageDownloads (30 days)12M18M (best)
Likes64403 (best)
Pub points160 / 160160 / 160
GitHub stars123490 (best)
MaintenanceLatest release1.0.2, 2 years ago7.1.0, 8 weeks ago (best)
Major versions in 12 months00
Contributors100+ (best)18
Publishertools.dart.devlukas-renggli.ch
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies1 (best)2
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Pure Dart, no platform‑specific code
  • Works on all Flutter platforms
  • Supports many CSS units and functions
  • 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.
Weaknesses
  • Only parses, does not render or apply styles
  • May lag behind the latest CSS specifications
  • Steeper learning curve for developers unfamiliar with parser combinators.
  • May be overkill for trivial string manipulation tasks.
Warnings
  • Quiet but busy
None
csslib vs petitparser: which Flutter package should you use? | pubscout