Tankōbon / lib/data-store
lib/data-store
The renderer's single copy of the data the main process owns: library, reading lists and settings (pure, no DOM, so it is unit-tested). Views read it through hooks (useSyncExternalStore) and never fetch these themselves; the main process's data:changed push keeps it current, whoever made the write.