
Dart & Flutter library to communicate with a Directus REST API
## Overview
The Directus API Manager is a powerful tool designed for developers looking to communicate seamlessly with a Directus server using its REST API. This library streamlines the process of managing collections and models, ensuring that your application can easily interact with data in a structured manner. By providing robust features for authentication, CRUD operations, and real-time updates through WebSockets, this package enhances productivity and simplifies the integration process.
With the ability to generate model classes for Directus collections and handle user authentication and token management effortlessly, the Directus API Manager is an invaluable asset for anyone working with a Directus backend. The library offers comprehensive solutions for both novice developers and seasoned professionals, making it a versatile choice for building dynamic applications.
## Features
- **Model Class Generation**: Automatically generates model classes for each Directus collection, saving time and reducing manual errors in your code.
- **Seamless Authentication**: Utilizes methods like `loginDirectusUser` and `loginDirectusUserWithOtp` to ensure secure and efficient user authentication processes.
- **CRUD Operations**: Easily fetch, create, update, and delete items within your Directus collections, allowing for full control of your data.
- **Real-Time Updates**: Supports WebSocket connections to receive real-time event updates, making your application responsive to changes as they happen.
- **Single Instance Management**: The `DirectusApiManager` can be instantiated once to manage all requests, ensuring a consistent and streamlined experience throughout your application.
- **Customizable Models**: Create additional named constructors and computed properties within your model classes by using annotations tailored to your Directus data structure.
- **Automatic Token Refresh**: Handles authentication and token management automatically, allowing developers to focus on building the application rather than managing state.
- **Easy Integration**: Simple setup instructions and integration steps make it accessible for developers of all skill levels aiming to work with Directus.

Flutter is an open-source UI framework developed by Google that allows developers to create high-performance, cross-platform mobile applications with a single codebase.
A website that uses Directus as an open source headless CMS to manage content. This includes features such as a customizable content model, role-based access control, and API-based content delivery to support a wide range of digital experiences.
Recoil is a state management library for React that provides an intuitive and flexible API for managing and sharing state across components. It supports a range of features, including derived state, asynchronous updates, and time-travel debugging, and is designed to work well with the React ecosystem and other state management solutions.