directus
0.11.0, released 4 years ago by directus.io
Unofficial SDK for Directus providing REST API and authentication support for Flutter.
WASM-ready
What it does
Provides APIs for reading, creating, updating, and deleting user and system data, handling authentication, and managing activity through the Directus backend.
AI-written summary of version 0.11.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter application that uses Directus as a backend.
- You need built-in handling for user authentication, collections, files, and server queries with Directus.
Skip it when
- You are using a different backend provider like Firebase, Supabase, or Appwrite.
- You require an official SDK rather than a community port.
Strengths
- Mirrors many methods of the Directus JS SDK.
- Supports persistence using shared_preferences out of the box.
Weaknesses
- It is an unofficial SDK, which may lead to lag in updates compared to official ones.
- File upload method is currently experimental and not stable.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Requires adding directus to dependencies and initializing the SDK with `.init()` before use.
import 'package:directus/directus.dart';
final sdk = await Directus('http://localhost:8055').init();Alternatives
Packages that do the same job and could replace directus.
- firebase_auth
Choose if you are using Firebase instead of Directus for backend and auth services.
99Compare
Works with
Packages commonly used together with directus: ones it builds on, ones built on it, and its own family.