automerge / hypermerge

Build p2p collaborative applications without any server infrastructure in Node.js
MIT License
1.28k stars 66 forks source link

WIP: Untangle hypermerge from hypercore #13

Closed Gozala closed 4 years ago

Gozala commented 5 years ago

I would like to untangle hypermerge from the hypercore so that alternative feed / replication mechanism could be provided (I'm specifically looking into IPFS base one). While it's certainly possible to just copy & paste and replace relevant bits, I think there is plenty of code that is hypercore agnostic and it might be useful to try and refactor relevant bits to facilitate better reuse / simplify implementation of alternative protocol providers.

This is my best attempt to do so & in it's current state I could use some feedback. Below are some highlights:

I am also little unsure on

P.S.: I apologize for formatting changes, just noticed those & I presume they're caused by prettier plugin.

Gozala commented 4 years ago

This repo has changed enough that starting from scratch would be a better strategy than updating all this.