Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeopenapi_spec

Generate and parse OpenAPI specifications, producing client, server, and documentation code.

pub.devRemove
tonik

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

pub.devRemove
ScoresHealth4874 (best)
Maintenance989 (best)
Quality91100 (best)
Popularity2528 (best)
Community63 (best)58
Compatibility8585
UsageDownloads (30 days)3.7k4.5k (best)
Likes79 (best)
Pub points140 / 160160 / 160 (best)
GitHub stars15 (best)13
MaintenanceLatest release0.15.0, a year ago0.11.1, 4 weeks ago (best)
Major versions in 12 months00
Contributors5 (best)4
Publishertazatechnology.comottenweller.net
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesNo
Direct dependencies129 (best)
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Actively maintained, latest Dart SDK 3.8
  • Supports OpenAPI 3.1 and nullable types
  • Generates both client and server code, plus Swagger UI
  • 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 Dart 3.8, limiting older projects
  • No support for non-Dart code generation
  • Requires code regeneration whenever the OpenAPI specification changes.
WarningsNoneNone
openapi_spec vs tonik: which Flutter package should you use? | pubscout