# hulkmode85/schoolproai-app architecture

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

- Interactive diagram: https://gitdiagram.com/hulkmode85/schoolproai-app
- Repository: https://github.com/hulkmode85/schoolproai-app

## Overview

The repository contains two largely separate applications: an AI-assisted education web app and a trading-bot framework. The education app’s principal workflow is a learner or educator submitting a tool request, which the Flask app turns into an AI-generated result and renders in a page. The trading branch routes opportunities and provides dynamically loaded strategy and risk modules, plus data collection. No README is present, and sampled code does not establish runtime links between these branches; the trading module inventory is therefore shown at subsystem level where individual wiring is unverified.

Main entry points: [`app.py`](https://github.com/hulkmode85/schoolproai-app/blob/main/app.py) (Education app), [`module_loader.py`](https://github.com/hulkmode85/schoolproai-app/blob/main/module_loader.py) (Module loader), [`data_pipeline.py`](https://github.com/hulkmode85/schoolproai-app/blob/main/data_pipeline.py) (Trading data pipeline), [`templates`](https://github.com/hulkmode85/schoolproai-app/tree/main/templates) (Education pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_education["AI Education"]
  node_education_app["Education app<br/>[app.py]"]
  node_education_pages["Education pages"]
end

subgraph group_trading["Trading Runtime"]
  node_opportunity_router["Opportunity router"]
  node_module_hub["Module loader<br/>[module_loader.py]"]
  node_module_fleet["Strategy and risk modules"]
end

subgraph group_controls["Trading Controls"]
  node_dynamic_edge["Dynamic edge<br/>[dynamic_edge.py]"]
  node_trade_validator["Pre-trade validator"]
  node_pod_manager["Pod capital manager"]
end

subgraph group_operations["Trading Operations"]
  node_trade_data["Trading data pipeline<br/>[data_pipeline.py]"]
  node_warehouse[("Data warehouse")]
end

node_user(("Learner or educator"))
node_ai_service{{"AI service"}}
node_bot_caller(("Bot caller"))

node_user -->|"submits request"| node_education_app
node_education_app -->|"requests content"| node_ai_service
node_education_app -->|"renders pages"| node_education_pages
node_bot_caller -->|"submits opportunity"| node_opportunity_router
node_module_hub -->|"discovers and loads"| node_module_fleet
node_trade_data -.->|"writes records"| node_warehouse

click node_education_app "https://github.com/hulkmode85/schoolproai-app/blob/main/app.py"
click node_education_pages "https://github.com/hulkmode85/schoolproai-app/tree/main/templates"
click node_opportunity_router "https://github.com/hulkmode85/schoolproai-app/blob/main/opportunity_handler.py"
click node_module_hub "https://github.com/hulkmode85/schoolproai-app/blob/main/module_loader.py"
click node_module_fleet "https://github.com/hulkmode85/schoolproai-app/tree/main/modules"
click node_dynamic_edge "https://github.com/hulkmode85/schoolproai-app/blob/main/dynamic_edge.py"
click node_trade_validator "https://github.com/hulkmode85/schoolproai-app/blob/main/pre_trade_validator.py"
click node_pod_manager "https://github.com/hulkmode85/schoolproai-app/blob/main/modules/pod_capital_manager.py"
click node_trade_data "https://github.com/hulkmode85/schoolproai-app/blob/main/data_pipeline.py"
click node_warehouse "https://github.com/hulkmode85/schoolproai-app/tree/main/data-warehouse"

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_education_app,node_education_pages toneBlue
class node_opportunity_router,node_module_hub,node_module_fleet toneAmber
class node_dynamic_edge,node_trade_validator,node_pod_manager toneMint
class node_trade_data,node_warehouse toneRose
class node_user,node_ai_service,node_bot_caller toneIndigo
```

## Components

### AI Education

- [Education app](https://github.com/hulkmode85/schoolproai-app/blob/main/app.py): `app.py`
- [Education pages](https://github.com/hulkmode85/schoolproai-app/tree/main/templates): `templates`

### Trading Runtime

- [Opportunity router](https://github.com/hulkmode85/schoolproai-app/blob/main/opportunity_handler.py): `opportunity_handler.py`
- [Module loader](https://github.com/hulkmode85/schoolproai-app/blob/main/module_loader.py): `module_loader.py`
- [Strategy and risk modules](https://github.com/hulkmode85/schoolproai-app/tree/main/modules): `modules`

### Trading Controls

- [Dynamic edge](https://github.com/hulkmode85/schoolproai-app/blob/main/dynamic_edge.py): `dynamic_edge.py`
- [Pre-trade validator](https://github.com/hulkmode85/schoolproai-app/blob/main/pre_trade_validator.py): `pre_trade_validator.py`
- [Pod capital manager](https://github.com/hulkmode85/schoolproai-app/blob/main/modules/pod_capital_manager.py): `modules/pod_capital_manager.py`

### Trading Operations

- [Trading data pipeline](https://github.com/hulkmode85/schoolproai-app/blob/main/data_pipeline.py): `data_pipeline.py`
- [Data warehouse](https://github.com/hulkmode85/schoolproai-app/tree/main/data-warehouse): `data-warehouse`

### Other components

- **Learner or educator**
- **AI service**
- **Bot caller**

## Connections

- Learner or educator → Education app: submits request (evidence: `app.py`)
- Education app → AI service: requests content (evidence: `app.py`)
- Education app → Education pages: renders pages (evidence: `app.py`)
- Bot caller → Opportunity router: submits opportunity (evidence: `opportunity_handler.py`)
- Module loader → Strategy and risk modules: discovers and loads (evidence: `module_loader.py`)
- Trading data pipeline → Data warehouse: writes records
