Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributehive_generator

Generates Hive TypeAdapter code for Dart classes automatically.

pub.devRemove
json_serializable

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

pub.devRemove
ScoresHealth5094 (best)
Maintenance191 (best)
Quality74100 (best)
Popularity7693 (best)
Community80100 (best)
Compatibility8585
UsageDownloads (30 days)170k4.5M (best)
Likes4264k (best)
Pub points100 / 160160 / 160 (best)
GitHub stars4.4k (best)1.6k
MaintenanceLatest release2.0.1, 3 years ago6.15.2, 5 weeks ago (best)
Major versions in 12 months00
Contributors4951 (best)
Publisherhivedb.devgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies5 (best)12
LicenseUNKNOWNBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Eliminates manual adapter boiler‑plate
  • Supports null‑safety, inheritance, default values, and various field types
  • Works with build_runner and stays up‑to‑date with Hive versions
  • Eliminates boilerplate for JSON parsing and serialization
  • Supports custom type converters, enums, and JSON Schema generation
Weaknesses
  • Requires build_runner step in CI/build process
  • Only works with Hive; not a generic serialization solution
  • Requires running a code generator (build_runner) during development
  • Generated files add to your source tree and require regeneration on model changes
Warnings
  • Quiet but busy
None
hive_generator vs json_serializable: which Flutter package should you use? | pubscout