# abanoub-nassif/bob-elhaker-web architecture

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

- Interactive diagram: https://gitdiagram.com/abanoub-nassif/bob-elhaker-web
- Repository: https://github.com/abanoub-nassif/bob-elhaker-web

## Overview

bob elhakr is an Arabic cybersecurity-learning web app. Learners browse command references and lessons, practice commands in a simulated Kali terminal, and complete quizzes and educational paths; progress is kept locally and can sync to an account. The graph preserves the major content domains and the admin and offline capabilities. Source excerpts show the lesson loader, learning-to-lab call, local-first account behavior, and service-worker caching; other connections are omitted where the supplied excerpts do not establish them.

Main entry points: [`acct.js`](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/acct.js) (Account sync), [`js/03-learn.js`](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/03-learn.js) (Learn and quiz UI), [`js/06-edu.js`](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/06-edu.js) (Learning paths), [`api/admin.js`](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/api/admin.js) (Admin API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning experience"]
  node_tool_catalog[("Tool catalog<br/>[01-data.js]")]
  node_learning_ui["Learn and quiz UI<br/>[03-learn.js]"]
  node_lab_ui["Terminal lab<br/>[04-lab.js]"]
  node_education_ui["Learning paths<br/>[06-edu.js]"]
end

subgraph group_content["Security content"]
  node_lesson_content[("Education lessons")]
  node_quiz_content[("Quiz bank<br/>[quiz.js]")]
  node_command_core[("Core commands<br/>[core.js]")]
  node_command_lessons[("Command scenarios<br/>[cmd-w07.js]")]
  node_command_w12[("Command scenarios<br/>[cmd-w12.js]")]
  node_command_w13[("Command scenarios<br/>[cmd-w13.js]")]
  node_command_w17[("Command scenarios<br/>[cmd-w17.js]")]
  node_command_w18[("Command scenarios<br/>[cmd-w18.js]")]
  node_recon_content[("Recon references<br/>[recon.js]")]
  node_network_content[("Network references<br/>[net.js]")]
  node_system_content[("System references<br/>[sys.js]")]
  node_web_content[("Web references<br/>[web.js]")]
  node_exploit_content[("Exploit references<br/>[exploit.js]")]
  node_forensics_content[("Forensics references<br/>[forensics.js]")]
end

subgraph group_accounts["Progress and accounts"]
  node_local_progress[("Local progress<br/>[01-data.js]")]
  node_account_sync["Account sync<br/>[acct.js]"]
end

subgraph group_operations["App operations"]
  node_admin_api["Admin API<br/>[admin.js]"]
  node_offline_cache[("Offline cache<br/>[sw.js]")]
end

node_learner(("Learner"))
node_firebase[("Firebase services")]
node_admin_operator(("Admin operator"))

node_learner -->|"browses lessons"| node_learning_ui
node_learner -->|"opens paths"| node_education_ui
node_learner -->|"enters commands"| node_lab_ui
node_learning_ui -->|"launches practice"| node_lab_ui
node_education_ui -->|"loads lessons"| node_lesson_content
node_learner -->|"records progress"| node_local_progress
node_account_sync -->|"reads progress"| node_local_progress
node_account_sync -->|"syncs account"| node_firebase
node_admin_operator -->|"manages users"| node_admin_api
node_admin_api -->|"reads and writes"| node_firebase
node_learner -->|"uses cached app"| node_offline_cache

click node_tool_catalog "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/01-data.js"
click node_learning_ui "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/03-learn.js"
click node_lab_ui "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/04-lab.js"
click node_education_ui "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/06-edu.js"
click node_lesson_content "https://github.com/abanoub-nassif/bob-elhaker-web/tree/main/tools/tools"
click node_quiz_content "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/quiz.js"
click node_command_core "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/core.js"
click node_command_lessons "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/cmd-w07.js"
click node_command_w12 "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/cmd-w12.js"
click node_command_w13 "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/cmd-w13.js"
click node_command_w17 "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/cmd-w17.js"
click node_command_w18 "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/cmd-w18.js"
click node_recon_content "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/recon.js"
click node_network_content "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/net.js"
click node_system_content "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/sys.js"
click node_web_content "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/web.js"
click node_exploit_content "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/exploit.js"
click node_forensics_content "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/forensics.js"
click node_local_progress "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/01-data.js"
click node_account_sync "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/acct.js"
click node_admin_api "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/api/admin.js"
click node_offline_cache "https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/sw.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_tool_catalog,node_learning_ui,node_lab_ui,node_education_ui toneBlue
class node_lesson_content,node_quiz_content,node_command_core,node_command_lessons,node_command_w12,node_command_w13,node_command_w17,node_command_w18,node_recon_content,node_network_content,node_system_content,node_web_content,node_exploit_content,node_forensics_content,node_firebase toneAmber
class node_local_progress,node_account_sync toneMint
class node_admin_api,node_offline_cache toneRose
class node_learner,node_admin_operator toneIndigo
```

## Components

### Learning experience

- [Tool catalog](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/01-data.js): `js/01-data.js`
- [Learn and quiz UI](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/03-learn.js): `js/03-learn.js`
- [Terminal lab](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/04-lab.js): `js/04-lab.js`
- [Learning paths](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/06-edu.js): `js/06-edu.js`

### Security content

- [Education lessons](https://github.com/abanoub-nassif/bob-elhaker-web/tree/main/tools/tools): `tools/tools`
- [Quiz bank](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/quiz.js): `tools/tools/quiz.js`
- [Core commands](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/core.js): `tools/tools/core.js`
- [Command scenarios](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/cmd-w07.js): `tools/tools/cmd-w07.js`
- [Command scenarios](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/cmd-w12.js): `tools/tools/cmd-w12.js`
- [Command scenarios](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/cmd-w13.js): `tools/tools/cmd-w13.js`
- [Command scenarios](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/cmd-w17.js): `tools/tools/cmd-w17.js`
- [Command scenarios](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/cmd-w18.js): `tools/tools/cmd-w18.js`
- [Recon references](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/recon.js): `tools/tools/recon.js`
- [Network references](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/net.js): `tools/tools/net.js`
- [System references](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/sys.js): `tools/tools/sys.js`
- [Web references](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/web.js): `tools/tools/web.js`
- [Exploit references](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/exploit.js): `tools/tools/exploit.js`
- [Forensics references](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/tools/tools/forensics.js): `tools/tools/forensics.js`

### Progress and accounts

- [Local progress](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/js/01-data.js): `js/01-data.js`
- [Account sync](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/acct.js): `acct.js`

### App operations

- [Admin API](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/api/admin.js): `api/admin.js`
- [Offline cache](https://github.com/abanoub-nassif/bob-elhaker-web/blob/main/sw.js): `sw.js`

### Other components

- **Learner**
- **Firebase services**
- **Admin operator**

## Connections

- Learner → Learn and quiz UI: browses lessons (evidence: `js/03-learn.js`)
- Learner → Learning paths: opens paths (evidence: `js/06-edu.js`)
- Learner → Terminal lab: enters commands (evidence: `js/04-lab.js`)
- Learn and quiz UI → Terminal lab: launches practice (evidence: `js/03-learn.js`)
- Learning paths → Education lessons: loads lessons (evidence: `js/06-edu.js`)
- Learner → Local progress: records progress (evidence: `js/01-data.js`)
- Account sync → Local progress: reads progress (evidence: `acct.js`)
- Account sync → Firebase services: syncs account (evidence: `acct.js`)
- Admin operator → Admin API: manages users (evidence: `api/admin.js`)
- Admin API → Firebase services: reads and writes (evidence: `api/admin.js`)
- Learner → Offline cache: uses cached app (evidence: `sw.js`)
