# tutodecode-fr/t2decode architecture

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

- Interactive diagram: https://gitdiagram.com/tutodecode-fr/t2decode
- Repository: https://github.com/tutodecode-fr/t2decode

## Overview

T2DECODE is an offline learning app for networking, Linux, and cybersecurity. The README describes the user path from opening the app to choosing the toolbox, practicing an interactive subnet exercise, and checking a worked correction; it also documents courses, simulations, terminal practice, tools, cryptography, custom courses, and an optional local Ollama assistant. The supplied tree omits the Flutter/Dart application source, so these capabilities have no supported implementation paths here. The graph therefore shows them as documented product components and limits source-level links to visible platform bootstrap calls.

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

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning content"]
  node_app["T2DECODE app"]
  node_courses["Courses and quizzes"]
  node_custom_courses["Custom courses"]
end

subgraph group_practice["Practice and tools"]
  node_simulations["Simulations"]
  node_terminal["Linux terminal"]
  node_toolbox["Toolbox"]
  node_subnet_exercise["Subnet exercise"]
  node_crypto["Cryptography lessons"]
end

subgraph group_runtime["Platform runtime"]
  node_windows_entry["Windows entry point<br/>[main.cpp]"]
  node_windows_host["Flutter window host<br/>[flutter_window.h]"]
  node_linux_entry["Linux entry point<br/>[main.cc]"]
  node_linux_app["GTK application<br/>[my_application.h]"]
  node_ios_delegate["iOS app delegate<br/>[AppDelegate.swift]"]
end

subgraph group_local_ai["Local assistant"]
  node_assistant["Course assistant"]
end

node_learner(("Learner"))
node_ollama(("Ollama service"))

node_learner -->|"opens"| node_app
node_app -->|"opens toolbox"| node_toolbox
node_toolbox -->|"selects exercise"| node_subnet_exercise
node_learner -->|"studies"| node_courses
node_learner -->|"uses courses"| node_custom_courses
node_learner -->|"practices with"| node_simulations
node_learner -->|"practices in"| node_terminal
node_learner -->|"learns"| node_crypto
node_learner -->|"asks"| node_assistant
node_assistant -.->|"queries optionally"| node_ollama
node_windows_entry -->|"creates"| node_windows_host
node_linux_entry -->|"runs"| node_linux_app
node_ios_delegate -->|"registers plugins"| node_ios_delegate

click node_windows_entry "https://github.com/tutodecode-fr/t2decode/blob/main/windows/runner/main.cpp"
click node_windows_host "https://github.com/tutodecode-fr/t2decode/blob/main/windows/runner/flutter_window.h"
click node_linux_entry "https://github.com/tutodecode-fr/t2decode/blob/main/linux/runner/main.cc"
click node_linux_app "https://github.com/tutodecode-fr/t2decode/blob/main/linux/runner/my_application.h"
click node_ios_delegate "https://github.com/tutodecode-fr/t2decode/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_app,node_courses,node_custom_courses toneBlue
class node_simulations,node_terminal,node_toolbox,node_subnet_exercise,node_crypto toneAmber
class node_windows_entry,node_windows_host,node_linux_entry,node_linux_app,node_ios_delegate toneMint
class node_assistant toneRose
class node_learner,node_ollama toneIndigo
```

## Components

### Learning content

- **T2DECODE app**
- **Courses and quizzes**
- **Custom courses**

### Practice and tools

- **Simulations**
- **Linux terminal**
- **Toolbox**
- **Subnet exercise**
- **Cryptography lessons**

### Platform runtime

- [Windows entry point](https://github.com/tutodecode-fr/t2decode/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window host](https://github.com/tutodecode-fr/t2decode/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Linux entry point](https://github.com/tutodecode-fr/t2decode/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [GTK application](https://github.com/tutodecode-fr/t2decode/blob/main/linux/runner/my_application.h): `linux/runner/my_application.h`
- [iOS app delegate](https://github.com/tutodecode-fr/t2decode/blob/main/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`

### Local assistant

- **Course assistant**

### Other components

- **Learner**
- **Ollama service**

## Connections

- Learner → T2DECODE app: opens (evidence: `README.md`)
- T2DECODE app → Toolbox: opens toolbox (evidence: `README.md`)
- Toolbox → Subnet exercise: selects exercise (evidence: `README.md`)
- Learner → Courses and quizzes: studies (evidence: `README.md`)
- Learner → Custom courses: uses courses (evidence: `README.md`)
- Learner → Simulations: practices with (evidence: `README.md`)
- Learner → Linux terminal: practices in (evidence: `README.md`)
- Learner → Cryptography lessons: learns (evidence: `README.md`)
- Learner → Course assistant: asks (evidence: `README.md`)
- Course assistant → Ollama service: queries optionally (evidence: `README.md`)
- Windows entry point → Flutter window host: creates (evidence: `windows/runner/main.cpp`)
- Linux entry point → GTK application: runs (evidence: `linux/runner/main.cc`)
- iOS app delegate → iOS app delegate: registers plugins (evidence: `ios/Runner/AppDelegate.swift`)
