amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.05k stars 1.16k forks source link

Sync Dexie table using Gun #1190

Closed shemeshg closed 2 years ago

shemeshg commented 2 years ago

Created simple example for how to sync Dexie table to Gun. It has no security considerations, but it seems to work fine, Hope it helps anyone to get started.

https://shemeshg.github.io/dexie-table-sync-gun/#/

It was surprisingly easy, I'v had no Replication Conflict issues (For example, in OrbitDb I had to manage changes for each user separately [Like lamport clock addition to what OrbitDb provides) I guess Gun uses some kind of AutoMerge.Js to do some magic in the background

rococtz commented 2 years ago

@shemeshg This doesn't sound like you have an issue. Would you mind closing this issue and post your message in the chat?