# mledlin/ibdc architecture

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

- Interactive diagram: https://gitdiagram.com/mledlin/ibdc
- Repository: https://github.com/mledlin/ibdc

## Overview

This repository is an Expo/React Native starter app with an IBDC device-to-phone protocol schema, not a demonstrated end-to-end IBDC client. The visible app workflow is opening the app into its themed navigation shell, then using the home, explore, or modal screens. The schema describes event notifications, image transfer, settings, device status, and recovery requests, but no sampled runtime code implements BLE communication or consumes that schema; those capabilities are therefore shown as a contract, not as working app stages.

Main entry points: [`IBDC-expo/app/(tabs)/explore.tsx`](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/(tabs)/explore.tsx) (Explore screen), [`IBDC-expo/components/parallax-scroll-view.tsx`](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/parallax-scroll-view.tsx) (Parallax view), [`IBDC-expo/components/themed-text.tsx`](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/themed-text.tsx) (Themed components), [`IBDC-expo/app/(tabs)/index.tsx`](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/(tabs)/index.tsx) (Home screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_root["Root layout<br/>[_layout.tsx]"]
  node_tabs["Tab navigator<br/>[_layout.tsx]"]
end

subgraph group_presentation["Screen presentation"]
  node_home["Home screen<br/>[index.tsx]"]
  node_explore["Explore screen<br/>[explore.tsx]"]
  node_modal["Modal screen<br/>[modal.tsx]"]
  node_parallax["Parallax view"]
  node_themed["Themed components<br/>[themed-text.tsx]"]
  node_collapsible["Collapsible sections<br/>[collapsible.tsx]"]
  node_links["External links<br/>[external-link.tsx]"]
  node_icons["Platform icons<br/>[icon-symbol.tsx]"]
  node_wave["Hello animation<br/>[hello-wave.tsx]"]
  node_theme["Theme colors<br/>[theme.ts]"]
  node_theme_hook["Theme color hook<br/>[use-theme-color.ts]"]
  node_color_hook["Color scheme hook"]
  node_web_color_hook["Web color hook"]
end

subgraph group_protocol["Device protocol"]
  node_protocol["IBDC message schema<br/>[IBDC.proto]"]
end

node_user(("App user"))
node_device(("Embedded device"))
node_phone(("Phone client"))

node_user -->|"opens app"| node_root
node_root -->|"registers tabs"| node_tabs
node_root -->|"registers modal"| node_modal
node_home -->|"renders"| node_parallax
node_home -->|"renders"| node_themed
node_home -->|"renders"| node_wave
node_home -->|"links to"| node_modal
node_explore -->|"renders"| node_parallax
node_explore -->|"renders"| node_themed
node_explore -->|"renders"| node_collapsible
node_explore -->|"renders"| node_links
node_explore -->|"renders"| node_icons
node_modal -->|"renders"| node_themed
node_parallax -->|"renders"| node_themed
node_parallax -->|"reads colors"| node_theme_hook
node_parallax -->|"reads scheme"| node_color_hook
node_themed -->|"reads color"| node_theme_hook
node_theme_hook -->|"reads palette"| node_theme
node_theme_hook -->|"reads scheme"| node_color_hook
node_web_color_hook -->|"wraps scheme"| node_color_hook
node_device -->|"defines event messages"| node_protocol
node_phone -->|"defines requests"| node_protocol

click node_root "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/_layout.tsx"
click node_tabs "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/(tabs)/_layout.tsx"
click node_home "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/(tabs)/index.tsx"
click node_explore "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/(tabs)/explore.tsx"
click node_modal "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/modal.tsx"
click node_parallax "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/parallax-scroll-view.tsx"
click node_themed "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/themed-text.tsx"
click node_collapsible "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/ui/collapsible.tsx"
click node_links "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/external-link.tsx"
click node_icons "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/ui/icon-symbol.tsx"
click node_wave "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/hello-wave.tsx"
click node_theme "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/constants/theme.ts"
click node_theme_hook "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/hooks/use-theme-color.ts"
click node_color_hook "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/hooks/use-color-scheme.ts"
click node_web_color_hook "https://github.com/mledlin/ibdc/blob/main/IBDC-expo/hooks/use-color-scheme.web.ts"
click node_protocol "https://github.com/mledlin/ibdc/blob/main/Documents/IBDC.proto"

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_root,node_tabs,node_user,node_phone toneBlue
class node_home,node_explore,node_modal,node_parallax,node_themed,node_collapsible,node_links,node_icons,node_wave,node_theme,node_theme_hook,node_color_hook,node_web_color_hook toneAmber
class node_protocol toneMint
class node_device toneIndigo
```

## Components

### App navigation

- [Root layout](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/_layout.tsx): `IBDC-expo/app/_layout.tsx`
- [Tab navigator](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/(tabs)/_layout.tsx): `IBDC-expo/app/(tabs)/_layout.tsx`

### Screen presentation

- [Home screen](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/(tabs)/index.tsx): `IBDC-expo/app/(tabs)/index.tsx`
- [Explore screen](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/(tabs)/explore.tsx): `IBDC-expo/app/(tabs)/explore.tsx`
- [Modal screen](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/app/modal.tsx): `IBDC-expo/app/modal.tsx`
- [Parallax view](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/parallax-scroll-view.tsx): `IBDC-expo/components/parallax-scroll-view.tsx`
- [Themed components](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/themed-text.tsx): `IBDC-expo/components/themed-text.tsx`
- [Collapsible sections](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/ui/collapsible.tsx): `IBDC-expo/components/ui/collapsible.tsx`
- [External links](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/external-link.tsx): `IBDC-expo/components/external-link.tsx`
- [Platform icons](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/ui/icon-symbol.tsx): `IBDC-expo/components/ui/icon-symbol.tsx`
- [Hello animation](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/components/hello-wave.tsx): `IBDC-expo/components/hello-wave.tsx`
- [Theme colors](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/constants/theme.ts): `IBDC-expo/constants/theme.ts`
- [Theme color hook](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/hooks/use-theme-color.ts): `IBDC-expo/hooks/use-theme-color.ts`
- [Color scheme hook](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/hooks/use-color-scheme.ts): `IBDC-expo/hooks/use-color-scheme.ts`
- [Web color hook](https://github.com/mledlin/ibdc/blob/main/IBDC-expo/hooks/use-color-scheme.web.ts): `IBDC-expo/hooks/use-color-scheme.web.ts`

### Device protocol

- [IBDC message schema](https://github.com/mledlin/ibdc/blob/main/Documents/IBDC.proto): `Documents/IBDC.proto`

### Other components

- **App user**
- **Embedded device**
- **Phone client**

## Connections

- App user → Root layout: opens app
- Root layout → Tab navigator: registers tabs (evidence: `IBDC-expo/app/_layout.tsx`)
- Root layout → Modal screen: registers modal (evidence: `IBDC-expo/app/_layout.tsx`)
- Home screen → Parallax view: renders (evidence: `IBDC-expo/app/(tabs)/index.tsx`)
- Home screen → Themed components: renders (evidence: `IBDC-expo/app/(tabs)/index.tsx`)
- Home screen → Hello animation: renders (evidence: `IBDC-expo/app/(tabs)/index.tsx`)
- Home screen → Modal screen: links to (evidence: `IBDC-expo/app/(tabs)/index.tsx`)
- Explore screen → Parallax view: renders (evidence: `IBDC-expo/app/(tabs)/explore.tsx`)
- Explore screen → Themed components: renders (evidence: `IBDC-expo/app/(tabs)/explore.tsx`)
- Explore screen → Collapsible sections: renders (evidence: `IBDC-expo/app/(tabs)/explore.tsx`)
- Explore screen → External links: renders (evidence: `IBDC-expo/app/(tabs)/explore.tsx`)
- Explore screen → Platform icons: renders (evidence: `IBDC-expo/app/(tabs)/explore.tsx`)
- Modal screen → Themed components: renders (evidence: `IBDC-expo/app/modal.tsx`)
- Parallax view → Themed components: renders (evidence: `IBDC-expo/components/parallax-scroll-view.tsx`)
- Parallax view → Theme color hook: reads colors (evidence: `IBDC-expo/components/parallax-scroll-view.tsx`)
- Parallax view → Color scheme hook: reads scheme (evidence: `IBDC-expo/components/parallax-scroll-view.tsx`)
- Themed components → Theme color hook: reads color (evidence: `IBDC-expo/components/themed-text.tsx`)
- Theme color hook → Theme colors: reads palette (evidence: `IBDC-expo/hooks/use-theme-color.ts`)
- Theme color hook → Color scheme hook: reads scheme (evidence: `IBDC-expo/hooks/use-theme-color.ts`)
- Web color hook → Color scheme hook: wraps scheme (evidence: `IBDC-expo/hooks/use-color-scheme.web.ts`)
- Embedded device → IBDC message schema: defines event messages (evidence: `Documents/IBDC.proto`)
- Phone client → IBDC message schema: defines requests (evidence: `Documents/IBDC.proto`)
