# lcdii/energydex architecture

> Architecture diagram of the GitHub repository lcdii/energydex, 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/lcdii/energydex
- Repository: https://github.com/lcdii/energydex

## Overview

This is a minimal Kotlin Multiplatform Android/iOS starter, not yet a documented energy-drink workflow. The only visible runtime path is the SwiftUI iOS entry hosting the shared Compose controller. Domain files are present in the tree, but their behavior and connections were not sampled; the graph leaves those links out rather than infer a workflow.

Main entry points: [`iosApp/iosApp/ContentView.swift`](https://github.com/lcdii/energydex/blob/master/iosApp/iosApp/ContentView.swift) (SwiftUI host), [`iosApp/iosApp/iOSApp.swift`](https://github.com/lcdii/energydex/blob/master/iosApp/iosApp/iOSApp.swift) (iOS app), [`composeApp/src/iosMain/kotlin/com/example/energydeks/MainViewController.kt`](https://github.com/lcdii/energydex/blob/master/composeApp/src/iosMain/kotlin/com/example/energydeks/MainViewController.kt) (Compose controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Platform entry points"]
  node_ios_app["iOS app<br/>[iOSApp.swift]"]
  node_ios_view["SwiftUI host<br/>[ContentView.swift]"]
  node_ios_controller["Compose controller"]
  node_android_entry["Android activity<br/>[MainActivity.kt]"]
end

subgraph group_shared["Shared app and domain"]
  node_shared_app["Shared Compose app<br/>[App.kt]"]
  node_energy_drink["Energy drink model<br/>[EnergyDrink.kt]"]
  node_result["Domain result<br/>[Result.kt]"]
end

node_ios_app -->|"shows"| node_ios_view
node_ios_view -->|"creates"| node_ios_controller

click node_ios_app "https://github.com/lcdii/energydex/blob/master/iosApp/iosApp/iOSApp.swift"
click node_ios_view "https://github.com/lcdii/energydex/blob/master/iosApp/iosApp/ContentView.swift"
click node_ios_controller "https://github.com/lcdii/energydex/blob/master/composeApp/src/iosMain/kotlin/com/example/energydeks/MainViewController.kt"
click node_android_entry "https://github.com/lcdii/energydex/blob/master/composeApp/src/androidMain/kotlin/com/example/energydeks/MainActivity.kt"
click node_shared_app "https://github.com/lcdii/energydex/blob/master/composeApp/src/commonMain/kotlin/com/example/energydeks/App.kt"
click node_energy_drink "https://github.com/lcdii/energydex/blob/master/composeApp/src/commonMain/kotlin/com/example/energydeks/energydrink/domain/EnergyDrink.kt"
click node_result "https://github.com/lcdii/energydex/blob/master/composeApp/src/commonMain/kotlin/com/example/energydeks/core/domain/Result.kt"

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_ios_app,node_ios_view,node_ios_controller,node_android_entry toneBlue
class node_shared_app,node_energy_drink,node_result toneAmber
```

## Components

### Platform entry points

- [iOS app](https://github.com/lcdii/energydex/blob/master/iosApp/iosApp/iOSApp.swift): `iosApp/iosApp/iOSApp.swift`
- [SwiftUI host](https://github.com/lcdii/energydex/blob/master/iosApp/iosApp/ContentView.swift): `iosApp/iosApp/ContentView.swift`
- [Compose controller](https://github.com/lcdii/energydex/blob/master/composeApp/src/iosMain/kotlin/com/example/energydeks/MainViewController.kt): `composeApp/src/iosMain/kotlin/com/example/energydeks/MainViewController.kt`
- [Android activity](https://github.com/lcdii/energydex/blob/master/composeApp/src/androidMain/kotlin/com/example/energydeks/MainActivity.kt): `composeApp/src/androidMain/kotlin/com/example/energydeks/MainActivity.kt`

### Shared app and domain

- [Shared Compose app](https://github.com/lcdii/energydex/blob/master/composeApp/src/commonMain/kotlin/com/example/energydeks/App.kt): `composeApp/src/commonMain/kotlin/com/example/energydeks/App.kt`
- [Energy drink model](https://github.com/lcdii/energydex/blob/master/composeApp/src/commonMain/kotlin/com/example/energydeks/energydrink/domain/EnergyDrink.kt): `composeApp/src/commonMain/kotlin/com/example/energydeks/energydrink/domain/EnergyDrink.kt`
- [Domain result](https://github.com/lcdii/energydex/blob/master/composeApp/src/commonMain/kotlin/com/example/energydeks/core/domain/Result.kt): `composeApp/src/commonMain/kotlin/com/example/energydeks/core/domain/Result.kt`

## Connections

- iOS app → SwiftUI host: shows (evidence: `iosApp/iosApp/iOSApp.swift`)
- SwiftUI host → Compose controller: creates (evidence: `iosApp/iosApp/ContentView.swift`)
