amplify_api_dart
0.5.24, released 5 weeks ago by aws-amplify.com
Dart-only Amplify API plugin for GraphQL and REST.
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.
- fresh
Core token refresh library for managing authentication token lifecycles.
92Compare - requests_inspector
Log, inspect, and share REST and GraphQL requests by shaking your phone.
72Compare - graphql_2_rest
Converts GraphQL queries into REST-compatible POST bodies for any HTTP client.
50Compare
Works with
Packages commonly used together with amplify_api_dart: ones it builds on, ones built on it, and its own family.
- asyncamplify_api_dart depends on itUtility classes and helpers that extend Dart's async library.
- json_annotationamplify_api_dart depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- web_socket_channelamplify_api_dart depends on itCross‑platform WebSocket channel wrapper for Dart
- plugin_platform_interfaceamplify_api_dart depends on itReusable base class for platform interfaces of Flutter federated plugins.
- stream_transformamplify_api_dart depends on itExtension methods adding common stream transform operators
- amplify_coreamplify_api_dart depends on itBase package containing common types and utilities for AWS Amplify Flutter packages.
- amplify_flutterSame familyFlutter SDK for AWS Amplify services like Auth, API, Storage, and Analytics.
- amplify_auth_cognitoSame familyAmplify Flutter Auth plugin for AWS Cognito