#Dart/Flutter library to communicate with a Directus server over the REST API

4 messages · Page 1 of 1 (latest)

bleak sail
#

https://github.com/maxbritto/directus_api_manager
Edit: Now available on pub.dev 🎉
https://pub.dev/packages/directus_api_manager

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!

GitHub

Dart & Flutter library to communicate with a Directus REST API - maxbritto/directus_api_manager

obtuse kraken
#

@bleak sail This looks really great, its good that you have added documentation & test cases. 🫡

bleak sail
obtuse kraken
#

I completely agree on this. 💯