ctrodb 1.4 Adds Offline Sync, Conflict Resolution to Lightweight Browser Database
ctrodb, a client-side TypeScript database library, has released version 1.4 with offline sync as its headline feature. The sync engine logs every create, update, and delete operation locally and pushes changes to a server once connectivity is restored. Three built-in conflict resolution strategies are available — last-write-wins, client-wins, and server-wins — along with a custom resolver hook for more complex scenarios. The library also ships new React hooks for sync status monitoring, a developer tools panel for debugging, and support for both HTTP and WebSocket transports. At roughly 8KB gzipped with zero runtime dependencies, ctrodb runs in both the browser and Node.js under an MIT license.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in