Ditto is a mobile database designed with an offline-first approach, ensuring that data remains accessible locally and consistently across various devices, even in completely disconnected scenarios. At its foundation, Ditto leverages Conflict-Free Replicated Data Types (CRDTs) to manage conflicts automatically and provide robust eventual consistency, eliminating the need for developers to create custom merge solutions.
However, Ditto goes beyond the capabilities of typical offline-first databases. It innovates by enabling offline-first applications to synchronize seamlessly, even without an internet connection. Ditto stands out as the sole offline-first database that incorporates integrated peer-to-peer and mesh networking, allowing devices to connect and sync directly without relying on cloud or server infrastructure. In the absence of a network connection, Ditto-equipped devices can locate and synchronize with nearby devices using Bluetooth, peer-to-peer Wi-Fi, LAN, or cellular networks—ensuring timely updates, even in challenging environments.