# rifatsekerariot/elifogretmenpublic architecture

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

- Interactive diagram: https://gitdiagram.com/rifatsekerariot/elifogretmenpublic
- Repository: https://github.com/rifatsekerariot/elifogretmenpublic

## Overview

Elif Öğretmen is a Frappe-based homework tutor. A student uploads a page, the application analyzes its questions, persists a homework sheet, then supports stepwise tutoring and tracks progress and study time. The browser app also provides voice interaction, a rendered teaching board, and a 3D teacher. Long-term learning memory and conversation compaction support personalized follow-up. The graph reflects the documented product capabilities; some browser-to-renderer links are unverified because their wiring was not shown in the excerpts.

Main entry points: [`elif_tutor/elif_tutor/api.py`](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/api.py) (Homework API), [`elif_tutor/elif_tutor/public/js/odev_app.js`](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/public/js/odev_app.js) (Homework app), [`elif_tutor/elif_tutor/gemini_service.py`](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/gemini_service.py) (Gemini services), [`elif_tutor/elif_tutor/memory_service.py`](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/memory_service.py) (Learning memory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_student_flow["Student workflow"]
  node_homework_ui["Homework app<br/>[odev_app.js]"]
  node_homework_api["Homework API<br/>[api.py]"]
end

subgraph group_tutoring["Tutoring services"]
  node_gemini["Gemini services<br/>[gemini_service.py]"]
  node_compaction["Context compaction"]
end

subgraph group_learning_state["Learning state"]
  node_memory_service["Learning memory<br/>[memory_service.py]"]
  node_sheets[("Homework sheets<br/>[homework_sheet.py]")]
  node_question_items[("Question records")]
  node_learning_records[("Learning records")]
end

subgraph group_teaching_ui["Teaching interface"]
  node_whiteboard["Interactive whiteboard<br/>[whiteboard.js]"]
  node_avatar["3D teacher<br/>[avatar3d.js]"]
end

node_student(("Student"))
node_gemini_service{{"Google Gemini"}}

node_student -->|"uses"| node_homework_ui
node_homework_ui -->|"calls"| node_homework_api
node_homework_api -->|"analyzes pages"| node_gemini
node_homework_api -->|"compacts context"| node_compaction
node_homework_api -->|"reads and updates"| node_memory_service
node_homework_api -->|"saves sheets"| node_sheets
node_homework_api -->|"matches questions"| node_question_items
node_memory_service -->|"reads and saves"| node_learning_records
node_gemini -->|"requests model"| node_gemini_service
node_homework_ui -.->|"renders board"| node_whiteboard
node_homework_ui -.->|"animates speech"| node_avatar

click node_homework_ui "https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/public/js/odev_app.js"
click node_homework_api "https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/api.py"
click node_gemini "https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/gemini_service.py"
click node_compaction "https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/compaction_service.py"
click node_memory_service "https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/memory_service.py"
click node_sheets "https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/elif_tutor/doctype/homework_sheet/homework_sheet.py"
click node_question_items "https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/elif_tutor/doctype/homework_question_item/homework_question_item.py"
click node_learning_records "https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/elif_tutor/doctype/student_learning_memory/student_learning_memory.py"
click node_whiteboard "https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/public/js/whiteboard.js"
click node_avatar "https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/public/js/avatar3d.js"

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_homework_ui,node_homework_api toneBlue
class node_gemini,node_compaction toneAmber
class node_memory_service,node_sheets,node_question_items,node_learning_records toneMint
class node_whiteboard,node_avatar toneRose
class node_student,node_gemini_service toneIndigo
```

## Components

### Student workflow

- [Homework app](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/public/js/odev_app.js): `elif_tutor/elif_tutor/public/js/odev_app.js`
- [Homework API](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/api.py): `elif_tutor/elif_tutor/api.py`

### Tutoring services

- [Gemini services](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/gemini_service.py): `elif_tutor/elif_tutor/gemini_service.py`
- [Context compaction](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/compaction_service.py): `elif_tutor/elif_tutor/compaction_service.py`

### Learning state

- [Learning memory](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/memory_service.py): `elif_tutor/elif_tutor/memory_service.py`
- [Homework sheets](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/elif_tutor/doctype/homework_sheet/homework_sheet.py): `elif_tutor/elif_tutor/elif_tutor/doctype/homework_sheet/homework_sheet.py`
- [Question records](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/elif_tutor/doctype/homework_question_item/homework_question_item.py): `elif_tutor/elif_tutor/elif_tutor/doctype/homework_question_item/homework_question_item.py`
- [Learning records](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/elif_tutor/doctype/student_learning_memory/student_learning_memory.py): `elif_tutor/elif_tutor/elif_tutor/doctype/student_learning_memory/student_learning_memory.py`

### Teaching interface

- [Interactive whiteboard](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/public/js/whiteboard.js): `elif_tutor/elif_tutor/public/js/whiteboard.js`
- [3D teacher](https://github.com/rifatsekerariot/elifogretmenpublic/blob/main/elif_tutor/elif_tutor/public/js/avatar3d.js): `elif_tutor/elif_tutor/public/js/avatar3d.js`

### Other components

- **Student**
- **Google Gemini**

## Connections

- Student → Homework app: uses (evidence: `README.md`)
- Homework app → Homework API: calls (evidence: `elif_tutor/elif_tutor/public/js/odev_app.js`)
- Homework API → Gemini services: analyzes pages (evidence: `elif_tutor/elif_tutor/api.py`)
- Homework API → Context compaction: compacts context (evidence: `elif_tutor/elif_tutor/api.py`)
- Homework API → Learning memory: reads and updates (evidence: `elif_tutor/elif_tutor/api.py`)
- Homework API → Homework sheets: saves sheets (evidence: `elif_tutor/elif_tutor/api.py`)
- Homework API → Question records: matches questions (evidence: `elif_tutor/elif_tutor/api.py`)
- Learning memory → Learning records: reads and saves (evidence: `elif_tutor/elif_tutor/memory_service.py`)
- Gemini services → Google Gemini: requests model (evidence: `elif_tutor/elif_tutor/gemini_service.py`)
- Homework app → Interactive whiteboard: renders board
- Homework app → 3D teacher: animates speech
