# nameless499/-smartschool architecture

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

- Interactive diagram: https://gitdiagram.com/nameless499/-smartschool
- Repository: https://github.com/nameless499/-smartschool

## Overview

Smartschool is identified as a Flutter application, but the repository snapshot contains no Flutter/Dart source: only compiled web assets, platform runners, and two PayMongo-named Supabase functions. The README documents no user workflow or application capabilities, so the graph preserves the visible payment endpoints and representative runner structure without inferring how the app uses them. Payment relationships are dashed because the function implementations were not excerpted.

Main entry points: [`windows/runner/flutter_window.h`](https://github.com/nameless499/-smartschool/blob/main/windows/runner/flutter_window.h) (Flutter window), [`windows/runner/main.cpp`](https://github.com/nameless499/-smartschool/blob/main/windows/runner/main.cpp) (Windows entry), [`linux/runner/main.cc`](https://github.com/nameless499/-smartschool/blob/main/linux/runner/main.cc) (Linux entry), [`supabase/functions/create-paymongo-checkout/index.ts`](https://github.com/nameless499/-smartschool/blob/main/supabase/functions/create-paymongo-checkout/index.ts) (Create checkout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Flutter client"]
  node_webapp["Compiled web app<br/>[main.dart.js]"]
end

subgraph group_runners["Platform runners"]
  node_windows_entry["Windows entry<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.h]"]
  node_win32_window["Win32 window<br/>[win32_window.cpp]"]
  node_linux_entry["Linux entry<br/>[main.cc]"]
  node_linux_app["Linux application<br/>[my_application.cc]"]
  node_plugin_registrant["Linux plugin registrar"]
  node_mac_plugins["macOS plugin registrar"]
end

subgraph group_payments["Payment functions"]
  node_create_checkout["Create checkout<br/>[index.ts]"]
  node_webhook["Payment webhook<br/>[index.ts]"]
end

node_user(("App user"))
node_paymongo{{"PayMongo"}}

node_user -.->|"uses"| node_webapp
node_windows_entry -->|"creates"| node_flutter_window
node_flutter_window -->|"inherits"| node_win32_window
node_linux_entry -->|"starts"| node_linux_app
node_create_checkout -.->|"creates checkout"| node_paymongo
node_paymongo -.->|"sends events"| node_webhook

click node_webapp "https://github.com/nameless499/-smartschool/blob/main/webapp/main.dart.js"
click node_windows_entry "https://github.com/nameless499/-smartschool/blob/main/windows/runner/main.cpp"
click node_flutter_window "https://github.com/nameless499/-smartschool/blob/main/windows/runner/flutter_window.h"
click node_win32_window "https://github.com/nameless499/-smartschool/blob/main/windows/runner/win32_window.cpp"
click node_linux_entry "https://github.com/nameless499/-smartschool/blob/main/linux/runner/main.cc"
click node_linux_app "https://github.com/nameless499/-smartschool/blob/main/linux/runner/my_application.cc"
click node_plugin_registrant "https://github.com/nameless499/-smartschool/blob/main/linux/flutter/generated_plugin_registrant.cc"
click node_mac_plugins "https://github.com/nameless499/-smartschool/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift"
click node_create_checkout "https://github.com/nameless499/-smartschool/blob/main/supabase/functions/create-paymongo-checkout/index.ts"
click node_webhook "https://github.com/nameless499/-smartschool/blob/main/supabase/functions/paymongo-webhook/index.ts"

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_webapp,node_user toneBlue
class node_windows_entry,node_flutter_window,node_win32_window,node_linux_entry,node_linux_app,node_plugin_registrant,node_mac_plugins toneAmber
class node_create_checkout,node_webhook toneMint
class node_paymongo toneIndigo
```

## Components

### Flutter client

- [Compiled web app](https://github.com/nameless499/-smartschool/blob/main/webapp/main.dart.js): `webapp/main.dart.js`

### Platform runners

- [Windows entry](https://github.com/nameless499/-smartschool/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/nameless499/-smartschool/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/nameless499/-smartschool/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Linux entry](https://github.com/nameless499/-smartschool/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [Linux application](https://github.com/nameless499/-smartschool/blob/main/linux/runner/my_application.cc): `linux/runner/my_application.cc`
- [Linux plugin registrar](https://github.com/nameless499/-smartschool/blob/main/linux/flutter/generated_plugin_registrant.cc): `linux/flutter/generated_plugin_registrant.cc`
- [macOS plugin registrar](https://github.com/nameless499/-smartschool/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`

### Payment functions

- [Create checkout](https://github.com/nameless499/-smartschool/blob/main/supabase/functions/create-paymongo-checkout/index.ts): `supabase/functions/create-paymongo-checkout/index.ts`
- [Payment webhook](https://github.com/nameless499/-smartschool/blob/main/supabase/functions/paymongo-webhook/index.ts): `supabase/functions/paymongo-webhook/index.ts`

### Other components

- **App user**
- **PayMongo**

## Connections

- App user → Compiled web app: uses
- Windows entry → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: inherits (evidence: `windows/runner/flutter_window.h`)
- Linux entry → Linux application: starts (evidence: `linux/runner/main.cc`)
- Create checkout → PayMongo: creates checkout
- PayMongo → Payment webhook: sends events
