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
scratch_space

Manages running external executables within package:build via a temporary directory wrapper.

pub.devRemove
ScoresHealth94 (best)72
Maintenance91 (best)71
Quality100 (best)81
Popularity93 (best)47
Community100 (best)80
Compatibility8585
UsageDownloads (30 days)4.5M (best)236k
Likes4k (best)9
Pub points160 / 160 (best)150 / 160
GitHub stars1.6k (best)872
MaintenanceLatest release6.15.2, 5 weeks ago (best)1.2.2, 5 months ago
Major versions in 12 months00
Contributors51100+ (best)
Publishergoogle.devtools.dart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesNo
Direct dependencies124 (best)
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Eliminates boilerplate for JSON parsing and serialization
  • Supports custom type converters, enums, and JSON Schema generation
  • Simplifies integration of external binaries into package:build
  • Provides asset synchronization via digests and helper methods for copying outputs back
Weaknesses
  • Requires running a code generator (build_runner) during development
  • Generated files add to your source tree and require regeneration on model changes
  • Cannot delete individual assets from a scratch space currently, only the entire space
  • Requires proper handling of temporary resources to avoid filling up the disk
WarningsNoneNone
json_serializable vs scratch_space: which Flutter package should you use? | pubscout