Synchronization library between local IndexedDB (via Dexie.js) and a remote MySQL database. Current stable version is 6.0.1, released 2024-03-01. Provides automatic two-way sync with conflict resolution, optional user authentication, and multi-tenancy support. Powered by Dexie.js and PHP CRUD API. Key differentiators: it directly syncs IndexedDB tables to MySQL tables with minimal configuration, supports UUID-based IDs, and includes built-in fields for tracking creation, update, deletion, and synchronization timestamps.
npm install dexie-mysql-syncNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize Dexie, add a table, and start MySQL synchronization with a custom endpoint.
Update your PHP CRUD API to version 2.x or use an older dexie-mysql-sync version (<=5.x).
Remove any 'autoSync' configuration passed to Sync constructor.
Ensure all MySQL tables have these columns with correct types (see README schema.sql).
Use a relative path (e.g., '/api.php') instead of full URL, or configure CORS headers on the PHP backend.
Use 'import Sync from 'dexie-mysql-sync';' or in CJS: const Sync = require('dexie-mysql-sync').default;Ensure db.version().stores() is called before creating Sync instance and calling sync.add().
Check that MySQL table has all required columns (id, userId, $created, $updated, $deleted, $synchronized) and that PHP CRUD API endpoint is correct.