Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebuild

Package for authoring build_runner compatible code generators.

pub.devRemove
gql_code_builder

Dart code builder generating typed classes from GraphQL documents and SDL

pub.devRemove
ScoresHealth87 (best)78
Maintenance90 (best)87
Quality93 (best)91
Popularity85 (best)46
Community8080
Compatibility8585
UsageDownloads (30 days)8.1M (best)310k
Likes102 (best)5
Pub points150 / 160 (best)140 / 160
GitHub stars871 (best)271
MaintenanceLatest release5.0.0, 5 weeks ago0.15.3, 4 weeks ago (best)
Major versions in 12 months10 (best)
Contributors100+ (best)39
Publisherdart.devgql-dart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesNo
Direct dependencies6 (best)10
LicenseBSD-3-CLAUSEMIT
Setup effortMediumMedium
JudgementStrengths
  • Provides the core underlying Builder interface used across the Dart build ecosystem.
  • Gives easy access to the analyzer for processing and resolving Dart source code.
  • 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)
Weaknesses
  • Low-level compared to source_gen, requiring more manual handling of build steps.
  • Major version updates can introduce breaking changes for packages implementing BuildStep.
  • The API is explicitly unstable and intended primarily for internal use by package:gql_build
  • Documentation and examples are minimal in the package README
WarningsNoneNone
build vs gql_code_builder: which Flutter package should you use? | pubscout