Office
Office is the product tab that launches document editors, native Calendar / Tasks, and creative Puter embeds. Document editors open and save Drive bytes in-process. Calendar and tasks persist as sealed messaging collections (schema v13), not as Drive files. Office is not part of the recipient crypto cascade or the live WebRTC path. Sending a file or calendar invite to a peer still goes through the normal chat or live attachment flow.
This page is the office / office-ui sibling libraries and how whatsup hosts the Office tab. The mailbox vault is on Drive. Record shapes stay on Data structures. How the shell sits on the rest of the stack is the Architecture product map.
The product path is closed-source. The office gallery is the public surface you can press: positive-intentions.github.io/office.
Product wiring
whatsup links Office on the GUI feature and hosts Office routes (Drive volume wiring is summarized on Drive):
| Piece | Role |
|---|---|
| office | Platform-free engines: word, spreadsheet, slides, notes, calendar, tasks, blank templates, DOCX / XLSX / PPTX / .note / ICS I/O |
| office-ui | Dioxus hosts (MountPreparedApp, CalendarAppHost, TasksAppHost, PuterAppHost), Monaco for text/markdown, ribbon chrome, office_new_file_kinds() |
glitr-client calendar / tasks | List / upsert / delete over sealed calendar and task collections |
glitr-client drive | Open/save document bytes via Drive ops |
whatsup office/ | Office launcher + app pages at /office and /office/:app |
| whatsup-ui | Office chrome (NavTarget::Office / OfficeApp) — no link to office engines |
Cargo: the gui feature enables optional office and office-ui. Desktop and browser GUI builds get Office. TUI and stub platforms do not mount the office hosts.
| Host module | Role |
|---|---|
office/page.rs | Launcher grid and per-app mounts (docs, calendar, tasks, Puter) |
office/store.rs | Mailbox-backed calendar/tasks stores |
office/reminders.rs | In-session reminder notifications (while whatsup is open) |
office/share.rs | Share event as ICS chat attachment |
gui.rs | Routes /office, /office/:app; NavTarget::Office / OfficeApp |
whatsup-ui owns navigation and the launcher UI. whatsup opens files through office-ui and writes calendar/task rows through glitr-client. UI details: UI/UX. User how-to: Office.
Open prepares bytes (or a blank seed), mounts a host, and on save upserts a DriveEntry (and blob or CAS file) for documents. Calendar/tasks hosts upsert sealed CalendarDef / CalendarEvent / TaskList / TaskItem rows instead.
office
office is the shared Rust core. No Dioxus or DOM dependencies. Consumers drive an editor model and paint results.
| Concern | Behavior |
|---|---|
| Word | Editor + DOCX import/export (best-effort OOXML) |
| Spreadsheet | SpreadsheetWorkbook + Formualizer formulas; CSV / JSON / XLSX |
| Slides | SlideEditor / Deck + PPTX import/export |
| Notes | NotesEditor / .note ZIP; Markdown / HTML / plain exports |
| Calendar | CalendarEditor — events, RRULE expansion, reminders, ICS import/export |
| Tasks | TasksEditor — lists, priorities, due dates, subtasks |
| Blank | blank_file_bytes seeds for new-file cards (.txt, .md, .docx, .xlsx, .pptx, .note) |
| Archive | ZIP helpers for demos and encrypted sample packs |
| Tools | OfficeSession / tool registry including calendar and tasks tools for gallery Dan-EL assistants |
Document formats are file payloads inside Drive. Calendar and tasks are GraphQL collections (messaging v13), not Drive files.
office-ui
office-ui is the shared GUI host layer for Drive, Office, and the office gallery.
| Surface | Role |
|---|---|
MountPreparedApp / PreparedOpen | Open a path + bytes into Word, Sheet, Slides, Notes, or text/markdown |
| Document hosts | WordAppHost, SpreadsheetAppHost, SlideDeckAppHost, NotePadAppHost, TextMarkdownAppHost |
| Calendar / Tasks | CalendarAppHost, TasksAppHost over pluggable stores |
| Puter embeds | PuterAppHost with PuterAppId::PhotoStudio / VectorStudio only |
| Monaco | Plain text and Markdown editing in the browser/webview |
| New file | office_new_file_kinds() cards used by Drive and the Files story |
The gallery (office-gallery) uses the same hosts with story seeds. The product host wires a real mailbox volume / calendar-tasks store instead of mock storage.
Calendar and tasks (v13)
| Collection | Dir | Role |
|---|---|---|
| CalendarDef | calendars/ | Named calendar (color, visibility) |
| CalendarEvent | calendar-events/ | Event row (startMs / endMs, RRULE, notes, reminder payload) |
| TaskList | task-lists/ | Named list |
| TaskItem | task-items/ | Task row (due, priority, done, ordered payload / subtasks) |
glitr-client exposes calendar.rs and tasks.rs. Reminders fire only while whatsup is open (office/reminders.rs). Chat Add to calendar on .ics / text/calendar navigates to NavTarget::OfficeApp("calendar") and imports ICS.
Gallery
| Piece | Role |
|---|---|
| office | Engine tests and blank/I/O helpers (including calendar ICS / RRULE and tasks) |
| office-ui | Hosts reused by product Drive / Office and gallery stories |
| office-gallery | Dioxus stories: Word, Spreadsheet, Slide deck, Note Pad, Calendar, Tasks, Photo/Vector Studio |
Gallery stories can dock a Dan-EL assistant (skills + MCP-shaped office::tools). The office crate stays tool-only; the gallery host wires ai-web / ai-core. Product Dan-EL chat is a separate route — see Dan-EL.
Privacy and network
| Claim | Meaning |
|---|---|
| Sealed at rest | Calendar/tasks rows use the connect-password envelope (Argon2id then AES-GCM), same as other sealed mailbox types; document bytes use the Drive vault |
| Not recipient crypto | Opening a spreadsheet or calendar does not cascade to a peer; send / share invite is an explicit chat action |
| Git host sees | UUID filenames and sizes for synced rows; event titles stay inside sealed JSON |
| Residual | A clone of your repo without the password sees envelopes; with the password, calendar/tasks contents are readable like other sealed docs |
Runtime and limits
- Browser and desktop GUI: Office hosts on the
guifeature. - TUI / stub: no office mount; Office is a graphical path.
- I/O: OOXML import/export is best-effort, not a fidelity claim against Microsoft Office.
- Reminders: in-session only while whatsup is open.
- License: office code is AGPL-3.0-only; third-party crates keep their own licenses.
Next: Drive for the vault. Data structures for DriveEntry / DriveBlob and calendar/tasks fields. How the shell mounts Office chrome is on UI/UX. User guide: Office.
