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

Discord Medium LinkedIn Twitter

Top Flutter OpenAPI and Swagger packages

Last updated: January 26, 2025

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
👍 297   ⬇️ 26.3K
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.

openapi_generator
👍 106   ⬇️ 9.8K
Dart 3 compatible
Maintenance Status: Good

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

swagger_parser
👍 87   ⬇️ 4.5K
Dart 3 compatible
Maintenance Status: Good

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

shelf_swagger_ui
👍 75   ⬇️ 10
Dart 3 compatible
Maintenance Status: Poor

Present clean and professional documentation with Swagger + shelf.

openapi_generator_annotations
👍 20   ⬇️ 15.6K
Dart 3 compatible
Maintenance Status: Good

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

openapi_generator_cli
👍 18   ⬇️ 14.7K
Dart 3 compatible
Maintenance Status: Good

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

openapi_freezed_dio_builder Card Image
openapi_freezed_dio_builder
👍 26   ⬇️ 225
Dart 3 compatible
Maintenance Status: Good

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

annotated_shelf
👍 23   ⬇️ 50
Dart 3 compatible
Maintenance Status: Average

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.

nenuphar_cli
👍 22   ⬇️ 66
Dart 3 compatible
Maintenance Status: Average

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

api_bloc
👍 9   ⬇️ 52
Dart 3 compatible
Maintenance Status: Good

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