Live data from Hacker News

Ditto: Real-time sync for apps even without the internet

ditto.live

1–10 of 89 posts

Re: Ditto: Real-time sync for apps even without the internet

#2
>Ditto is designed for "peer-to-peer" synchronization where it can directly communicate with other devices even without an internet connection. In addition, Ditto automatically manages the complexity of using multiple network transports, like Bluetooth, P2P Wi-Fi, and Local Area Network, to find and connect to other devices and then synchronize any changes.[1]

This is cool! I have no idea what's the use-case behind it, but it is really awesome if properly implemented (which seems like a gigantic challenge).

[1] https://docs.ditto.live/

Re: Ditto: Real-time sync for apps even without the internet

#4

>Ditto is designed for "peer-to-peer" synchronization where it can directly communicate with other devices even without an internet connection. In addition, Ditto automatically manages the complexity of using multiple network transports, like Bluetooth, P2P Wi-Fi, and Local Area Network, to find and connect to other devices and then synchronize any changes.[1] This is cool ! I have no idea what's the use-case behind…

One use-case comes to mind is messaging for activists and journalists wanting to keep things private.

How would this compare to https://briarproject.org/ ? Have you generalized their protocol for many other applications?

Re: Ditto: Real-time sync for apps even without the internet

#5
Good thing that it supports any authentication provider. Less good that it still needs a roundtrip to Ditto's servers to enroll each device after authentication.

Alternatively, for "truly" offline sync, a "license" token must still be obtained from Ditto's servers at some initial deployment phase.

Really cool library, but the dependency on Ditto's infrastructure is an itch to scratch.

Re: Ditto: Real-time sync for apps even without the internet

#8

>Ditto is designed for "peer-to-peer" synchronization where it can directly communicate with other devices even without an internet connection. In addition, Ditto automatically manages the complexity of using multiple network transports, like Bluetooth, P2P Wi-Fi, and Local Area Network, to find and connect to other devices and then synchronize any changes.[1] This is cool ! I have no idea what's the use-case behind…

My vision is that all the current use of IT should work in this mode. Depending on a central server for synchronization should be the exception, not the norm.

Re: Ditto: Real-time sync for apps even without the internet

#10
Looks interesting but a few questions I don’t see answered in the docs: How do permissions work? Ie if I had a notes app, and wanted users to only be able to upset and query _their_ notes, how do I make that happen?

Why no LAN for web browser mode? A pwa with offline support should be able to sync with other resolvable ips on the same pan, no? Hopefully WebBluetooth will be available soon too?

Post reply on HN