Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributejson_serializable

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

pub.devRemove
pigeon

Type-safe code generator for communication between Flutter and host platforms.

pub.devRemove
ScoresHealth93 (best)90
Maintenance9099 (best)
Quality100 (best)88
Popularity93 (best)88
Community100 (best)80
Compatibility8585
UsageDownloads (30 days)4.5M (best)925k
Likes4k (best)1.3k
Pub points160 / 160160 / 160
GitHub stars1.6k5.3k (best)
MaintenanceLatest release6.15.2, 5 weeks ago30.0.4, 4 days ago (best)
Major versions in 12 months0 (best)4
Contributors51100+ (best)
Publishergoogle.devflutter.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesNo
Direct dependencies1210 (best)
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortLowMedium
JudgementStrengths
  • Eliminates boilerplate for JSON parsing and serialization
  • Supports custom type converters, enums, and JSON Schema generation
  • Supports multiple host targets: Android (Kotlin/Java), iOS/macOS (Swift/Obj-C), Windows (C++), and Linux (GObject).
  • Offers both standard platform channels and high-performance native interop (direct Dart FFI and JNI).
  • Generates typed data models, error handling, asynchronous wrappers, and event channels.
Weaknesses
  • Requires running a code generator (build_runner) during development
  • Generated files add to your source tree and require regeneration on model changes
  • Frequent breaking changes in generated code across package updates make it unsuitable for public API exposure.
  • Native interop mode is complex to set up and has preview limitations regarding multi-engine routing.
WarningsNoneNone
json_serializable vs pigeon: which Flutter package should you use? | pubscout