Data Layer medium complexity mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Encrypted local persistence layer for user preference values. Provides typed read and write access to individual keys and supports bulk hydration on app start. Acts as the source of truth for offline reads before backend sync completes.

Feature: App Settings & Preferences

preferences-store

Sources & reasoning

Source explicitly lists Settings and preferences as a mobile screen accessible from the hamburger menu, which is exactly the App Settings & Preferences feature in the Home & Navigation area.

Responsibilities

  • Persist preference key-value pairs in the encrypted store
  • Provide typed read access for individual preference keys
  • Hydrate the in-memory preference state on app launch
  • Support bulk replace when syncing from backend
  • Clear stored preferences during sign-out or reset

Interfaces

get(key): Value
set(key, value): Promise<void>
getAll(): Preferences
replaceAll(preferences): Promise<void>
clear(): Promise<void>