Push sqlite entries for bi-directional synchronisation based on an incremental field in a sqlite table. Version 0.3.0 fetches the last sync state via GET, then pushes new records via PUT in configurable chunks at set intervals. Lightweight, Node.js-only, minimal dependencies: better-sqlite3 and node-fetch. Not actively maintained; last updated 2020. Suitable for simple uni-directional sync scenarios where polling and incremental IDs suffice.
npm install sqlite-pusherNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a background sync that periodically checks the SQLite table for new rows and pushes them to the configured push URL.
Use import syntax or dynamic import().
Ensure the SQLite database file exists before calling pushSqlite.
Configure the server to return the last increment value as a number, or 404 on first sync.
Parse the request body on your server expecting {rows: [...]} or adjust client accordingly.Implement logic to stop polling via the returned timer handle (not exposed currently).
npm install sqlite-pusher better-sqlite3 node-fetch
Create Database instance: const db = new Database('path'); then use db.