# gnanesh-16/gigweyhecta architecture

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

- Interactive diagram: https://gitdiagram.com/gnanesh-16/gigweyhecta
- Repository: https://github.com/gnanesh-16/gigweyhecta

## Overview

##### Main System Components

a) Frontend Application (Primary Focus)
- React/TypeScript-based SPA (Single Page Application)
- UI Components Layer
- Action Handlers
- Utility Services

b) External Services
- Appwrite Integration (based on appwrites.ts utility)
- AI Services (mentioned in README)
- Web Automation Engine

##### Component Organization

**┌─ User Interface Layer ─────────────────────┐**
- ┌─ Components ─────────┐                   │
- Header            │ ┌─ Features ─────┐ │
- Hero             │ │ - FeatureList  │ │
- Footer           │ │ - Infographic  │ │
- ┘ └───────────────┘ │

- ┌─ Recording System ──┐ ┌─ Beta System ─┐ │
- RecordingStatus  │ │ - BetaForm    │ │
- RecordingsList   │ └───────────────┘ │
- ┘                    │
- ┘

**┌─ Core Services Layer ──────────────────────┐**
- ┌─ Action Handlers ─┐ ┌─ Utilities ──────┐ │
- Beta Actions   │ │ - Appwrite      │ │
- ┘ │ - Handle Close   │ │
- ┘ │
- ┘

**┌─ External Services ──────────────────────┐**
- Appwrite Backend                      │
- AI Processing Engine                  │
- Web Automation Engine                 │
- ┘

##### Key Relationships to Highlight

- How the Recording system interfaces with the Web Automation Engine
- Connection between UI components and Action Handlers
- Demonstrate the data flow between the application and Appwrite backend
- AI processing pipeline for automation intelligence

##### Technical Stack Indicators

Technology badges or labels for:
- React + TypeScript
- Vite (build tool)
- Tailwind CSS
- Appwrite
- AI Services

##### Implementation Notes

- Maintaining separate views for high-level architecture and detailed component relationships
- Documenting the AI decision-making process

This system design should effectively communicate GigWey's architecture as a modern web automation platform with sophisticated AI capabilities and precise control mechanisms.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "User Interface Layer"
        App["App Component"]
        Main["Main Entry Point"]
        Loading["Loading Screen"]
        
        subgraph "Layout Components"
            Container["Container Layout"]
        end
        
        subgraph "Core UI Components"
            Header["Header"]
            Hero["Hero Section"]
            Footer["Footer"]
        end
        
        subgraph "Feature Components"
            FeatureList["Feature List"]
            FeatureIcon["Feature Icons"]
            Infographic["Infographic"]
        end
        
        subgraph "Recording Components"
            RecStatus["Recording Status"]
            RecList["Recordings List"]
        end
        
        subgraph "Beta Components"
            BetaForm["Beta Form"]
        end
    end
    
    subgraph "Business Logic Layer"
        subgraph "Actions"
            BetaActions["Beta Actions"]
        end
        
        subgraph "Utils"
            AppwriteUtil["Appwrite Integration"]
            HandleClose["Close Handler"]
        end
    end
    
    subgraph "External Services"
        Appwrite[("Appwrite")]
        AI["AI Services"]
        AutoEngine["Automation Engine"]
    end
    
    %% Relationships
    Main --> App
    App --> Container
    Container --> Header
    Container --> Hero
    Container --> Footer
    Container --> FeatureList
    Container --> BetaForm
    Container --> Infographic
    Container --> Loading
    
    FeatureList --> FeatureIcon
    
    RecStatus --> AutoEngine
    RecList --> AutoEngine
    
    BetaForm --> BetaActions
    BetaActions --> AppwriteUtil
    AppwriteUtil --> Appwrite
    
    AutoEngine --> AI
    
    %% Click Events
    click App "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/App.tsx"
    click Main "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/main.tsx"
    click Container "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/components/layout/Container.tsx"
    click Header "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/components/Header.tsx"
    click Hero "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/components/Hero.tsx"
    click Footer "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/components/Footer.tsx"
    click FeatureList "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/components/features/FeatureList.tsx"
    click FeatureIcon "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/components/icons/FeatureIcon.tsx"
    click RecStatus "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/components/recording/RecordingStatus.tsx"
    click RecList "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/components/recording/RecordingsList.tsx"
    click BetaForm "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/components/beta/BetaForm.tsx"
    click BetaActions "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/actions/beta_actions.ts"
    click AppwriteUtil "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/utils/appwrites.ts"
    click HandleClose "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/utils/handleClose.ts"
    click Infographic "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/components/infographics/Infographic.tsx"
    click Loading "https://github.com/gnanesh-16/GigWeyhecta/blob/main/src/components/LoadingScreen.tsx"
    
    %% Styling
    classDef ui fill:#3498db,stroke:#2980b9,color:white
    classDef service fill:#2ecc71,stroke:#27ae60,color:white
    classDef action fill:#e67e22,stroke:#d35400,color:white
    classDef util fill:#9b59b6,stroke:#8e44ad,color:white
    classDef external fill:#95a5a6,stroke:#7f8c8d,color:white
    
    class App,Main,Container,Header,Hero,Footer,FeatureList,FeatureIcon,RecStatus,RecList,BetaForm,Loading,Infographic ui
    class Appwrite,AI,AutoEngine service
    class BetaActions action
    class AppwriteUtil,HandleClose util
    
    %% Legend
    subgraph Legend
        UI["UI Components"]:::ui
        Service["Services"]:::service
        Action["Actions"]:::action
        Util["Utilities"]:::util
    end
```
