The event relay was an in-memory array that started empty on every process, so synced history vanished on every API-server restart. Persist it to a gitignored .data/events.sqlite3 via node:sqlite like the blob store (EVENT_DB_PATH override; seq rowid pull cursor; UNIQUE(authorPubkey,signature) push idempotency), keeping the exact exported API. Synced history now survives restarts and keeps growing, and a fresh device pulls the whole lived-in history on load; ShellLayout adds a light 6s poll for live cross-device reflection. Adds a dev:all script, isolates the two integration tests to a temp EVENT_DB_PATH, documents EVENT_DB_PATH.
54 lines
1.4 KiB
JSON
54 lines
1.4 KiB
JSON
{
|
|
"name": "the-commons-hollow",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"dev:api": "node api/_lib/devServer.ts",
|
|
"dev:all": "node scripts/dev-all.mjs",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "oxlint",
|
|
"preview": "vite preview",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@noble/curves": "^2.4.0",
|
|
"@noble/ed25519": "^3.2.0",
|
|
"dexie": "^4.4.7",
|
|
"javascript-lp-solver": "^1.0.3",
|
|
"jsqr": "^1.4.0",
|
|
"qrcode": "^1.5.4",
|
|
"react": "^19.3.1",
|
|
"react-dom": "^19.3.1",
|
|
"react-router-dom": "^7.18.5",
|
|
"ts-fsrs": "^6.0.0",
|
|
"y-indexeddb": "^9.0.12",
|
|
"y-protocols": "^1.0.7",
|
|
"y-webrtc": "^10.3.0",
|
|
"yjs": "^13.6.33"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^7.0.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@testing-library/user-event": "^14.6.12",
|
|
"@types/node": "^24.19.2",
|
|
"@types/qrcode": "^1.5.6",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitejs/plugin-react": "^6.1.2",
|
|
"fake-indexeddb": "^6.2.8",
|
|
"ffmpeg-static": "^5.3.0",
|
|
"ffprobe-static": "^3.1.0",
|
|
"happy-dom": "^21.0.4",
|
|
"oxlint": "^1.90.0",
|
|
"playwright": "^1.65.1",
|
|
"playwright-recast": "^0.23.0",
|
|
"typescript": "~7.0.2",
|
|
"vite": "^8.3.6",
|
|
"vite-plugin-pwa": "^2.0.0",
|
|
"vitest": "^5.1.0",
|
|
"workbox-window": "^7.4.1"
|
|
}
|
|
}
|