Rotonde / rotonde-client

Rotonde Base Client
https://client-neauoire.hashbase.io/
MIT License
227 stars 49 forks source link

Implements sameAs to use Rotonde from multiple machines #159

Closed cblgh closed 6 years ago

cblgh commented 6 years ago

As described in #147 sameAs is an extension to portal.json.

It adds an array sameAs that contains entries to other portals. If those portals in turn have your portal in their sameAs arrays, you are considered remotes of each other.

The entire point is to decouple your Rotonde portal from a single machine. Using this feature you can now:

Start using it:

If your main portal is dat://7f2ee...0c5/ and your work computer has a portal at dat://3ba71...829/

  1. Visit your main portal at dat://7f2ee...0c5/ and run mirror dat://3ba71...829/
  2. Visit your work portal at dat://3ba71...829/ and run mirror dat://7f2ee...0c5/
  3. You're done! You can now Rotonde from any of the machines with ease.

Remove remotes using the unmirror command: unmirror dat://7f2ee...0c5/ this severs the link between remotes.

Thanks to @0x0ade for some back and forth across twitter, rotonde and github! :~

neauoire commented 6 years ago

Madness

0x0ade commented 6 years ago

Wow, GitHub just automatically mirrors our comments here!

Also, 🎉 great work!

neauoire commented 6 years ago

Has @pfrazee seen this?

neauoire commented 6 years ago

Who wants to have the honour of pressing merge?

0x0ade commented 6 years ago

I'm imagining you two staring with a dead-serious glaze at the screen, cursor over the merge button, finger over the mouse button... 🍿

pfrazee commented 6 years ago

Just read the high level description, looks like a solid solution.

neauoire commented 6 years ago

I got Paul's blessing, I'm merging.