stitchback

Offline-first for the REST API you already have.

Two devices share one plain REST server. Take one offline, edit on both, and bring it back: every edit survives, field by field. Only two different edits to the same field are a conflict, and stitchback tells you which.

Try this
  1. Switch Grace's phone offline.
  2. On the phone, change the title of the first post. On Ada's laptop, change its author.
  3. Switch the phone back online. The post has both edits.
  4. Take the phone offline again and change the same title on both devices. Going online reports the conflict.