# hoangkhuong55551/self architecture

> Architecture diagram of the GitHub repository hoangkhuong55551/self, 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/hoangkhuong55551/self
- Repository: https://github.com/hoangkhuong55551/self

## Overview

Life OS is a Django personal-management website for students. The user-facing workflow is to use its overview and domain modules to record activities, manage study and personal data, and review aggregated progress and automation. The graph preserves the README’s major finance, productivity, academic, library, automation, TOEIC, and cross-cutting capabilities. Several view and service implementations are unsampled, so documented links use the README; source-level links are limited to relationships shown in the excerpts or SOURCE INDEX.

Main entry points: [`automation/engine.py`](https://github.com/hoangkhuong55551/self/blob/main/automation/engine.py) (Rule execution), [`finance/models.py`](https://github.com/hoangkhuong55551/self/blob/main/finance/models.py) (Finance records), [`productivity/models.py`](https://github.com/hoangkhuong55551/self/blob/main/productivity/models.py) (Goals and tasks), [`core/services.py`](https://github.com/hoangkhuong55551/self/blob/main/core/services.py) (Weekly summary)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_overview["Overview and core"]
  node_overview["Today and dashboard<br/>[views.py]"]
  node_calendar["Calendar and reminders<br/>[calendar.py]"]
  node_quickadd["Quick add and search<br/>[quick_add.py]"]
  node_coredata[("Profile and XP<br/>[models.py]")]
  node_achievements["Achievements<br/>[achievements.py]"]
  node_weekly["Weekly summary<br/>[services.py]"]
  node_notifications["Notifications<br/>[notifications.py]"]
  node_push["Web push<br/>[push.py]"]
end

subgraph group_money["Finance and health"]
  node_finance[("Finance records<br/>[models.py]")]
  node_financeops["Finance operations<br/>[services.py]"]
  node_health["Health tracking<br/>[body.py]"]
end

subgraph group_planning["Planning and study"]
  node_productivity[("Goals and tasks<br/>[models.py]")]
  node_study[("Academic records<br/>[models.py]")]
  node_studyops["Study services<br/>[services.py]"]
  node_exams["Exam scheduling<br/>[services_exam.py]"]
end

subgraph group_learning["Learning and library"]
  node_library[("Media library<br/>[models.py]")]
  node_toeic["TOEIC practice<br/>[content.py]"]
  node_toeicops["TOEIC progress<br/>[services.py]"]
end

subgraph group_automation["Automation"]
  node_autoquests["Daily quests and insights<br/>[quests.py]"]
  node_autoevents["Activity events<br/>[events.py]"]
  node_automodels[("Rules and runs<br/>[models.py]")]
  node_ruleengine["Rule execution<br/>[engine.py]"]
  node_autotoday["Today recommendations<br/>[today.py]"]
end

node_user(("Student"))

node_user -->|"uses"| node_overview
node_overview -->|"shows calendar"| node_calendar
node_overview -->|"reviews week"| node_weekly
node_overview -->|"adds quickly"| node_quickadd
node_quickadd -->|"creates transactions"| node_finance
node_quickadd -->|"creates tasks"| node_productivity
node_weekly -->|"summarizes"| node_finance
node_weekly -->|"summarizes"| node_productivity
node_weekly -->|"summarizes"| node_study
node_weekly -->|"summarizes"| node_library
node_achievements -->|"awards XP"| node_coredata
node_notifications -->|"sends push"| node_push
node_financeops -->|"records transactions"| node_finance
node_financeops -->|"checks budgets"| node_notifications
node_health -->|"tracks health"| node_finance
node_studyops -->|"uses academic data"| node_study
node_exams -->|"reads courses"| node_study
node_exams -->|"creates review tasks"| node_productivity
node_toeicops -->|"uses lesson content"| node_toeic
node_autoevents -->|"observes activity"| node_productivity
node_ruleengine -->|"checks events"| node_autoevents
node_ruleengine -->|"records rule runs"| node_automodels
node_ruleengine -->|"deposits savings"| node_finance
node_ruleengine -->|"creates notes"| node_study
node_ruleengine -->|"creates tasks"| node_productivity
node_ruleengine -->|"sends rule alerts"| node_push
node_autotoday -->|"supports daily tasks"| node_autoquests
node_user -->|"manages money"| node_finance
node_user -->|"plans work"| node_productivity
node_user -->|"manages study"| node_study
node_user -->|"tracks media"| node_library
node_user -.->|"practices TOEIC"| node_toeic
node_autotoday -.->|"uses activity signals"| node_autoevents

click node_overview "https://github.com/hoangkhuong55551/self/blob/main/core/views.py"
click node_calendar "https://github.com/hoangkhuong55551/self/blob/main/core/calendar.py"
click node_quickadd "https://github.com/hoangkhuong55551/self/blob/main/core/quick_add.py"
click node_coredata "https://github.com/hoangkhuong55551/self/blob/main/core/models.py"
click node_achievements "https://github.com/hoangkhuong55551/self/blob/main/core/achievements.py"
click node_weekly "https://github.com/hoangkhuong55551/self/blob/main/core/services.py"
click node_notifications "https://github.com/hoangkhuong55551/self/blob/main/core/notifications.py"
click node_push "https://github.com/hoangkhuong55551/self/blob/main/core/push.py"
click node_finance "https://github.com/hoangkhuong55551/self/blob/main/finance/models.py"
click node_financeops "https://github.com/hoangkhuong55551/self/blob/main/finance/services.py"
click node_health "https://github.com/hoangkhuong55551/self/blob/main/finance/body.py"
click node_productivity "https://github.com/hoangkhuong55551/self/blob/main/productivity/models.py"
click node_study "https://github.com/hoangkhuong55551/self/blob/main/academic/models.py"
click node_studyops "https://github.com/hoangkhuong55551/self/blob/main/academic/services.py"
click node_exams "https://github.com/hoangkhuong55551/self/blob/main/academic/services_exam.py"
click node_library "https://github.com/hoangkhuong55551/self/blob/main/library/models.py"
click node_toeic "https://github.com/hoangkhuong55551/self/blob/main/toeic/content.py"
click node_toeicops "https://github.com/hoangkhuong55551/self/blob/main/toeic/services.py"
click node_autoquests "https://github.com/hoangkhuong55551/self/blob/main/automation/quests.py"
click node_autoevents "https://github.com/hoangkhuong55551/self/blob/main/automation/events.py"
click node_automodels "https://github.com/hoangkhuong55551/self/blob/main/automation/models.py"
click node_ruleengine "https://github.com/hoangkhuong55551/self/blob/main/automation/engine.py"
click node_autotoday "https://github.com/hoangkhuong55551/self/blob/main/automation/today.py"

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_overview,node_calendar,node_quickadd,node_coredata,node_achievements,node_weekly,node_notifications,node_push toneBlue
class node_finance,node_financeops,node_health toneAmber
class node_productivity,node_study,node_studyops,node_exams toneMint
class node_library,node_toeic,node_toeicops toneRose
class node_autoquests,node_autoevents,node_automodels,node_ruleengine,node_autotoday,node_user toneIndigo
```

## Components

### Overview and core

- [Today and dashboard](https://github.com/hoangkhuong55551/self/blob/main/core/views.py): `core/views.py`
- [Calendar and reminders](https://github.com/hoangkhuong55551/self/blob/main/core/calendar.py): `core/calendar.py`
- [Quick add and search](https://github.com/hoangkhuong55551/self/blob/main/core/quick_add.py): `core/quick_add.py`
- [Profile and XP](https://github.com/hoangkhuong55551/self/blob/main/core/models.py): `core/models.py`
- [Achievements](https://github.com/hoangkhuong55551/self/blob/main/core/achievements.py): `core/achievements.py`
- [Weekly summary](https://github.com/hoangkhuong55551/self/blob/main/core/services.py): `core/services.py`
- [Notifications](https://github.com/hoangkhuong55551/self/blob/main/core/notifications.py): `core/notifications.py`
- [Web push](https://github.com/hoangkhuong55551/self/blob/main/core/push.py): `core/push.py`

### Finance and health

- [Finance records](https://github.com/hoangkhuong55551/self/blob/main/finance/models.py): `finance/models.py`
- [Finance operations](https://github.com/hoangkhuong55551/self/blob/main/finance/services.py): `finance/services.py`
- [Health tracking](https://github.com/hoangkhuong55551/self/blob/main/finance/body.py): `finance/body.py`

### Planning and study

- [Goals and tasks](https://github.com/hoangkhuong55551/self/blob/main/productivity/models.py): `productivity/models.py`
- [Academic records](https://github.com/hoangkhuong55551/self/blob/main/academic/models.py): `academic/models.py`
- [Study services](https://github.com/hoangkhuong55551/self/blob/main/academic/services.py): `academic/services.py`
- [Exam scheduling](https://github.com/hoangkhuong55551/self/blob/main/academic/services_exam.py): `academic/services_exam.py`

### Learning and library

- [Media library](https://github.com/hoangkhuong55551/self/blob/main/library/models.py): `library/models.py`
- [TOEIC practice](https://github.com/hoangkhuong55551/self/blob/main/toeic/content.py): `toeic/content.py`
- [TOEIC progress](https://github.com/hoangkhuong55551/self/blob/main/toeic/services.py): `toeic/services.py`

### Automation

- [Daily quests and insights](https://github.com/hoangkhuong55551/self/blob/main/automation/quests.py): `automation/quests.py`
- [Activity events](https://github.com/hoangkhuong55551/self/blob/main/automation/events.py): `automation/events.py`
- [Rules and runs](https://github.com/hoangkhuong55551/self/blob/main/automation/models.py): `automation/models.py`
- [Rule execution](https://github.com/hoangkhuong55551/self/blob/main/automation/engine.py): `automation/engine.py`
- [Today recommendations](https://github.com/hoangkhuong55551/self/blob/main/automation/today.py): `automation/today.py`

### Other components

- **Student**

## Connections

- Student → Today and dashboard: uses
- Today and dashboard → Calendar and reminders: shows calendar
- Today and dashboard → Weekly summary: reviews week
- Today and dashboard → Quick add and search: adds quickly
- Quick add and search → Finance records: creates transactions (evidence: `core/quick_add.py`)
- Quick add and search → Goals and tasks: creates tasks (evidence: `core/quick_add.py`)
- Weekly summary → Finance records: summarizes (evidence: `core/services.py`)
- Weekly summary → Goals and tasks: summarizes (evidence: `core/services.py`)
- Weekly summary → Academic records: summarizes (evidence: `core/services.py`)
- Weekly summary → Media library: summarizes (evidence: `core/services.py`)
- Achievements → Profile and XP: awards XP (evidence: `core/achievements.py`)
- Notifications → Web push: sends push (evidence: `core/notifications.py`)
- Finance operations → Finance records: records transactions (evidence: `finance/services.py`)
- Finance operations → Notifications: checks budgets (evidence: `finance/services.py`)
- Health tracking → Finance records: tracks health
- Study services → Academic records: uses academic data (evidence: `academic/services.py`)
- Exam scheduling → Academic records: reads courses (evidence: `academic/services_exam.py`)
- Exam scheduling → Goals and tasks: creates review tasks (evidence: `academic/services_exam.py`)
- TOEIC progress → TOEIC practice: uses lesson content (evidence: `toeic/services.py`)
- Activity events → Goals and tasks: observes activity (evidence: `automation/events.py`)
- Rule execution → Activity events: checks events (evidence: `automation/engine.py`)
- Rule execution → Rules and runs: records rule runs (evidence: `automation/engine.py`)
- Rule execution → Finance records: deposits savings (evidence: `automation/engine.py`)
- Rule execution → Academic records: creates notes (evidence: `automation/engine.py`)
- Rule execution → Goals and tasks: creates tasks (evidence: `automation/engine.py`)
- Rule execution → Web push: sends rule alerts (evidence: `automation/engine.py`)
- Today recommendations → Daily quests and insights: supports daily tasks
- Student → Finance records: manages money
- Student → Goals and tasks: plans work
- Student → Academic records: manages study
- Student → Media library: tracks media
- Student → TOEIC practice: practices TOEIC
- Today recommendations → Activity events: uses activity signals
