# aboard-io/tinylittleoffice architecture

> Architecture diagram of the GitHub repository aboard-io/tinylittleoffice, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aboard-io/tinylittleoffice
- Repository: https://github.com/aboard-io/tinylittleoffice

## Overview

Tiny Little Office is a browser-based, account-free office suite in which a document is encoded in its URL fragment. The main workflow is to open a link, edit in one of ten app-specific editors, and share the changed link; optional capabilities include local saving, encrypted short links, social preview cards, exports, and an agent-facing API. The graph groups app editors by product domain and shows the shared route, codec, and shell layers. Some unsampled subsystems are included from the README and source index; their internal wiring is not inferred.

Main entry points: [`src/kit/core/apps.ts`](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/apps.ts) (App registry), [`src/kit/core/shell.ts`](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/shell.ts) (App shell), [`src/kit/core/codec.ts`](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/codec.ts) (Document codec), [`src/kit/core/route.ts`](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/route.ts) (Link routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_apps["Office apps"]
  node_write["Word processor<br/>[view.ts]"]
  node_outline["Outliner<br/>[editor.ts]"]
  node_deck["Presentation builder<br/>[editor.ts]"]
  node_sheet["Spreadsheet<br/>[editor.ts]"]
  node_calc["Calculator<br/>[editor.ts]"]
  node_draw["Drawing tool<br/>[editor.ts]"]
  node_diagram["Diagram maker<br/>[editor.ts]"]
  node_anim["Animator<br/>[editor.ts]"]
  node_cal["Calendar<br/>[editor.ts]"]
  node_trip["Trip planner<br/>[editor.ts]"]
end

subgraph group_runtime["Document runtime"]
  node_shell["App shell<br/>[shell.ts]"]
  node_registry["App registry<br/>[apps.ts]"]
  node_routes["Link routing<br/>[route.ts]"]
  node_codec["Document codec<br/>[codec.ts]"]
  node_commands["Command system<br/>[commands.ts]"]
  node_text["Text editing<br/>[text.ts]"]
end

subgraph group_sharing["Sharing and privacy"]
  node_share["Privacy and sharing<br/>[locked.ts]"]
  node_exports["File exports<br/>[exports.ts]"]
end

subgraph group_services["Interfaces and hosting"]
  node_api["Agent API<br/>[api.ts]"]
  node_site["Site pages<br/>[site.ts]"]
  node_host["Self-host server<br/>[server.ts]"]
  node_cards["Preview cards<br/>[cards.ts]"]
end

node_person(("Document user"))

node_person -->|"opens link"| node_shell
node_shell -.->|"reads fragment"| node_routes
node_routes -->|"checks payload"| node_codec
node_shell -.->|"selects app"| node_registry
node_registry -->|"offers app"| node_write
node_registry -->|"offers app"| node_outline
node_registry -->|"offers app"| node_deck
node_registry -->|"offers app"| node_sheet
node_registry -->|"offers app"| node_calc
node_registry -->|"offers app"| node_draw
node_registry -->|"offers app"| node_diagram
node_registry -->|"offers app"| node_anim
node_registry -->|"offers app"| node_cal
node_registry -->|"offers app"| node_trip
node_shell -->|"encodes edits"| node_codec
node_shell -->|"forwards actions"| node_commands
node_text -->|"copies links"| node_codec
node_person -->|"chooses privacy"| node_share
node_person -->|"downloads file"| node_exports
node_person -->|"uses agent access"| node_api
node_person -->|"opens site"| node_site
node_person -->|"self-hosts"| node_host
node_share -.->|"saves preview"| node_cards

click node_shell "https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/shell.ts"
click node_registry "https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/apps.ts"
click node_routes "https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/route.ts"
click node_codec "https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/codec.ts"
click node_commands "https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/commands.ts"
click node_text "https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/text/text.ts"
click node_write "https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/write/view.ts"
click node_outline "https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/outline/editor.ts"
click node_deck "https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/deck/editor.ts"
click node_sheet "https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/sheet/editor.ts"
click node_calc "https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/calc/editor.ts"
click node_draw "https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/draw/editor.ts"
click node_diagram "https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/diagram/editor.ts"
click node_anim "https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/anim/editor.ts"
click node_cal "https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/cal/editor.ts"
click node_trip "https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/trip/editor.ts"
click node_share "https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/share/locked.ts"
click node_exports "https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/file/exports.ts"
click node_api "https://github.com/aboard-io/tinylittleoffice/blob/main/src/api.ts"
click node_site "https://github.com/aboard-io/tinylittleoffice/blob/main/site/site.ts"
click node_host "https://github.com/aboard-io/tinylittleoffice/blob/main/selfhost/server.ts"
click node_cards "https://github.com/aboard-io/tinylittleoffice/blob/main/tinier/cards.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_write,node_outline,node_deck,node_sheet,node_calc,node_draw,node_diagram,node_anim,node_cal,node_trip,node_person toneBlue
class node_shell,node_registry,node_routes,node_codec,node_commands,node_text toneAmber
class node_share,node_exports toneMint
class node_api,node_site,node_host,node_cards toneRose
```

## Components

### Office apps

- [Word processor](https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/write/view.ts): `src/apps/write/view.ts`
- [Outliner](https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/outline/editor.ts): `src/apps/outline/editor.ts`
- [Presentation builder](https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/deck/editor.ts): `src/apps/deck/editor.ts`
- [Spreadsheet](https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/sheet/editor.ts): `src/apps/sheet/editor.ts`
- [Calculator](https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/calc/editor.ts): `src/apps/calc/editor.ts`
- [Drawing tool](https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/draw/editor.ts): `src/apps/draw/editor.ts`
- [Diagram maker](https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/diagram/editor.ts): `src/apps/diagram/editor.ts`
- [Animator](https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/anim/editor.ts): `src/apps/anim/editor.ts`
- [Calendar](https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/cal/editor.ts): `src/apps/cal/editor.ts`
- [Trip planner](https://github.com/aboard-io/tinylittleoffice/blob/main/src/apps/trip/editor.ts): `src/apps/trip/editor.ts`

### Document runtime

- [App shell](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/shell.ts): `src/kit/core/shell.ts`
- [App registry](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/apps.ts): `src/kit/core/apps.ts`
- [Link routing](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/route.ts): `src/kit/core/route.ts`
- [Document codec](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/codec.ts): `src/kit/core/codec.ts`
- [Command system](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/core/commands.ts): `src/kit/core/commands.ts`
- [Text editing](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/text/text.ts): `src/kit/text/text.ts`

### Sharing and privacy

- [Privacy and sharing](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/share/locked.ts): `src/kit/share/locked.ts`
- [File exports](https://github.com/aboard-io/tinylittleoffice/blob/main/src/kit/file/exports.ts): `src/kit/file/exports.ts`

### Interfaces and hosting

- [Agent API](https://github.com/aboard-io/tinylittleoffice/blob/main/src/api.ts): `src/api.ts`
- [Site pages](https://github.com/aboard-io/tinylittleoffice/blob/main/site/site.ts): `site/site.ts`
- [Self-host server](https://github.com/aboard-io/tinylittleoffice/blob/main/selfhost/server.ts): `selfhost/server.ts`
- [Preview cards](https://github.com/aboard-io/tinylittleoffice/blob/main/tinier/cards.ts): `tinier/cards.ts`

### Other components

- **Document user**

## Connections

- Document user → App shell: opens link
- App shell → Link routing: reads fragment
- Link routing → Document codec: checks payload (evidence: `src/kit/core/route.ts`)
- App shell → App registry: selects app
- App registry → Word processor: offers app
- App registry → Outliner: offers app (evidence: `src/apps/outline/editor.ts`)
- App registry → Presentation builder: offers app
- App registry → Spreadsheet: offers app
- App registry → Calculator: offers app
- App registry → Drawing tool: offers app
- App registry → Diagram maker: offers app
- App registry → Animator: offers app
- App registry → Calendar: offers app
- App registry → Trip planner: offers app
- App shell → Document codec: encodes edits
- App shell → Command system: forwards actions
- Text editing → Document codec: copies links
- Document user → Privacy and sharing: chooses privacy
- Document user → File exports: downloads file
- Document user → Agent API: uses agent access
- Document user → Site pages: opens site
- Document user → Self-host server: self-hosts
- Privacy and sharing → Preview cards: saves preview
