Skip to main content

Glossary

Rendered from corpus/wiki/glossary.md · updated 2026-11-02

This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.

Definitions only — what a term is, not how it works. Mechanism lives on the concept pages; this page links to them. Only terms Atrium uses in a project-specific way earn an entry ("cache", "retry", "token" as such do not).

_Avoid_ is the load-bearing half: those are the rejected synonyms, listed so they stop coming back. A term with two live meanings is two terms — see open-questions.md for the ones still unreconciled.

Content​

Library: The single shared, server-owned collection of everything uploaded, across all media kinds. Shared across accounts and profiles; progress, notes and preferences are per-profile (D35). Avoid: collection, shelf, gallery, catalog

Shelves / Stacks (retired 2026-08-24, D33): Library grouping's two grouped-gallery arrangements; UI removed, its backfilled author/series/subject columns now feed search and chips. Listed so the names are recognised in old briefs, not revived.

Library item: One uploaded piece of media in the library, whatever its kind. The code noun is LibraryBook / the books table / /library for every kind, not just books — a deliberate legacy kept by D32. Avoid: asset, file, media object, book (in the general sense)

Book: A library item whose kind is book — a PDF or EPUB. The user-facing sense is always this narrow one. Avoid: ebook, document, title, publication

Media kind: One of book | audio | video, derived from the format at upload (2026-07-16). The axis the areas and card shapes are cut along. Avoid: media type, content type, category

Format: The concrete file format — pdf, epub, mp3, mp4, webm. Narrower than kind; several formats map to one kind. Avoid: filetype, extension, MIME (reserve MIME for the header itself)

Cover: The image shown on an item's card, extracted server-side at upload (D26). Stored on disk as a thumbnail file, never in the DB (D25); a missing one falls back to a typographic tile. Avoid: thumbnail (that is the stored file specifically), artwork, poster, image

Chip: A filter control on the home grid that narrows it to one media kind, carrying a live count. Since D33 this is what kind looks like in the UI — it replaced the per-kind routes, so kind is a filter again and no longer a destination. Avoid: tab, area, pill, toggle, facet

Tint: The paper tone a tile carries to signal its kind — cream for books, rose for music, sky for video, mint for notes (D33). The primary kind signal, which is why format badges are no longer load-bearing. Avoid: colour coding, category colour, highlight, label

Dock: The persistent player strip at the foot of the app that survives navigation (D33). The one place local playback state lives. Discord playback is a Player's. Avoid: player bar, mini player, footer, now-playing bar, Player (a Jukebox term)

Discover: The /discover page for browsing Project Gutenberg through the API's Gutendex proxy and importing an EPUB into the library (2026-07-16). Avoid: store, search, browse, catalog (that is the shared contract module and the upstream data, not the page)

Convert: Changing a book from one format to another via Calibre — PDF→EPUB or EPUB→PDF, one verb for both directions. A conversion produces a converted book, which is read in-app like any other (D34, revising D1's export-only rule). See conversion.md. Avoid: transform, render, export, reflow, export-to-read

Source book: The library item a conversion was made from. Keeps its own file, cover, and resume position; deleting it deletes its converted book. Avoid: original, parent, master

Converted book: The library row produced by a conversion, linked to its source book. Hidden from the grid, search, chips, and counts — it is reached only by switching format inside the reader, so one book is always one card. Avoid: variant, sibling, derived row, duplicate

Profile: A person in the household — the identity that owns reading progress, notes, and preferences. Switching between profiles is free (no password, no PIN), so a profile is an identity boundary and never a security one (D35). Avoid: user, account, persona, member

Account: A local user in atrium's own database (D58): the household, and the security boundary; profiles.subject holds its id (a D53-era account's id is its Ward subject). Holds up to five profiles and one shared library. People who need real separation need separate accounts, not separate profiles. Avoid: profile, user, tenant, household (use account in code and copy)

Reading state​

Progress: The coarse per-user 0..1 "how far in" that drives the cover's progress bar (D31). Avoid: percent, completion, position, fraction (what the offline store's record called it until the IndexedDB v5 rename — D39, 2026-08-27; the two names now agree, so a reintroduced fraction is a regression, not a synonym)

Locator: The exact resume position, opaque to the app: a page number as a string for PDF, an epub.js CFI for EPUB. Distinct from progress and stored alongside it. Avoid: position, bookmark, cfi, page, offset

Resume: Reopening an item at its stored locator rather than at the start. Avoid: continue, restore, seek

Reading mode: The paged ⇄ scroll toggle (2026-07-13), persisted to localStorage. Not the colour theme and not the font settings. Avoid: view mode, layout, display mode

Chrome: The reader UI framing the page — running header, footer, progress rail, the "Aa" panel — which fades away while reading. See reader.md. Avoid: toolbar, controls, UI, frame

Progress rail: The scrubbable bar along the reader's bottom edge (chapter ticks, hover tooltip, drag-to-seek; the progress rail (2026-07-07)). Shared chrome — both readers mount it. Avoid: scrubber, slider, seek bar, progress bar (that is the cover's)

Access​

Seeded account: An account made by npm run seed:user (D58); the only other way is a first Ward sign-in. No Register page. Avoid: signup, registration, member

Session: One sign-in on one device (D58): the atrium_session cookie (Path=/atrium-api), an opaque token the library stores hashed. Its hash keys the active profile. A session that began with Ward is re-checked with Ward every 30 s; a password session never is. No ?token=: the cookie rides every API URL. Avoid: login token, auth token, API key

Offline​

Download: An explicit, user-initiated copy of one item into IndexedDB so it reads with zero connectivity (2026-07-16). Always deliberate — nothing is downloaded automatically. See pwa.md. Avoid: cache, sync, save, offline mode

Runtime cache: The service worker's stale-while-revalidate cache of cover thumbnails — the only thing cached at runtime, and never user-initiated. The opposite end from a download. Avoid: offline storage, download, precache (that is the built shell)

Design​

Reading Room: The enforced design system (D33) — warm neutrals, four kind tints, and the Newsreader/Archivo split that every apps/web change must conform to. See design.md. Avoid: the theme, the style guide, the design language, Quiet Paper and Quiet Gallery (both retired 2026-08-24 — the two names the previous system drifted between)

API layering (D47)​

Model: A module's data-access file and the ONLY code allowed to query its tables — async Knex functions, not a domain object. library.model.ts owns books. Avoid: repository, DAO, entity, row object

Service: Where a module's rules live. Decides, orchestrates, touches the filesystem, and returns a tagged union for any normal answer — never a status code. Avoid: manager, handler, use case, business logic layer

Controller: A module's HTTP file: validate, pick the status code, stream bytes. No rules, no queries. Avoid: router, routes file, endpoint, handler

Baseline migration: 20260830000000-baseline.ts — the one idempotent migration, needed because the pre-Knex schema was rebuilt on every boot and left no history to replay: it must be correct on a fresh database AND on a live one already migrated with nothing recording that. Every later migration is an ordinary forward migration and must NOT be idempotent. Avoid: initial migration, schema migration, the setup migration

Authored content (Note, Note page, Stroke, Text box, LaTeX project, Draft, Published document, Version) lives in glossary-authoring.md, split along D36's line. Jukebox terms (Jukebox, Player, Track, Bot account) live in glossary-jukebox.md. Same authority, split for size.