# 0ximei/lms-griffithict-2026 architecture

> Architecture diagram of the GitHub repository 0ximei/lms-griffithict-2026, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/0ximei/lms-griffithict-2026
- Repository: https://github.com/0ximei/lms-griffithict-2026

## Overview

#### Purpose and Entry Points
This repository contains a browser extension, `reel-fullscreen-extension`, intended to alter fullscreen behavior for reel/video content. The root README provides no product detail; the extension’s own manifest is the authoritative runtime entry point: `reel-fullscreen-extension/manifest.json`.

#### Extension Runtime Composition
The extension is split across browser-managed background logic, page-injected content logic, and a popup UI:
- Background runtime: `reel-fullscreen-extension/background.js`
- Content-script runtime: `reel-fullscreen-extension/content.js`
- User-facing popup: `reel-fullscreen-extension/popup.html`, `reel-fullscreen-extension/popup.js`

The browser loads and connects these components according to declarations in `reel-fullscreen-extension/manifest.json`.

#### Page Integration and Fullscreen Control
`reel-fullscreen-extension/content.js` is the primary boundary with the target webpage. It can inspect or manipulate page DOM/video elements while remaining in the extension’s isolated content-script environment. Fullscreen-oriented presentation styling is separated into `reel-fullscreen-extension/overlay.css`, indicating an injected or extension-owned overlay layer rather than a standalone application UI.

#### Background Coordination
`reel-fullscreen-extension/background.js` is the long-lived extension-side coordinator. It is the appropriate control boundary for browser APIs, extension lifecycle events, cross-tab concerns, and message handling from the popup or content script. Communication between isolated content scripts and privileged background logic is expected to use extension messaging configured by `reel-fullscreen-extension/manifest.json`.

#### Popup Interaction Flow
The popup is a compact extension UI rendered from `reel-fullscreen-extension/popup.html` and controlled by `reel-fullscreen-extension/popup.js`. Its likely flow is: user opens the browser action popup, selects or triggers fullscreen-related behavior, then popup code communicates with the active tab and/or background runtime. It should not directly depend on target-page DOM access; that belongs in `content.js`.

#### URL/Video Target Normalization
The presence of `reel-fullscreen-extension/test-normalize-video-url.js` identifies video URL normalization as an important behavioral seam. URL interpretation likely determines which reel/video resource the content script or background logic acts upon. The implementation under test is expected to reside in one of the extension runtime files, primarily `reel-fullscreen-extension/content.js` or `reel-fullscreen-extension/background.js`.

#### Infrastructure and External Boundaries
This is a client-side browser-extension architecture, with no server, database, deployment infrastructure, or external API integration visible in the supplied tree. Material platform dependencies are the browser extension APIs, target-page DOM/media/fullscreen APIs, and manifest permissions/configuration in `reel-fullscreen-extension/manifest.json`.

Main entry points: [`reel-fullscreen-extension/content.js`](https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/content.js) (Content Script), [`reel-fullscreen-extension/popup.js`](https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/popup.js) (Popup Controller), [`reel-fullscreen-extension/background.js`](https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/background.js) (Background Coordinator), [`reel-fullscreen-extension/manifest.json`](https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/manifest.json) (Extension Manifest)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_extension["Extension Package"]
  node_manifest["Extension Manifest<br/>runtime declaration<br/>[manifest.json]"]
  node_background["Background Coordinator<br/>background runtime<br/>[background.js]"]
  node_content["Content Script<br/>page integration<br/>[content.js]"]
  node_overlay["Fullscreen Overlay Styles<br/>injected styles<br/>[overlay.css]"]
  node_popup_html["Popup View<br/>popup UI<br/>[popup.html]"]
  node_popup_js["Popup Controller<br/>popup runtime<br/>[popup.js]"]
  node_normalized_url(("Normalized Video URL<br/>behavioral seam"))
end

subgraph group_browser["Browser &amp; Target Page"]
  node_browser_api{{"Browser Extension APIs<br/>platform API"}}
  node_target_page["Target Reel Page<br/>webpage"]
  node_media_fullscreen{{"DOM, Video &amp; Fullscreen APIs<br/>web platform APIs"}}
end

node_manifest -->|"loads"| node_background
node_manifest -->|"injects"| node_content
node_manifest -->|"declares popup"| node_popup_html
node_popup_html -->|"runs"| node_popup_js
node_popup_js -->|"extension messages"| node_background
node_popup_js -.->|"active-tab command"| node_content
node_content -->|"extension messages"| node_background
node_background -->|"uses privileged APIs"| node_browser_api
node_popup_js -->|"uses tab/action APIs"| node_browser_api
node_content -->|"inspects and manipulates"| node_target_page
node_content -->|"controls"| node_media_fullscreen
node_content -->|"applies"| node_overlay
node_content -->|"normalizes target"| node_normalized_url

click node_manifest "https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/manifest.json"
click node_background "https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/background.js"
click node_content "https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/content.js"
click node_overlay "https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/overlay.css"
click node_popup_html "https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/popup.html"
click node_popup_js "https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/popup.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_manifest,node_background,node_content,node_overlay,node_popup_html,node_popup_js,node_normalized_url toneBlue
class node_browser_api,node_target_page,node_media_fullscreen toneAmber
```

## Components

### Extension Package

- [Extension Manifest](https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/manifest.json): runtime declaration · Declares extension runtimes, permissions, and script injection. · `reel-fullscreen-extension/manifest.json`
- [Background Coordinator](https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/background.js): background runtime · Handles privileged browser APIs, lifecycle, and cross-runtime messages. · `reel-fullscreen-extension/background.js`
- [Content Script](https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/content.js): page integration · Controls reel/video DOM behavior from the isolated extension context. · `reel-fullscreen-extension/content.js`
- [Fullscreen Overlay Styles](https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/overlay.css): injected styles · `reel-fullscreen-extension/overlay.css`
- [Popup View](https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/popup.html): popup UI · `reel-fullscreen-extension/popup.html`
- [Popup Controller](https://github.com/0ximei/lms-griffithict-2026/blob/main/reel-fullscreen-extension/popup.js): popup runtime · Sends fullscreen actions to the active tab or background runtime. · `reel-fullscreen-extension/popup.js`
- **Normalized Video URL**: behavioral seam · Identifies the reel/video resource selected for fullscreen behavior.

### Browser & Target Page

- **Browser Extension APIs**: platform API · Provides messaging, tabs, action popup, and lifecycle integration.
- **Target Reel Page**: webpage
- **DOM, Video & Fullscreen APIs**: web platform APIs

## Connections

- Extension Manifest → Background Coordinator: loads
- Extension Manifest → Content Script: injects
- Extension Manifest → Popup View: declares popup
- Popup View → Popup Controller: runs
- Popup Controller → Background Coordinator: extension messages
- Popup Controller → Content Script: active-tab command
- Content Script → Background Coordinator: extension messages
- Background Coordinator → Browser Extension APIs: uses privileged APIs
- Popup Controller → Browser Extension APIs: uses tab/action APIs
- Content Script → Target Reel Page: inspects and manipulates
- Content Script → DOM, Video & Fullscreen APIs: controls
- Content Script → Fullscreen Overlay Styles: applies
- Content Script → Normalized Video URL: normalizes target
