Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedrift_dev

Generates Dart database code from Drift table definitions as a dev‑dependency.

pub.devRemove
json_serializable

Automatically generate code for converting Dart classes to and from JSON.

pub.devRemove
ScoresHealth8494 (best)
Maintenance96 (best)91
Quality72100 (best)
Popularity7993 (best)
Community80100 (best)
Compatibility8585
UsageDownloads (30 days)1.6M4.5M (best)
Likes724k (best)
Pub points130 / 160160 / 160 (best)
GitHub stars3.3k (best)1.6k
MaintenanceLatest release2.35.3, 12 days ago (best)6.15.2, 4 weeks ago
Major versions in 12 months00
Contributors100+ (best)51
Publishersimonbinder.eugoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies2512 (best)
LicenseMITBSD-3-CLAUSE
Setup effortMediumLow
JudgementStrengths
  • Seamless integration with build_runner and the drift ecosystem
  • Supports latest analyzer, cli_util, and build versions
  • Handles reserved Dart keywords and SQL column name conflicts automatically
  • Eliminates boilerplate for JSON parsing and serialization
  • Supports custom type converters, enums, and JSON Schema generation
Weaknesses
  • Requires a build step, adding compile time to the workflow
  • Only a dev‑dependency; no runtime functionality on its own
  • Requires running a code generator (build_runner) during development
  • Generated files add to your source tree and require regeneration on model changes
WarningsNoneNone
drift_dev vs json_serializable: which Flutter package should you use? | pubscout