feat: opt-in local-first client sync service — cross-device localStorage data (Paid+) #56
Labels
No labels
architecture
backlog
enhancement
module:documents
module:hardware
module:manage
module:pipeline
module:voice
priority:backlog
priority:high
priority:medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/circuitforge-core#56
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Several CF products store meaningful user state in localStorage only:
kiwi:cook_log), dismissed recipes, bookmarksThis data is invisible to other devices and lost on browser clear. But syncing it unconditionally creates privacy surface — it turns ephemeral local state into a cloud record.
Proposed solution
A lightweight, opt-in sync service for localStorage-keyed data. Local-first by default; cloud sync is a user-initiated upgrade.
Principles
Tier placement
Architecture sketch
POST /api/v1/sync/push— client uploads a JSON blob keyed by{product}:{data_class}GET /api/v1/sync/pull— client fetches latest blob for each subscribed keyDELETE /api/v1/sync/{key}— wipe a specific data class from serverProducts that would benefit
Out of scope
References
frontend/src/stores/recipes.ts:logCook()