# bozzhik/website-aura architecture

> Architecture diagram of the GitHub repository bozzhik/website-aura, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bozzhik/website-aura
- Repository: https://github.com/bozzhik/website-aura

## Overview

##### Main Components

A. Browser Environment Layer:
- Chrome Browser Host
- Extension Interface Components
- Active Tab/Website Context

B. Extension Core Components:
- Popup Interface
- Content Scripts

##### Detailed Component Breakdown

**[Chrome Browser]**

- [Active Website Tab]
- [DOM Elements]

- [Website Aura Extension]
- [Popup Interface]
- [Content Scripts]

##### Component Relationships

A. Content Script Flow:
- Content Script → Active Website (DOM scanning)

B. User Interaction Flow:
- User → Popup Interface (interaction entry point)
- Popup Interface → Content Script (analysis triggers)

##### Technical Implementation Details

Technology badges or labels:
- React + TypeScript (Popup Interface)
- Chrome Extension API (Browser Integration)
- Tailwind CSS (Styling Layer)
- Vite (Build System)

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Browser
        ChromeBrowser["Chrome Browser"]
        ActiveTab["Active Website Tab"]
        DOMElements["DOM Elements"]
    end

    subgraph "Extension Core"
        PopupUI["Popup Interface"]:::ui
        ContentScripts["Content Scripts"]:::core
        ColorEngine["Color Analysis Engine"]:::engine
    end

    subgraph "Technical Stack"
        React["React + TypeScript"]:::tech
        ChromeAPI["Chrome Extension API"]:::tech
        TailwindCSS["Tailwind CSS"]:::tech
        Vite["Vite Build System"]:::tech
    end

    subgraph "Extension Assets"
        Icons["Icons"]:::asset
        Images["Images"]:::asset
    end

    %% Relationships
    ChromeBrowser --> ActiveTab
    ActiveTab --> DOMElements
    ContentScripts --> DOMElements
    ContentScripts --> ColorEngine
    ColorEngine --> PopupUI
    PopupUI --> ContentScripts

    %% Technical Dependencies
    React --> PopupUI
    ChromeAPI --> ContentScripts
    TailwindCSS --> PopupUI
    Vite --> PopupUI

    %% Click Events
    click PopupUI "https://github.com/bozzhik/website-aura/blob/main/src/popup/Popup.tsx"
    click ContentScripts "https://github.com/bozzhik/website-aura/blob/main/src/contentScript/index.ts"
    click ColorEngine "https://github.com/bozzhik/website-aura/blob/main/src/contentScript/siteAnalysis.ts"
    click Icons "https://github.com/bozzhik/website-aura/tree/main/public/icons"
    click Images "https://github.com/bozzhik/website-aura/tree/main/public/img"
    click TailwindCSS "https://github.com/bozzhik/website-aura/blob/main/tailwind.config.ts"
    click Vite "https://github.com/bozzhik/website-aura/blob/main/vite.config.ts"

    %% Styling
    classDef ui fill:#9333ea,color:#fff
    classDef core fill:#22c55e,color:#fff
    classDef engine fill:#f97316,color:#fff
    classDef tech fill:#3b82f6,color:#fff
    classDef asset fill:#64748b,color:#fff

    %% Legend
    subgraph Legend
        UI["UI Components"]:::ui
        Core["Core Components"]:::core
        Engine["Analysis Engine"]:::engine
        Tech["Technical Stack"]:::tech
        Asset["Assets"]:::asset
    end
```
