# romhackman/ecole-direct-plus-customer architecture

> Architecture diagram of the GitHub repository romhackman/ecole-direct-plus-customer, 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/romhackman/ecole-direct-plus-customer
- Repository: https://github.com/romhackman/ecole-direct-plus-customer

## Overview

École Directe Plus — Customizer is a browser extension that changes profile details only in the local page. The main workflow is: the content script detects the site's options menu, adds a Customizer entry, and opens an editor where users preview or save name, visibility, and image changes. Saved settings remain in browser localStorage and are reapplied when the profile is detected; reset removes them and reloads the page. The README documents the extension configuration and styling, but source excerpts are partial, so internal calls beyond those shown are not inferred.

Main entry points: [`content.js`](https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js) (Customizer popup), [`manifest.json`](https://github.com/romhackman/ecole-direct-plus-customer/blob/main/manifest.json) (Extension configuration), [`style.css`](https://github.com/romhackman/ecole-direct-plus-customer/blob/main/style.css) (Popup styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_extension["Extension runtime"]
  node_manifest["Extension configuration<br/>[manifest.json]"]
  node_content_script["Content script<br/>[content.js]"]
  node_popup_styles["Popup styling<br/>[style.css]"]
end

subgraph group_customization["Profile customization"]
  node_menu_entry["Menu entry<br/>[content.js]"]
  node_editor_popup["Customizer popup<br/>[content.js]"]
  node_live_preview["Live preview<br/>[content.js]"]
  node_profile_changes["Displayed profile changes<br/>[content.js]"]
  node_local_settings[("Saved settings<br/>[content.js]")]
end

node_user(("User"))
node_school_site["École Directe Plus"]

node_manifest -->|"loads at idle"| node_content_script
node_manifest -->|"loads at idle"| node_popup_styles
node_content_script -->|"adds to menu"| node_menu_entry
node_school_site -->|"provides profile DOM"| node_content_script
node_user -->|"selects"| node_menu_entry
node_menu_entry -->|"opens"| node_editor_popup
node_editor_popup -->|"updates"| node_live_preview
node_editor_popup -->|"saves settings"| node_local_settings
node_content_script -->|"loads settings"| node_local_settings
node_content_script -->|"applies settings"| node_profile_changes
node_local_settings -->|"provides saved values"| node_profile_changes
node_editor_popup -->|"clears on reset"| node_local_settings
node_editor_popup -->|"reloads page on reset"| node_school_site
node_popup_styles -->|"styles"| node_editor_popup

click node_manifest "https://github.com/romhackman/ecole-direct-plus-customer/blob/main/manifest.json"
click node_content_script "https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js"
click node_menu_entry "https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js"
click node_editor_popup "https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js"
click node_live_preview "https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js"
click node_profile_changes "https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js"
click node_local_settings "https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js"
click node_popup_styles "https://github.com/romhackman/ecole-direct-plus-customer/blob/main/style.css"

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_manifest,node_content_script,node_popup_styles,node_user toneBlue
class node_menu_entry,node_editor_popup,node_live_preview,node_profile_changes,node_local_settings toneAmber
class node_school_site toneIndigo
```

## Components

### Extension runtime

- [Extension configuration](https://github.com/romhackman/ecole-direct-plus-customer/blob/main/manifest.json): `manifest.json`
- [Content script](https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js): `content.js`
- [Popup styling](https://github.com/romhackman/ecole-direct-plus-customer/blob/main/style.css): `style.css`

### Profile customization

- [Menu entry](https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js): `content.js`
- [Customizer popup](https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js): `content.js`
- [Live preview](https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js): `content.js`
- [Displayed profile changes](https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js): `content.js`
- [Saved settings](https://github.com/romhackman/ecole-direct-plus-customer/blob/main/content.js): `content.js`

### Other components

- **User**
- **École Directe Plus**

## Connections

- Extension configuration → Content script: loads at idle (evidence: `README.md`)
- Extension configuration → Popup styling: loads at idle (evidence: `README.md`)
- Content script → Menu entry: adds to menu (evidence: `README.md`)
- École Directe Plus → Content script: provides profile DOM (evidence: `content.js`)
- User → Menu entry: selects (evidence: `README.md`)
- Menu entry → Customizer popup: opens (evidence: `content.js`)
- Customizer popup → Live preview: updates (evidence: `content.js`)
- Customizer popup → Saved settings: saves settings (evidence: `README.md`)
- Content script → Saved settings: loads settings (evidence: `content.js`)
- Content script → Displayed profile changes: applies settings (evidence: `content.js`)
- Saved settings → Displayed profile changes: provides saved values (evidence: `README.md`)
- Customizer popup → Saved settings: clears on reset (evidence: `README.md`)
- Customizer popup → École Directe Plus: reloads page on reset (evidence: `README.md`)
- Popup styling → Customizer popup: styles (evidence: `README.md`)
