Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeswagger_parser

Generate Dart models and HTTP clients from Swagger and OpenAPI schemas.

pub.devRemove
tonik

Pure Dart OpenAPI 3.0/3.1 code generator for type-safe API client packages.

pub.devRemove
ScoresHealth87 (best)74
Maintenance98 (best)89
Quality97100 (best)
Popularity68 (best)28
Community80 (best)58
Compatibility8585
UsageDownloads (30 days)125k (best)4.5k
Likes124 (best)9
Pub points160 / 160160 / 160
GitHub stars307 (best)13
MaintenanceLatest release2.3.0, 4 days ago (best)0.11.1, 4 weeks ago
Major versions in 12 months10 (best)
Contributors61 (best)4
Publishercarapacik.devottenweller.net
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesNo
Direct dependencies7 (best)9
LicenseMITMIT
Setup effortMediumLow
JudgementStrengths
  • Supports multiple client and serializer options including Retrofit, Dio, Freezed, and dart_mappable.
  • Provides CLI commands to validate schemas and check files without writing.
  • Generates distinct types for every status code and content type combination.
  • Pure Dart implementation with no JVM or Docker requirement.
  • Supports all OpenAPI parameter encoding styles and advanced composition features like oneOf and allOf.
Weaknesses
  • Requires updating to Dart ^3.13.0 for version 2.0.0.
  • Breaking changes in v2.0.0 require migrating v1 configurations.
  • Requires code regeneration whenever the OpenAPI specification changes.
WarningsNoneNone
swagger_parser vs tonik: which Flutter package should you use? | pubscout