# sudo-melanin/corelog architecture

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

- Interactive diagram: https://gitdiagram.com/sudo-melanin/corelog
- Repository: https://github.com/sudo-melanin/corelog

## Overview

Corelog is a new Flutter starter project, not a documented domain application: the README identifies no product features beyond being a Flutter app. The evident workflow is platform-specific startup into a native host; the Dart entry point is present, but its behavior was not sampled, so its connection to the hosts is not asserted. Native host coverage is limited to the sampled Windows and Linux startup paths and the iOS plugin-registration hook.

Main entry points: [`windows/runner/flutter_window.h`](https://github.com/sudo-melanin/corelog/blob/main/windows/runner/flutter_window.h) (Flutter window), [`windows/runner/main.cpp`](https://github.com/sudo-melanin/corelog/blob/main/windows/runner/main.cpp) (Windows startup), [`linux/runner/main.cc`](https://github.com/sudo-melanin/corelog/blob/main/linux/runner/main.cc) (Linux startup), [`ios/Runner/AppDelegate.swift`](https://github.com/sudo-melanin/corelog/blob/main/ios/Runner/AppDelegate.swift) (iOS app delegate)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dart["Flutter app"]
  node_dart_entry["Dart entry point<br/>[main.dart]"]
end

subgraph group_windows["Windows host"]
  node_win_entry["Windows startup<br/>[main.cpp]"]
  node_win_flutter["Flutter window<br/>[flutter_window.h]"]
  node_win_window["Win32 window<br/>[win32_window.cpp]"]
end

subgraph group_linux["Linux host"]
  node_linux_entry["Linux startup<br/>[main.cc]"]
  node_linux_app["GTK application<br/>[my_application.h]"]
end

subgraph group_ios["iOS host"]
  node_ios_app["iOS app delegate<br/>[AppDelegate.swift]"]
  node_ios_plugins["Plugin registration<br/>[AppDelegate.swift]"]
end

node_user(("App user"))

node_win_entry -->|"creates"| node_win_flutter
node_win_flutter -->|"inherits"| node_win_window
node_linux_entry -->|"creates"| node_linux_app
node_ios_app -->|"registers plugins"| node_ios_plugins

click node_dart_entry "https://github.com/sudo-melanin/corelog/blob/main/lib/main.dart"
click node_win_entry "https://github.com/sudo-melanin/corelog/blob/main/windows/runner/main.cpp"
click node_win_flutter "https://github.com/sudo-melanin/corelog/blob/main/windows/runner/flutter_window.h"
click node_win_window "https://github.com/sudo-melanin/corelog/blob/main/windows/runner/win32_window.cpp"
click node_linux_entry "https://github.com/sudo-melanin/corelog/blob/main/linux/runner/main.cc"
click node_linux_app "https://github.com/sudo-melanin/corelog/blob/main/linux/runner/my_application.h"
click node_ios_app "https://github.com/sudo-melanin/corelog/blob/main/ios/Runner/AppDelegate.swift"
click node_ios_plugins "https://github.com/sudo-melanin/corelog/blob/main/ios/Runner/AppDelegate.swift"

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_dart_entry,node_user toneBlue
class node_win_entry,node_win_flutter,node_win_window toneAmber
class node_linux_entry,node_linux_app toneMint
class node_ios_app,node_ios_plugins toneRose
```

## Components

### Flutter app

- [Dart entry point](https://github.com/sudo-melanin/corelog/blob/main/lib/main.dart): `lib/main.dart`

### Windows host

- [Windows startup](https://github.com/sudo-melanin/corelog/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/sudo-melanin/corelog/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/sudo-melanin/corelog/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`

### Linux host

- [Linux startup](https://github.com/sudo-melanin/corelog/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [GTK application](https://github.com/sudo-melanin/corelog/blob/main/linux/runner/my_application.h): `linux/runner/my_application.h`

### iOS host

- [iOS app delegate](https://github.com/sudo-melanin/corelog/blob/main/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`
- [Plugin registration](https://github.com/sudo-melanin/corelog/blob/main/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`

### Other components

- **App user**

## Connections

- Windows startup → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: inherits (evidence: `windows/runner/flutter_window.h`)
- Linux startup → GTK application: creates (evidence: `linux/runner/main.cc`)
- iOS app delegate → Plugin registration: registers plugins (evidence: `ios/Runner/AppDelegate.swift`)
