Drive
Glitr keeps a Drive vault in your mailbox — personal files, plus isolated trees per contact and group. Paths and names live inside sealed JSON; the git tree only shows UUIDs. Document editors open and save Drive bytes in-process through Office. Drive is not part of the recipient crypto cascade or the live WebRTC path. Sending a file to a peer still goes through the normal chat or live attachment flow.
This page is the mailbox vault and how whatsup hosts /drive. Editor engines, Calendar/Tasks, and the Office launcher are on Office. Record shapes stay on Data structures. How the shell sits on the rest of the stack is the Architecture product map.
Product wiring
whatsup mounts Drive on the GUI feature:
| Piece | Role |
|---|---|
glitr-client drive | List / upsert / delete / conflict / import over /resources/drive-* |
whatsup drive/ | Volume adapter + DrivePage at /drive |
| whatsup-ui | Explorer chrome (VolumeExplorer, new-file dialog, open-with, NavTarget::Drive, contact/chat files routes) — no link to office engines |
| office-ui | Opens prepared Drive bytes into document hosts (see Office) |
| Host module | Role |
|---|---|
drive/volume.rs | VolumeHandle over glitr-client::drive for the current scope |
drive/page.rs | Scope sidebar, explorer, open/save, conflict UI, send-from-Drive |
gui.rs | Route /drive; NavTarget::Drive |
Cargo: the gui feature enables optional office and office-ui so Drive can open files. Desktop and browser GUI builds get Drive. TUI and stub platforms do not mount the office hosts.
whatsup registers the mailbox-backed volume, opens files through office-ui, and writes bytes through glitr-client. UI details: UI/UX. User how-to: Drive.
Open prepares bytes (or a blank seed), mounts a host, and on save upserts a DriveEntry (and blob or CAS file). Listing never loads file bytes.
Drive vault
Drive is mailbox persistence (schema messaging v11+; current app schema is v13). Paths and names live inside sealed JSON; the git tree only shows UUIDs under drive/ and drive-blobs/.
| Concern | Behavior |
|---|---|
| Scopes | personal, contact, or group (scopeId empty for personal) |
| Storage | inline (bytes in DriveBlob) or cas (password-sealed under .drive-cas/) |
| Sync | sync (may leave with the repo) or local (.drive-local/ — never leave this device) |
| Soft delete | deletedAt; trash views filter in the host |
| Import | Chat attachments can copy into a contact/group tree (importedFromMessageId for idempotency) |
| Conflicts | Host can keep local, take remote, or keep both as a sibling entry |
Large or local-only files stay out of git staging via .gitignore. Field-level shapes: Data structures. How sealing and git layout work: Persistence.
Document formats are file payloads inside Drive. Calendar and tasks are separate sealed collections — see Office.
Privacy and network
| Claim | Meaning |
|---|---|
| Sealed at rest | Drive rows use the connect-password envelope (Argon2id then AES-GCM), same as other sealed mailbox types |
| Not recipient crypto | Opening a file does not cascade to a peer; send is an explicit chat action |
| Scoped trees | Contact and group Drives are isolated; personal Drive is not auto-shared |
| Git host sees | UUID filenames and sizes for synced rows; paths and names stay inside sealed JSON |
| Local-only | syncPolicy: local and .drive-local/ stay on this device |
| Residual | A clone of your repo without the password sees envelopes; with the password, Drive contents are readable like other sealed docs |
Runtime and limits
- Browser and desktop GUI: Drive hosts on the
guifeature (with office-ui for open/save). - TUI / stub: no office mount; Drive is a graphical path.
- License: product Drive path is closed-source; office engines used to open files are AGPL-3.0-only (see Office).
Next: Office for editors, Calendar/Tasks, and the gallery. Record fields: Data structures. User guide: Drive.
