Live data from Hacker News

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

ditto.live

11–20 of 89 posts

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

#11

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?

Looks like LAN depends on multicast for discovery, which isn't available in browsers as far as I can tell: https://docs.ditto.live/javascript/common/mesh-network/suppo...

Regardless you definitely wouldn't be able to do browser-to-browser discovery and connection via HTTP or WebSockets, since you can't create a web server in browser, but I imagine you could do P2P via WebRTC if you can just find a way to discover the other peer's details in the first place.

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

#14
post #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.

Agreed, and I expect it to set new standards for user expectations. Users are tired of slow and fragile server interactions on every click, or managing connectivity during use.

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

#15
What is the proudly-displayed use case from the US Airforce?

Something with its new unguided bombs they’re testing, or the new bomber it’s rolling out this year? The hundreds of Phoenix Ghost “Kamikaze” drone bombs they just revealed?

Are programs like this funding this project? I will pass.

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

#16
post #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.

How would you handle granular permissions though?

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

#17
post #13

Very cool project - I wonder if they shouldn't go the "Free for open-source/education projects" route though? With the current offering, I feel at anytime there could be a "takeover" by a well-run open-source initiative and "everyone loses".

For a lot of simple use cases that don't need automatic conflict resolution you could just share files using Syncthing. Then the only dependency on external infrastructure is the Syncthing STUN server if one or both peers is behind a NAT.

Syncthing is open and uses the Mozilla Public License: https://syncthing.net/

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

#19
post #13

Very cool project - I wonder if they shouldn't go the "Free for open-source/education projects" route though? With the current offering, I feel at anytime there could be a "takeover" by a well-run open-source initiative and "everyone loses".

Why does "everyone lose" if a well-run open source initiative forks it and runs it better? That seems like like an improvement for everyone except maybe the original maintainer of the project, if they don't want to join up with the rest of the people.

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

#20

How do they get peer-to-peer discovery in a browser working without server in an intranet ? As far as I know websockets do not support IP finding (though there where some leaks once) PS: They don't. Was wondering whether I missed something

They don't.

https://docs.ditto.live/javascript/common/mesh-network/suppo...

Post reply on HN