# sui-ib/internalbeyond-mobile architecture

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

- Interactive diagram: https://gitdiagram.com/sui-ib/internalbeyond-mobile
- Repository: https://github.com/sui-ib/internalbeyond-mobile

## Overview

IB-Mobile is an offline-first, single-page personal app for mobile browsers, with AI-powered features that use configured online APIs. The main workflow is to open the app, configure an API, then use its companion, memory, creation, and personalization features; Cinema adds a local-video-and-chat flow. The README describes the wider feature set, but only Cinema, the app catalog, and the service worker were sampled, so unsampled module links are limited to documented capabilities and relationships.

Main entry points: [`index.html`](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html) (Mobile app), [`apps/ib-app-cinema.js`](https://github.com/sui-ib/internalbeyond-mobile/blob/main/apps/ib-app-cinema.js) (Cinema), [`apps/catalog.js`](https://github.com/sui-ib/internalbeyond-mobile/blob/main/apps/catalog.js) (App catalog), [`ib-sw.js`](https://github.com/sui-ib/internalbeyond-mobile/blob/main/ib-sw.js) (Service worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_app["Mobile app<br/>[index.html]"]
  node_home["Home and Lock<br/>[index.html]"]
  node_visual["Visual themes<br/>[index.html]"]
end

subgraph group_companion["Companion features"]
  node_chat["Chat<br/>[index.html]"]
  node_call["Calls<br/>[index.html]"]
  node_letters["Letters<br/>[index.html]"]
  node_helper["Helper<br/>[index.html]"]
end

subgraph group_personal["Memory and records"]
  node_memory["Memory<br/>[index.html]"]
  node_blog["Blog<br/>[index.html]"]
  node_calendar["Calendar<br/>[index.html]"]
  node_circle["Circle<br/>[index.html]"]
end

subgraph group_activities["Shared activities"]
  node_music["Music<br/>[index.html]"]
  node_coread["Coread<br/>[catalog.js]"]
  node_cinema["Cinema<br/>[ib-app-cinema.js]"]
end

subgraph group_runtime["Offline and integrations"]
  node_catalog["App catalog<br/>[catalog.js]"]
  node_localdata[("Browser storage")]
  node_api["AI APIs"]
  node_serviceworker["Service worker<br/>[ib-sw.js]"]
end

node_user(("User"))

node_user -->|"opens"| node_app
node_app -->|"shows"| node_home
node_home -->|"opens"| node_calendar
node_home -->|"opens"| node_visual
node_home -->|"opens"| node_music
node_app -->|"provides"| node_chat
node_app -->|"provides"| node_call
node_app -->|"provides"| node_letters
node_app -->|"provides"| node_helper
node_app -->|"provides"| node_memory
node_app -->|"provides"| node_blog
node_app -->|"provides"| node_circle
node_app -->|"provides"| node_coread
node_app -->|"provides"| node_cinema
node_chat -->|"calls"| node_api
node_cinema -->|"stores settings"| node_localdata
node_cinema -->|"opens thread"| node_chat
node_catalog -->|"lists app"| node_cinema
node_app -->|"stores data"| node_localdata
node_app -->|"registers"| node_serviceworker

click node_app "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_home "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_visual "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_chat "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_call "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_letters "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_helper "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_memory "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_blog "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_calendar "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_circle "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_music "https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html"
click node_coread "https://github.com/sui-ib/internalbeyond-mobile/blob/main/apps/catalog.js"
click node_cinema "https://github.com/sui-ib/internalbeyond-mobile/blob/main/apps/ib-app-cinema.js"
click node_catalog "https://github.com/sui-ib/internalbeyond-mobile/blob/main/apps/catalog.js"
click node_serviceworker "https://github.com/sui-ib/internalbeyond-mobile/blob/main/ib-sw.js"

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_app,node_home,node_visual,node_user toneBlue
class node_chat,node_call,node_letters,node_helper toneAmber
class node_memory,node_blog,node_calendar,node_circle toneMint
class node_music,node_coread,node_cinema toneRose
class node_catalog,node_localdata,node_api,node_serviceworker toneIndigo
```

## Components

### App experience

- [Mobile app](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`
- [Home and Lock](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`
- [Visual themes](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`

### Companion features

- [Chat](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`
- [Calls](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`
- [Letters](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`
- [Helper](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`

### Memory and records

- [Memory](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`
- [Blog](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`
- [Calendar](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`
- [Circle](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`

### Shared activities

- [Music](https://github.com/sui-ib/internalbeyond-mobile/blob/main/index.html): `index.html`
- [Coread](https://github.com/sui-ib/internalbeyond-mobile/blob/main/apps/catalog.js): `apps/catalog.js`
- [Cinema](https://github.com/sui-ib/internalbeyond-mobile/blob/main/apps/ib-app-cinema.js): `apps/ib-app-cinema.js`

### Offline and integrations

- [App catalog](https://github.com/sui-ib/internalbeyond-mobile/blob/main/apps/catalog.js): `apps/catalog.js`
- **Browser storage**
- **AI APIs**
- [Service worker](https://github.com/sui-ib/internalbeyond-mobile/blob/main/ib-sw.js): `ib-sw.js`

### Other components

- **User**

## Connections

- User → Mobile app: opens (evidence: `README.md`)
- Mobile app → Home and Lock: shows (evidence: `README.md`)
- Home and Lock → Calendar: opens (evidence: `README.md`)
- Home and Lock → Visual themes: opens (evidence: `README.md`)
- Home and Lock → Music: opens (evidence: `README.md`)
- Mobile app → Chat: provides (evidence: `README.md`)
- Mobile app → Calls: provides (evidence: `README.md`)
- Mobile app → Letters: provides (evidence: `README.md`)
- Mobile app → Helper: provides (evidence: `README.md`)
- Mobile app → Memory: provides (evidence: `README.md`)
- Mobile app → Blog: provides (evidence: `README.md`)
- Mobile app → Circle: provides (evidence: `README.md`)
- Mobile app → Coread: provides (evidence: `README.md`)
- Mobile app → Cinema: provides (evidence: `README.md`)
- Chat → AI APIs: calls (evidence: `README.md`)
- Cinema → Browser storage: stores settings (evidence: `apps/ib-app-cinema.js`)
- Cinema → Chat: opens thread (evidence: `apps/ib-app-cinema.js`)
- App catalog → Cinema: lists app (evidence: `apps/catalog.js`)
- Mobile app → Browser storage: stores data (evidence: `README.md`)
- Mobile app → Service worker: registers (evidence: `README.md`)
