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
source_gen

Source code generation builders and utilities for the Dart build system.

pub.devRemove
ScoresHealth7884 (best)
Maintenance87 (best)86
Quality91 (best)81
Popularity4687 (best)
Community8080
Compatibility8585
UsageDownloads (30 days)310k7.6M (best)
Likes5191 (best)
Pub points140 / 160150 / 160 (best)
GitHub stars271493 (best)
MaintenanceLatest release0.15.3, 4 weeks ago (best)4.3.1, 5 weeks ago
Major versions in 12 months00
Contributors3948 (best)
Publishergql-dart.devtools.dart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoYes
Direct dependencies109 (best)
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)
  • Exposes a developer-friendly API on top of lower-level analyzer and build packages
  • Supports multiple code generators integrating seamlessly in the same project via shared part builders
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 understanding of the Dart build system and analyzer APIs
WarningsNoneNone
gql_code_builder vs source_gen: which Flutter package should you use? | pubscout