Flutter Gems is a curated list of 7100+ useful Dart & Flutter packages that are categorized based on functionality.

Discord Medium LinkedIn X

Top Flutter OpenAPI and Swagger packages

Last updated: March 18, 2026

OpenAPI, formerly known as Swagger, is a specification for building, documenting, and consuming APIs. It provides a standardized way to define RESTful APIs that enhances collaboration, simplifies development, and contributes to the creation of robust and user-friendly APIs.

The complete list of Dart and Flutter packages provided below provide openAPI & Swagger utilities for API client code generation for sending HTTP requests, building API client libraries that you can add in your Flutter app.


swagger_dart_code_generator
👍 327   ⬇️ 61K
Dart 3 compatible
Maintenance Status: Good

Have you been turned into a problem with writing code for Http requests? This package can help. It has all of the Http and model codegen functionality you have been looking for.

swagger_parser
👍 118   ⬇️ 23.9K
Dart 3 compatible
Maintenance Status: Good

Package that generates REST clients and data classes from OpenApi definition file

openapi_generator
👍 120   ⬇️ 9.8K
Dart 3 compatible
Maintenance Status: Average

Generator for openapi client sdk inspired by the npm implementation of openapi-generator-cli.

shelf_swagger_ui Card Image
shelf_swagger_ui
👍 85   ⬇️ 1.3K
Dart 3 compatible
Maintenance Status: Average

Present clean and professional documentation with Swagger + shelf.

openapi_generator_annotations
👍 21   ⬇️ 31.9K
Dart 3 compatible
Maintenance Status: Average

Annotation package for openapi_generator https://pub.dev/packages/openapi_generator.

openapi_generator_cli
👍 20   ⬇️ 16.4K
Dart 3 compatible
Maintenance Status: Average

A dart wrapper around openapi-generator inspired by the node implementation.

nenuphar_cli
👍 29   ⬇️ 174
Dart 3 compatible
Maintenance Status: Poor

An openapi generation CLI for Dart Frog created by Very Good CLI.

openapi_freezed_dio_builder Card Image
openapi_freezed_dio_builder
👍 28   ⬇️ 96
Dart 3 compatible
Maintenance Status: Average

Generate models and API classes based on an OpenAPI document using Freezed and Dio.

annotated_shelf
👍 23   ⬇️ 115
Dart 3 compatible
Maintenance Status: Poor

powerful Dart library for generating REST APIs using annotations. With a simple and intuitive interface, you can easily build APIs that are fast, efficient, and easy to use.

api_bloc
👍 10   ⬇️ 120
Dart 3 compatible
Maintenance Status: Average

Flutter widgets that simplify the BLoC pattern implementation for REST APIs within an MVC architecture, significantly reducing boilerplate code.

flutter_easy_swagger_generator
👍 2   ⬇️ 98
Dart 3 compatible
Maintenance Status: Good

A Flutter package for generating Dart models and API clients from Swagger/OpenAPI specifications.