I’ve created this lib to use internally on many Flutter project I was working on.
But I’m also a Teacher at https://www.purplegiraffe.fr/ where I teach about Flutter and Directus ; therefore many of my students were requesting help to communicate with their Directus instance.
I decided to open-source this lib and some of my students started to contribute nice features on it. Main features are :
- Authentication management with automatic token refresh and the possibility to save restore tokens,
- Create one class per collection en enjoy automatic parsing and url building,
- One
DirectusApiManager
class with most of the useful functions, - Support for CRUD over each collection,
- Support for websockets,
- Local caching engine to limit the number of request to the directus instance,
- Helper classes for filters and sort properties,
- Support for File uploads,
- Automated tests,
What should be improved :
- Documentation should be enough to get started but advanced features needs more love on that part,
I hope you’ll find it useful.
Happy Coding!