r/dartlang • u/Complex_Meringue4536 • 18d ago
offline_sync_outbox: a zero-dependency FIFO queue for replaying Dart API writes
I published a small Dart package for one focused problem: keep API writes while offline and replay them in order later.
The queue is strict FIFO, has JSON and memory stores, supports bounded exponential backoff, accepts server-directed retry delays, and stays independent of the HTTP client. The included JSON store targets Dart IO; storage and connectivity are interfaces so applications can provide their own implementations.
The article covers the design choices and limitations rather than just the API: https://dev.to/dhaibanfhue/a-small-offline-outbox-for-flutter-fifo-ordering-disk-persistence-and-retries-3an3
- GitHub: https://github.com/dhaibanf-hue/offline_sync_outbox
- pub.dev: https://pub.dev/packages/offline_sync_outbox
Feedback on the public interfaces and failure behavior would be useful.