# rk-tanikonda/harmonium-laptop architecture

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

- Interactive diagram: https://gitdiagram.com/rk-tanikonda/harmonium-laptop
- Repository: https://github.com/rk-tanikonda/harmonium-laptop

## Overview

Harmonium Laptop is a cross-platform Flutter app paired with a Go harmonium/audio engine. The intended user workflow is to interact with the app and produce harmonium audio, but the sampled Go implementation is explicitly a stub, and the excerpts do not show Flutter-to-Go wiring. The graph separates app UI, platform launch shells, and engine controls/rendering; the UI-to-engine link is dashed to mark that unverified integration.

Main entry points: [`flutter_app/harmonium_app/lib/main.dart`](https://github.com/rk-tanikonda/harmonium-laptop/blob/main/flutter_app/harmonium_app/lib/main.dart) (Flutter UI), [`flutter_app/harmonium_app/windows/runner`](https://github.com/rk-tanikonda/harmonium-laptop/tree/main/flutter_app/harmonium_app/windows/runner) (Windows Shell), [`flutter_app/harmonium_app/linux/runner`](https://github.com/rk-tanikonda/harmonium-laptop/tree/main/flutter_app/harmonium_app/linux/runner) (Linux Shell), [`flutter_app/harmonium_app/macos/Runner`](https://github.com/rk-tanikonda/harmonium-laptop/tree/main/flutter_app/harmonium_app/macos/Runner) (macOS Shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter App"]
  node_flutter_ui["Flutter UI<br/>[main.dart]"]
end

subgraph group_platform["Platform Shells"]
  node_windows_shell["Windows Shell"]
  node_linux_shell["Linux Shell"]
  node_macos_shell["macOS Shell"]
  node_ios_shell["iOS Shell"]
end

subgraph group_audio["Go Audio Engine"]
  node_engine_controls["Engine Controls<br/>[engine.go]"]
  node_audio_render["Audio Rendering<br/>[engine.go]"]
end

node_user(("Device User"))

node_user -->|"uses"| node_flutter_ui
node_windows_shell -->|"hosts"| node_flutter_ui
node_linux_shell -->|"hosts"| node_flutter_ui
node_macos_shell -->|"hosts"| node_flutter_ui
node_ios_shell -->|"launches"| node_flutter_ui
node_flutter_ui -.->|"may invoke"| node_engine_controls

click node_flutter_ui "https://github.com/rk-tanikonda/harmonium-laptop/blob/main/flutter_app/harmonium_app/lib/main.dart"
click node_windows_shell "https://github.com/rk-tanikonda/harmonium-laptop/tree/main/flutter_app/harmonium_app/windows/runner"
click node_linux_shell "https://github.com/rk-tanikonda/harmonium-laptop/tree/main/flutter_app/harmonium_app/linux/runner"
click node_macos_shell "https://github.com/rk-tanikonda/harmonium-laptop/tree/main/flutter_app/harmonium_app/macos/Runner"
click node_ios_shell "https://github.com/rk-tanikonda/harmonium-laptop/tree/main/flutter_app/harmonium_app/ios/Runner"
click node_engine_controls "https://github.com/rk-tanikonda/harmonium-laptop/blob/main/go_engine/engine.go"
click node_audio_render "https://github.com/rk-tanikonda/harmonium-laptop/blob/main/go_engine/engine.go"

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_flutter_ui,node_user toneBlue
class node_windows_shell,node_linux_shell,node_macos_shell,node_ios_shell toneAmber
class node_engine_controls,node_audio_render toneMint
```

## Components

### Flutter App

- [Flutter UI](https://github.com/rk-tanikonda/harmonium-laptop/blob/main/flutter_app/harmonium_app/lib/main.dart): `flutter_app/harmonium_app/lib/main.dart`

### Platform Shells

- [Windows Shell](https://github.com/rk-tanikonda/harmonium-laptop/tree/main/flutter_app/harmonium_app/windows/runner): `flutter_app/harmonium_app/windows/runner`
- [Linux Shell](https://github.com/rk-tanikonda/harmonium-laptop/tree/main/flutter_app/harmonium_app/linux/runner): `flutter_app/harmonium_app/linux/runner`
- [macOS Shell](https://github.com/rk-tanikonda/harmonium-laptop/tree/main/flutter_app/harmonium_app/macos/Runner): `flutter_app/harmonium_app/macos/Runner`
- [iOS Shell](https://github.com/rk-tanikonda/harmonium-laptop/tree/main/flutter_app/harmonium_app/ios/Runner): `flutter_app/harmonium_app/ios/Runner`

### Go Audio Engine

- [Engine Controls](https://github.com/rk-tanikonda/harmonium-laptop/blob/main/go_engine/engine.go): `go_engine/engine.go`
- [Audio Rendering](https://github.com/rk-tanikonda/harmonium-laptop/blob/main/go_engine/engine.go): `go_engine/engine.go`

### Other components

- **Device User**

## Connections

- Device User → Flutter UI: uses (evidence: `README.md`)
- Windows Shell → Flutter UI: hosts (evidence: `flutter_app/harmonium_app/windows/runner/main.cpp`)
- Linux Shell → Flutter UI: hosts (evidence: `flutter_app/harmonium_app/linux/runner/my_application.cc`)
- macOS Shell → Flutter UI: hosts (evidence: `flutter_app/harmonium_app/macos/Runner/MainFlutterWindow.swift`)
- iOS Shell → Flutter UI: launches (evidence: `flutter_app/harmonium_app/ios/Runner/AppDelegate.swift`)
- Flutter UI → Engine Controls: may invoke
