Skip to content
pubscout

amplify_api_dart

0.5.24, released 5 weeks ago by aws-amplify.com

Dart-only Amplify API plugin for GraphQL and REST.

WASM-ready
$ flutter pub add amplify_api_dart
Source repository

What it does

Provides a Dart-only implementation of the Amplify API plugin, enabling GraphQL queries, mutations, subscriptions, and REST operations. It supports WebSocket reconnection and wasm for web builds.

AI-written summary of version 0.5.24, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to interact with AWS Amplify API from a pure Dart project
  • You require GraphQL subscriptions or REST calls without Flutter widgets

Skip it when

  • You are building a Flutter app that already uses the amplify_flutter plugin
  • You need a higher-level abstraction or code generation for models

Strengths

  • Supports both GraphQL and REST
  • Handles WebSocket reconnection and subscriptions
  • Works on all platforms (android, ios, web, windows, macos, linux)
  • No Flutter dependencies

Weaknesses

  • Only a Dart library, no Flutter widgets
  • Requires manual handling of models and serialization
  • Limited to Amplify API, not other backends

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
9

Alternatives

Packages that do the same job and could replace amplify_api_dart.

Works with

Packages commonly used together with amplify_api_dart: ones it builds on, ones built on it, and its own family.