Four variants of the same sync library (IndexedDB, NeDB, SQLite WASM, sql.js) plus a paste-bin demo app for testing multi-browser sync via shared folders. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8 lines
275 B
TypeScript
8 lines
275 B
TypeScript
import { FolderSyncDB } from '../../nedb/src/index.ts';
|
|
import { initPasteApp } from '../shared.ts';
|
|
|
|
document.addEventListener('DOMContentLoaded', async () => {
|
|
const db = await FolderSyncDB.open({ autoSyncIntervalMs: 3000 });
|
|
await initPasteApp(db as any, 'nedb');
|
|
});
|