API Library Synchronizer
Synchronizes handwritten API wrappers with generated code contracts to maintain architectural alignment and type safety.
The API Library Synchronizer (api-lib-sync) is a specialized skill designed to bridge the gap between auto-generated API contracts and custom application wrappers. It automates the process of auditing, classifying, and updating Dart/Flutter service layers, controllers, and DTOs whenever backend specifications change. By treating the generated library as the source of truth and utilizing a built-in impact analysis script, it ensures your application's API surface remains perfectly aligned with the latest schema while preserving custom ergonomics and minimizing manual drift.
Características Principales
011 GitHub stars
02Strict enforcement of generated contracts as the source of truth for wrapper code.
03Granular classification of artifacts as aligned, stale, missing, or intentionally skipped.
04Integrated verification workflow using Dart formatting, analysis, and unit testing.
05Automated impact analysis using specialized shell scripts to identify contract changes.
06Intelligent synchronization of DTOs, services, and controllers based on contract updates.
Casos de Uso
01Refactoring service-level code to match new response envelopes or parameter nullability.
02Updating Flutter API clients after a backend OpenAPI or Swagger specification change.
03Auditing architectural drift between generated models and handwritten wrapper layers.