Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeacanthis

A type-safe and composable data validation library for Dart and Flutter.

pub.devRemove
luthor

A Dart validation library inspired by Zod with optional code generation support.

pub.devRemove
ScoresHealth7577 (best)
Maintenance8194 (best)
Quality9797
Popularity51 (best)17
Community5874 (best)
Compatibility85100 (best)
UsageDownloads (30 days)6.8k (best)500
Likes50 (best)24
Pub points160 / 160160 / 160
GitHub stars57 (best)29
MaintenanceLatest release2.0.0, 8 weeks ago1.1.0, 7 days ago (best)
Major versions in 12 months11
Contributors47 (best)
Publisherserinus.appex3.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationNoYes
Direct dependencies40 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Type-safe and composable schema definitions
  • Supports synchronous and asynchronous validation
  • Can export schemas to JSON Schema 2020-12 and OpenAPI 3.1
  • Fluent and intuitive API inspired by Zod.
  • Supports optional code generation for type-safe SchemaKeys and ErrorKeys.
  • Zero runtime dependencies.
Weaknesses
  • Relatively new package with frequent breaking changes in recent versions
  • Requires Dart 3.11 or later.
  • Requires learning a custom validation rule syntax and API.
WarningsNoneNone
acanthis vs luthor: which Flutter package should you use? | pubscout