# amirasenni21/eduhub-algeria architecture

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

- Interactive diagram: https://gitdiagram.com/amirasenni21/eduhub-algeria
- Repository: https://github.com/amirasenni21/eduhub-algeria

## Overview

This appears to be a browser-based school directory and information manager. A visitor searches by Algerian wilaya and district, optionally filtering by subject and teacher, then reaches search results and school details. School representatives can enter school and contact information and manage level-specific timetable data. The sampled scripts show browser localStorage as the persistence layer. Several HTML pages and scripts were not sampled, so connections to account creation and other pages are shown only where supported or left unasserted.

Main entry points: [`script.js`](https://github.com/amirasenni21/eduhub-algeria/blob/main/script.js) (Timetable editor), [`script1.js`](https://github.com/amirasenni21/eduhub-algeria/blob/main/script1.js) (Search filters), [`Searching.html`](https://github.com/amirasenni21/eduhub-algeria/blob/main/Searching.html) (School search), [`Searching Results.html`](https://github.com/amirasenni21/eduhub-algeria/blob/main/Searching%20Results.html) (Search results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["School discovery"]
  node_search["School search<br/>[Searching.html]"]
  node_searchlogic["Search filters<br/>[script1.js]"]
  node_results["Search results"]
  node_results1["Alternate results"]
  node_details["School details<br/>[Learn More.html]"]
  node_home["Home page<br/>[index.html]"]
  node_home2["Alternate home<br/>[index2.html]"]
  node_error["Error page<br/>[404 error.html]"]
end

subgraph group_management["School management"]
  node_account["Account creation"]
  node_director["School profile<br/>[Director.html]"]
  node_profilelogic["Profile form logic<br/>[script2.js]"]
  node_primary["Primary timetable<br/>[Primair.html]"]
  node_middle["Middle timetable<br/>[cem.html]"]
  node_secondary["Secondary timetable<br/>[lycee.html]"]
  node_timetablelogic["Timetable editor<br/>[script.js]"]
  node_detailview["Details renderer<br/>[script4.js]"]
  node_schoolinfo["School information"]
  node_final["Final page<br/>[final Page.html]"]
end

subgraph group_persistence["Browser persistence"]
  node_storage[("Local storage")]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens"| node_search
node_search -.->|"uses filters"| node_searchlogic
node_searchlogic -->|"links to"| node_results
node_searchlogic -->|"stores criteria"| node_storage
node_profilelogic -->|"stores profile"| node_storage
node_timetablelogic -->|"saves tables"| node_storage
node_detailview -->|"reads profile"| node_storage
node_account -.->|"continues to"| node_director
node_director -.->|"uses form logic"| node_profilelogic
node_primary -.->|"uses editor"| node_timetablelogic
node_middle -.->|"uses editor"| node_timetablelogic
node_secondary -.->|"uses editor"| node_timetablelogic
node_details -.->|"renders details"| node_detailview
node_results -.->|"opens details"| node_details

click node_search "https://github.com/amirasenni21/eduhub-algeria/blob/main/Searching.html"
click node_searchlogic "https://github.com/amirasenni21/eduhub-algeria/blob/main/script1.js"
click node_results "https://github.com/amirasenni21/eduhub-algeria/blob/main/Searching%20Results.html"
click node_results1 "https://github.com/amirasenni21/eduhub-algeria/blob/main/Searching%20Results1.html"
click node_details "https://github.com/amirasenni21/eduhub-algeria/blob/main/Learn%20More.html"
click node_account "https://github.com/amirasenni21/eduhub-algeria/blob/main/Create%20Account.html"
click node_director "https://github.com/amirasenni21/eduhub-algeria/blob/main/Director.html"
click node_profilelogic "https://github.com/amirasenni21/eduhub-algeria/blob/main/script2.js"
click node_primary "https://github.com/amirasenni21/eduhub-algeria/blob/main/Primair.html"
click node_middle "https://github.com/amirasenni21/eduhub-algeria/blob/main/cem.html"
click node_secondary "https://github.com/amirasenni21/eduhub-algeria/blob/main/lycee.html"
click node_timetablelogic "https://github.com/amirasenni21/eduhub-algeria/blob/main/script.js"
click node_detailview "https://github.com/amirasenni21/eduhub-algeria/blob/main/script4.js"
click node_home "https://github.com/amirasenni21/eduhub-algeria/blob/main/index.html"
click node_home2 "https://github.com/amirasenni21/eduhub-algeria/blob/main/index2.html"
click node_schoolinfo "https://github.com/amirasenni21/eduhub-algeria/blob/main/School%20Informations.html"
click node_final "https://github.com/amirasenni21/eduhub-algeria/blob/main/final%20Page.html"
click node_error "https://github.com/amirasenni21/eduhub-algeria/blob/main/404%20error.html"

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_search,node_searchlogic,node_results,node_results1,node_details,node_home,node_home2,node_error toneBlue
class node_account,node_director,node_profilelogic,node_primary,node_middle,node_secondary,node_timetablelogic,node_detailview,node_schoolinfo,node_final toneAmber
class node_storage toneMint
class node_visitor toneIndigo
```

## Components

### School discovery

- [School search](https://github.com/amirasenni21/eduhub-algeria/blob/main/Searching.html): `Searching.html`
- [Search filters](https://github.com/amirasenni21/eduhub-algeria/blob/main/script1.js): `script1.js`
- [Search results](https://github.com/amirasenni21/eduhub-algeria/blob/main/Searching%20Results.html): `Searching Results.html`
- [Alternate results](https://github.com/amirasenni21/eduhub-algeria/blob/main/Searching%20Results1.html): `Searching Results1.html`
- [School details](https://github.com/amirasenni21/eduhub-algeria/blob/main/Learn%20More.html): `Learn More.html`
- [Home page](https://github.com/amirasenni21/eduhub-algeria/blob/main/index.html): `index.html`
- [Alternate home](https://github.com/amirasenni21/eduhub-algeria/blob/main/index2.html): `index2.html`
- [Error page](https://github.com/amirasenni21/eduhub-algeria/blob/main/404%20error.html): `404 error.html`

### School management

- [Account creation](https://github.com/amirasenni21/eduhub-algeria/blob/main/Create%20Account.html): `Create Account.html`
- [School profile](https://github.com/amirasenni21/eduhub-algeria/blob/main/Director.html): `Director.html`
- [Profile form logic](https://github.com/amirasenni21/eduhub-algeria/blob/main/script2.js): `script2.js`
- [Primary timetable](https://github.com/amirasenni21/eduhub-algeria/blob/main/Primair.html): `Primair.html`
- [Middle timetable](https://github.com/amirasenni21/eduhub-algeria/blob/main/cem.html): `cem.html`
- [Secondary timetable](https://github.com/amirasenni21/eduhub-algeria/blob/main/lycee.html): `lycee.html`
- [Timetable editor](https://github.com/amirasenni21/eduhub-algeria/blob/main/script.js): `script.js`
- [Details renderer](https://github.com/amirasenni21/eduhub-algeria/blob/main/script4.js): `script4.js`
- [School information](https://github.com/amirasenni21/eduhub-algeria/blob/main/School%20Informations.html): `School Informations.html`
- [Final page](https://github.com/amirasenni21/eduhub-algeria/blob/main/final%20Page.html): `final Page.html`

### Browser persistence

- **Local storage**

### Other components

- **Visitor**

## Connections

- Visitor → School search: opens
- School search → Search filters: uses filters
- Search filters → Search results: links to (evidence: `script1.js`)
- Search filters → Local storage: stores criteria (evidence: `script1.js`)
- Profile form logic → Local storage: stores profile (evidence: `script2.js`)
- Timetable editor → Local storage: saves tables (evidence: `script.js`)
- Details renderer → Local storage: reads profile (evidence: `script4.js`)
- Account creation → School profile: continues to
- School profile → Profile form logic: uses form logic
- Primary timetable → Timetable editor: uses editor
- Middle timetable → Timetable editor: uses editor
- Secondary timetable → Timetable editor: uses editor
- School details → Details renderer: renders details
- Search results → School details: opens details
