Settings saved on the server, live on every device #72

Closed
opened 2026-10-13 20:26:17 +00:00 by kayg · 0 comments
Owner

Settings in apps/web are saved on this device only. Save them on the server, per user, so they follow kayg to every device and stay live (a change on the laptop shows on the phone at once).

  • A small prefs plugin: prefs.get, prefs.set {key, value} (idempotent), journal event prefs.changed, stored per user (a JSON doc in the user's data dir via the one atomic write recipe, or the per-user index.db). Keys namespaced by plugin (ui.theme, ui.accent, ui.backdrop, ui.page.opacity, ...), validated, size-capped.
  • apps/web reads them at sign-in, applies them before first paint (no flash), and stays live via the journal.
  • Per-device overrides only where it makes sense (pane widths): keep those local.
Settings in apps/web are saved on this device only. Save them on the server, per user, so they follow kayg to every device and stay live (a change on the laptop shows on the phone at once). - A small `prefs` plugin: `prefs.get`, `prefs.set {key, value}` (idempotent), journal event `prefs.changed`, stored per user (a JSON doc in the user's data dir via the one atomic write recipe, or the per-user index.db). Keys namespaced by plugin (`ui.theme`, `ui.accent`, `ui.backdrop`, `ui.page.opacity`, ...), validated, size-capped. - apps/web reads them at sign-in, applies them before first paint (no flash), and stays live via the journal. - Per-device overrides only where it makes sense (pane widths): keep those local.
kayg closed this issue 2026-10-13 20:39:17 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#72
No description provided.