ipfs-shipyard / ipfs-iiif-db

IIIF annotations JS client on top of IPFS
MIT License
12 stars 4 forks source link

CRDT API #4

Closed pgte closed 7 years ago

pgte commented 7 years ago

Here is a proposal for the new API that supports CRDTs: https://github.com/pgte/ipfs-iiif-db/tree/yjs#readme

It's much more specific than the previous one, since I had to define a specific data structure, supported by shared CRDTs.

It should now be easier to integrate with a UI without the need to refresh the entire annotation list.

Here is an example app: https://github.com/pgte/ipfs-iiif-db/blob/yjs/examples/simple-producer-consumer/src/app.js

Here is a demo of it working: https://youtu.be/8xE1MEyZsbo

@edsilv @aeschylus Do you see any problem with this API, or some use case that you require that it doesn't support?

pgte commented 7 years ago

Landed on version 2.0.0