Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributegql_code_builder

Dart code builder generating typed classes from GraphQL documents and SDL

pub.devRemove
json_serializable

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

pub.devRemove
ScoresHealth7894 (best)
Maintenance8791 (best)
Quality91100 (best)
Popularity4693 (best)
Community80100 (best)
Compatibility8585
UsageDownloads (30 days)310k4.5M (best)
Likes54k (best)
Pub points140 / 160160 / 160 (best)
GitHub stars2711.6k (best)
MaintenanceLatest release0.15.3, 4 weeks ago (best)6.15.2, 4 weeks ago
Major versions in 12 months00
Contributors3951 (best)
Publishergql-dart.devgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoYes
Direct dependencies10 (best)12
LicenseMITBSD-3-CLAUSE
Setup effortMediumLow
JudgementStrengths
  • Integrates directly with code_builder and analyzer for fine-grained code generation
  • Supports advanced GraphQL features like fragment spreads, inline fragments, and tristate values (null vs absent)
  • Eliminates boilerplate for JSON parsing and serialization
  • Supports custom type converters, enums, and JSON Schema generation
Weaknesses
  • The API is explicitly unstable and intended primarily for internal use by package:gql_build
  • Documentation and examples are minimal in the package README
  • Requires running a code generator (build_runner) during development
  • Generated files add to your source tree and require regeneration on model changes
WarningsNoneNone
gql_code_builder vs json_serializable: which Flutter package should you use? | pubscout