# haunguyen1312/pray architecture

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

- Interactive diagram: https://gitdiagram.com/haunguyen1312/pray
- Repository: https://github.com/haunguyen1312/pray

## Overview

This is a Flutter application titled “Pray,” but the README describes only a starter project and the Dart entry point was not excerpted. The likely user workflow is opening the app and viewing prayer-related content; the tree contains prayer data, but no shown source confirms how it is loaded or presented. The graph therefore shows the documented Flutter entry and evidenced desktop host wiring, while leaving unverified app-to-data links out. Platform host details are starter scaffolding, not evidence of additional product capabilities.

Main entry points: [`linux/runner/my_application.h`](https://github.com/haunguyen1312/pray/blob/Master/linux/runner/my_application.h) (Linux application), [`windows/runner/flutter_window.h`](https://github.com/haunguyen1312/pray/blob/Master/windows/runner/flutter_window.h) (Flutter window), [`linux/runner/main.cc`](https://github.com/haunguyen1312/pray/blob/Master/linux/runner/main.cc) (Linux launcher), [`windows/runner/main.cpp`](https://github.com/haunguyen1312/pray/blob/Master/windows/runner/main.cpp) (Windows launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter app"]
  node_dart["Dart app entry<br/>[main.dart]"]
end

subgraph group_desktop["Desktop hosts"]
  node_linux_main["Linux launcher<br/>[main.cc]"]
  node_linux_app["Linux application<br/>[my_application.h]"]
  node_linux_plugins["Linux plugin registration"]
  node_windows_main["Windows launcher<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.h]"]
  node_win32_window["Win32 window<br/>[win32_window.cpp]"]
  node_windows_plugins["Windows plugin registration"]
  node_macos_plugins["macOS plugin registration"]
end

subgraph group_content["Prayer content"]
  node_prayers["Prayer data<br/>[prayers.json]"]
end

node_user(("App user"))

node_user -.->|"opens"| node_dart
node_linux_main -->|"launches"| node_linux_app
node_linux_app -->|"registers plugins"| node_linux_plugins
node_windows_main -->|"creates"| node_flutter_window
node_flutter_window -->|"extends"| node_win32_window

click node_dart "https://github.com/haunguyen1312/pray/blob/Master/lib/main.dart"
click node_prayers "https://github.com/haunguyen1312/pray/blob/Master/assets/data/prayers.json"
click node_linux_main "https://github.com/haunguyen1312/pray/blob/Master/linux/runner/main.cc"
click node_linux_app "https://github.com/haunguyen1312/pray/blob/Master/linux/runner/my_application.h"
click node_linux_plugins "https://github.com/haunguyen1312/pray/tree/Master/linux/flutter"
click node_windows_main "https://github.com/haunguyen1312/pray/blob/Master/windows/runner/main.cpp"
click node_flutter_window "https://github.com/haunguyen1312/pray/blob/Master/windows/runner/flutter_window.h"
click node_win32_window "https://github.com/haunguyen1312/pray/blob/Master/windows/runner/win32_window.cpp"
click node_windows_plugins "https://github.com/haunguyen1312/pray/tree/Master/windows/flutter"
click node_macos_plugins "https://github.com/haunguyen1312/pray/blob/Master/macos/Flutter/GeneratedPluginRegistrant.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,node_user toneBlue
class node_linux_main,node_linux_app,node_linux_plugins,node_windows_main,node_flutter_window,node_win32_window,node_windows_plugins,node_macos_plugins toneAmber
class node_prayers toneMint
```

## Components

### Flutter app

- [Dart app entry](https://github.com/haunguyen1312/pray/blob/Master/lib/main.dart): `lib/main.dart`

### Desktop hosts

- [Linux launcher](https://github.com/haunguyen1312/pray/blob/Master/linux/runner/main.cc): `linux/runner/main.cc`
- [Linux application](https://github.com/haunguyen1312/pray/blob/Master/linux/runner/my_application.h): `linux/runner/my_application.h`
- [Linux plugin registration](https://github.com/haunguyen1312/pray/tree/Master/linux/flutter): `linux/flutter`
- [Windows launcher](https://github.com/haunguyen1312/pray/blob/Master/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/haunguyen1312/pray/blob/Master/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/haunguyen1312/pray/blob/Master/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Windows plugin registration](https://github.com/haunguyen1312/pray/tree/Master/windows/flutter): `windows/flutter`
- [macOS plugin registration](https://github.com/haunguyen1312/pray/blob/Master/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`

### Prayer content

- [Prayer data](https://github.com/haunguyen1312/pray/blob/Master/assets/data/prayers.json): `assets/data/prayers.json`

### Other components

- **App user**

## Connections

- App user → Dart app entry: opens (evidence: `README.md`)
- Linux launcher → Linux application: launches (evidence: `linux/runner/main.cc`)
- Linux application → Linux plugin registration: registers plugins (evidence: `linux/runner/my_application.cc`)
- Windows launcher → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: extends (evidence: `windows/runner/flutter_window.h`)
