# dulithdivisekara/sliit-courseweb-cleaner-web architecture

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

- Interactive diagram: https://gitdiagram.com/dulithdivisekara/sliit-courseweb-cleaner-web
- Repository: https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web

## Overview

This is the official showcase and distribution portal for the SLIIT CourseWeb Cleaner browser extension. A visitor’s request passes through Cloudflare Pages middleware to the static React application, where the app presents browser-specific installation links, an interactive before/after preview, feature and capability information, setup guidance, and FAQs. The README documents the edge-to-static delivery path; sampled source confirms the React entry point and app composition. The extension itself is external to this repository, and unsampled UI details are represented by their documented responsibilities.

Main entry points: [`src/App.tsx`](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/App.tsx) (App shell), [`src/components/InstallSteps.tsx`](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/InstallSteps.tsx) (Setup guide), [`src/components/Footer.tsx`](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/Footer.tsx) (Footer links), [`src/components/Icons.tsx`](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/Icons.tsx) (Brand icons)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_edge["Edge delivery"]
  node_middleware["Edge security<br/>[_middleware.ts]"]
  node_static["Static application"]
end

subgraph group_shell["Application shell"]
  node_react_entry["React mount<br/>[main.tsx]"]
  node_app["App shell<br/>[App.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_icons["Brand icons<br/>[Icons.tsx]"]
end

subgraph group_tour["Product tour"]
  node_comparison["Interface preview"]
  node_features["Feature highlights<br/>[FeatureGrid.tsx]"]
  node_matrix["Capability matrix<br/>[SpecMatrix.tsx]"]
end

subgraph group_guidance["Installation and support"]
  node_installation["Setup guide<br/>[InstallSteps.tsx]"]
  node_faq["Student FAQ<br/>[FaqSection.tsx]"]
  node_footer["Footer links<br/>[Footer.tsx]"]
end

node_visitor(("Visitor"))
node_browser_stores["Browser stores"]
node_extension_repo["Extension repository"]
node_userscript["Userscript install"]

node_visitor -->|"requests page"| node_middleware
node_middleware -->|"passes request"| node_static
node_static -->|"serves app"| node_react_entry
node_react_entry -->|"mounts"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_comparison
node_app -->|"renders"| node_features
node_app -->|"renders"| node_matrix
node_app -->|"renders"| node_installation
node_app -->|"renders"| node_faq
node_app -->|"renders"| node_footer
node_app -->|"links to"| node_browser_stores
node_navbar -->|"uses"| node_icons
node_installation -->|"uses"| node_icons
node_footer -->|"uses"| node_icons
node_installation -->|"links to"| node_userscript
node_installation -->|"links to"| node_extension_repo
node_footer -->|"links to"| node_extension_repo

click node_middleware "https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/functions/_middleware.ts"
click node_react_entry "https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/main.tsx"
click node_app "https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/App.tsx"
click node_navbar "https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/Navbar.tsx"
click node_icons "https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/Icons.tsx"
click node_comparison "https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/ComparisonViewer.tsx"
click node_features "https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/FeatureGrid.tsx"
click node_matrix "https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/SpecMatrix.tsx"
click node_installation "https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/InstallSteps.tsx"
click node_faq "https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/FaqSection.tsx"
click node_footer "https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/Footer.tsx"

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_middleware,node_static,node_browser_stores,node_userscript toneBlue
class node_react_entry,node_app,node_navbar,node_icons toneAmber
class node_comparison,node_features,node_matrix toneMint
class node_installation,node_faq,node_footer toneRose
class node_visitor,node_extension_repo toneIndigo
```

## Components

### Edge delivery

- [Edge security](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/functions/_middleware.ts): `functions/_middleware.ts`
- **Static application**

### Application shell

- [React mount](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/main.tsx): `src/main.tsx`
- [App shell](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Brand icons](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/Icons.tsx): `src/components/Icons.tsx`

### Product tour

- [Interface preview](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/ComparisonViewer.tsx): `src/components/ComparisonViewer.tsx`
- [Feature highlights](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/FeatureGrid.tsx): `src/components/FeatureGrid.tsx`
- [Capability matrix](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/SpecMatrix.tsx): `src/components/SpecMatrix.tsx`

### Installation and support

- [Setup guide](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/InstallSteps.tsx): `src/components/InstallSteps.tsx`
- [Student FAQ](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/FaqSection.tsx): `src/components/FaqSection.tsx`
- [Footer links](https://github.com/dulithdivisekara/sliit-courseweb-cleaner-web/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Other components

- **Visitor**
- **Browser stores**
- **Extension repository**
- **Userscript install**

## Connections

- Visitor → Edge security: requests page (evidence: `README.md`)
- Edge security → Static application: passes request (evidence: `README.md`)
- Static application → React mount: serves app (evidence: `README.md`)
- React mount → App shell: mounts (evidence: `src/main.tsx`)
- App shell → Navigation: renders (evidence: `src/App.tsx`)
- App shell → Interface preview: renders (evidence: `src/App.tsx`)
- App shell → Feature highlights: renders (evidence: `src/App.tsx`)
- App shell → Capability matrix: renders (evidence: `src/App.tsx`)
- App shell → Setup guide: renders (evidence: `src/App.tsx`)
- App shell → Student FAQ: renders (evidence: `src/App.tsx`)
- App shell → Footer links: renders (evidence: `src/App.tsx`)
- App shell → Browser stores: links to (evidence: `src/App.tsx`)
- Navigation → Brand icons: uses (evidence: `src/components/Navbar.tsx`)
- Setup guide → Brand icons: uses (evidence: `src/components/InstallSteps.tsx`)
- Footer links → Brand icons: uses (evidence: `src/components/Footer.tsx`)
- Setup guide → Userscript install: links to (evidence: `src/components/InstallSteps.tsx`)
- Setup guide → Extension repository: links to (evidence: `src/components/InstallSteps.tsx`)
- Footer links → Extension repository: links to (evidence: `src/components/Footer.tsx`)
