nefqa / notes

how sync works

architecture overview

each device keeps a full encrypted replica of your notebooks. changes are recorded as small encrypted operations and pushed to the sync service over a long-lived https connection. other devices receive them in real time and merge them with a crdt, so concurrent edits never overwrite each other.

devices exchanging encrypted operations through the sync service

attachments

files are split into 8 MB chunks, encrypted individually and uploaded in parallel. interrupted uploads resume from the last confirmed chunk. downloads are streamed and decrypted on the fly.

background sync

apps keep a persistent connection while open and fall back to periodic polling in the background. a typical active account transfers from a few megabytes to several gigabytes per day, depending on attachments.

offline mode

everything works offline. pending operations are queued and delivered in order once you are back online.