dart_appwrite
31.3.0, released 5 days ago by appwrite.io
Dart SDK for integrating server-side code with the Appwrite backend server
WASM-ready
What it does
Provides client initialization and service classes to interact with Appwrite backend APIs like users, databases, and storage. Throws typed exceptions for error handling and maps responses to typed models.
AI-written summary of version 31.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building server-side Dart code that connects to an Appwrite backend
- You need to manage Appwrite users, databases, and files from a Dart backend
Skip it when
- You are building a Flutter app (use the dedicated Flutter Appwrite SDK instead)
- You are connecting to Firebase or Supabase instead of Appwrite
Strengths
- Official SDK for Appwrite server integration in Dart
- Includes typed models and robust exception handling
- Supports multiple authentication methods including API keys and user JWTs
Weaknesses
- Not intended for client-side Flutter usage
- Self-hosted Appwrite instances require keeping track of matching SDK versions
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Install via pub add and initialize the Client with your Appwrite endpoint, project ID, and API key.
import 'package:dart_appwrite/dart_appwrite.dart';
import 'package:dart_appwrite/models.dart' as models;
Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setProject('<YOUR_PROJECT_ID>')
.setKey('<YOUR_API_KEY>');
Users users = Users(client);
models.User user = await users.create(
userId: ID.unique(),
email: 'email@example.com',
password: 'password',
name: "Walter O'Brien",
);Alternatives
Packages that do the same job and could replace dart_appwrite.