Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeopenapi_generator

Generator for OpenAPI client SDKs in Dart and Flutter projects.

pub.devRemove
tonik

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

pub.devRemove
ScoresHealth6774 (best)
Maintenance3989 (best)
Quality84100 (best)
Popularity57 (best)28
Community80 (best)58
Compatibility100 (best)85
UsageDownloads (30 days)15k (best)4.5k
Likes126 (best)9
Pub points130 / 160160 / 160 (best)
GitHub stars173 (best)13
MaintenanceLatest release7.0.0, 6 months ago0.11.1, 4 weeks ago (best)
Major versions in 12 months10 (best)
Contributors17 (best)4
Publisherdevappliance.comottenweller.net
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationYesNo
Direct dependencies119 (best)
LicenseBSD-3-CLAUSEMIT
Setup effortMediumLow
JudgementStrengths
  • Automates client SDK generation from standard OpenAPI specs.
  • Supports both local file and remote URL specifications with caching.
  • 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 Java to be installed and available in the system PATH.
  • Issues with generated code often need to be addressed in the base OpenApi library rather than this wrapper.
  • Requires code regeneration whenever the OpenAPI specification changes.
WarningsNoneNone
openapi_generator vs tonik: which Flutter package should you use? | pubscout