Upload → store → read, and the two things that branch off it

Upload → store → read, and the two things that branch off it A data-flow diagram generated by Archify. 01 / In 02 / Check 03 / Derive 04 / Store 05 / Read Upload · POST /library · 01 / In · 50 MB cap Upload POST /library 50 MB cap Gutendex · catalog import · 01 / In · no file Gutendex catalog import no file Validate · type + truncation · 02 / Check · 413 if truncated Validate type + truncation 413 if truncated Extract · metadata + cover · 03 / Derive Extract metadata + cover Calibre job · async, cancellable · 03 / Derive · quality-graded Calibre job async, cancellable quality-graded Files on disk · bytes, covers · 04 / Store Files on disk bytes, covers books · metadata row · 04 / Store · shared books metadata row shared document_versions · linked formats · 04 / Store document_versions linked formats reading_progress · per profile · 05 / Read · scoped reading_progress per profile scoped Reader · PDF + EPUB · 05 / Read · resume Reader PDF + EPUB resume the file multipart catalog result no bytes yet accepted typed bytes + cover on disk metadata SQLite convert request async linked row never a replacement the collection shared position per profile Legend primary data policy / PII async batch data store data flow

The main path

  • • A file is checked before anything derives from it — a truncated upload is a 413, not a half-row
  • • Metadata and cover are extracted once, at ingest, not on every read
  • • The bytes go to disk and the row points at them; the database is metadata only

Conversion branches, it does not replace

  • • Calibre runs asynchronously and can be cancelled mid-job
  • • The output is a LINKED library row, so both formats stay readable
  • • document_versions is the same mechanism published LaTeX output uses

What a profile actually scopes

  • • The media library is SHARED across profiles — this is deliberate
  • • Progress, notes, LaTeX projects and preferences are scoped
  • • Scoping is applied in SQL, never as a filter over rows already fetched