# jayhyun-hwang/seeulater architecture

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

- Interactive diagram: https://gitdiagram.com/jayhyun-hwang/seeulater
- Repository: https://github.com/jayhyun-hwang/seeulater

## Overview

##### Main System Components

a. Chrome Extension Component:
- Represented by the chromeExtension directory
- Contains background scripts and browser action UI
- Has development, release, and backup versions

b. Web Application Component:
- Located in the webApp/sulClient directory
- React-based frontend application
- Contains user interface components for bookmark management

c. Backend Services (implied):
- AWS EC2 for hosting
- AWS RDS for database storage
- Authentication system

**┌─────────────────────────────────────────────┐**
- Client Side                   │
- ┐           ┌─────────────────┤
- Chrome      │           │    Web App      │
- Extension   │           │    (React)      │
- ┬───────┘           └────────┬────────┘

- ┬───────────────┘

- ┌───────────▼───────────┐
- API Gateway       │
- ┬───────────┘

- ┌───────────────────────────────┐
- Backend Services        │
**┌───┴────┐    ┌──────────┐    ┌────┴───┐**
- AWS EC2 │◄──►│  AWS RDS │    │ Auth   │
- ┘    └──────────┘    │ Service │
- ┘

##### Component Details

For each component, include the following details:

a. Chrome Extension:
- Background Service (background.js)
- Browser Action UI (browser_action.html)
- Extension Configuration (manifest.json)

b. React Web Application:
- Components Structure:
- Header
- Login/Register
- Directories
- URL List
- Forms
- State Management (context)
- Routing System

c. Backend Services:
- Database Tables
- API Endpoints
- Authentication Flow

##### Data Flow Indicators

- User interactions with the Chrome extension
- Communication between extension and web app
- API calls to backend services
- Database operations
- Authentication flows

##### Data persistence and synchronization mechanisms

This system design should effectively communicate how the bookmark manager handles user interactions, stores data, and maintains synchronization across different platforms and interfaces.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Styles and Classes
    classDef frontend fill:#3498db,stroke:#2980b9,color:white
    classDef backend fill:#e67e22,stroke:#d35400,color:white
    classDef api fill:#2ecc71,stroke:#27ae60,color:white
    classDef database fill:#95a5a6,stroke:#7f8c8d,color:white
    classDef auth fill:#9b59b6,stroke:#8e44ad,color:white

    %% Client Side Components
    subgraph ClientSide
        %% Chrome Extension
        subgraph ChromeExt
            ExtMain["Chrome Extension Main"]
            Background["Background Service"]
            BrowserAction["Browser Action UI"]
            Manifest["Extension Config"]
            
            ExtDev["Development Version"]
            ExtRelease["Release Version"]
            ExtBackup["Backup Version"]
        end

        %% Web Application
        subgraph WebApp
            ReactApp["React Application"]
            
            subgraph Components
                Header["Header Component"]
                Login["Login/Register"]
                Directories["Directories"]
                URLList["URL List"]
                Forms["Forms"]
            end
            
            subgraph State
                Context["Context Management"]
                ActionTypes["Action Types"]
            end
            
            Router["Routing System"]
            Config["Configuration"]
        end
    end

    %% Backend Components
    subgraph Backend
        APIGateway["API Gateway"]:::api
        
        subgraph Services
            EC2["AWS EC2"]:::backend
            RDS["AWS RDS"]:::database
            Auth["Auth Service"]:::auth
        end
    end

    %% Relationships
    ExtMain --> APIGateway
    ReactApp --> APIGateway
    APIGateway --> EC2
    EC2 --> RDS
    EC2 --> Auth

    %% Component Mappings with Click Events
    click ExtMain "https://github.com/jayhyun-hwang/seeULater/tree/main/chromeExtension/"
    click Background "https://github.com/jayhyun-hwang/seeULater/blob/main/chromeExtension/background.js"
    click BrowserAction "https://github.com/jayhyun-hwang/seeULater/blob/main/chromeExtension/browser_action.html"
    click Manifest "https://github.com/jayhyun-hwang/seeULater/blob/main/chromeExtension/manifest.json"
    click ExtDev "https://github.com/jayhyun-hwang/seeULater/tree/main/chromeExtension_DEV/"
    click ExtRelease "https://github.com/jayhyun-hwang/seeULater/tree/main/chromeExtension_RELEASE/"
    click ExtBackup "https://github.com/jayhyun-hwang/seeULater/tree/main/chromeExtension_RELEASE_bak/"
    click ReactApp "https://github.com/jayhyun-hwang/seeULater/tree/main/webApp/sulClient/"
    click Header "https://github.com/jayhyun-hwang/seeULater/tree/main/webApp/sulClient/src/components/Header/"
    click Login "https://github.com/jayhyun-hwang/seeULater/tree/main/webApp/sulClient/src/components/Login/"
    click Directories "https://github.com/jayhyun-hwang/seeULater/tree/main/webApp/sulClient/src/components/Directories/"
    click URLList "https://github.com/jayhyun-hwang/seeULater/tree/main/webApp/sulClient/src/components/UrlList/"
    click Forms "https://github.com/jayhyun-hwang/seeULater/tree/main/webApp/sulClient/src/components/Form/"
    click Router "https://github.com/jayhyun-hwang/seeULater/blob/main/webApp/sulClient/src/components/Router.js"
    click Context "https://github.com/jayhyun-hwang/seeULater/tree/main/webApp/sulClient/src/context/"
    click ActionTypes "https://github.com/jayhyun-hwang/seeULater/blob/main/webApp/sulClient/src/context/actionTypes.js"
    click Config "https://github.com/jayhyun-hwang/seeULater/blob/main/webApp/sulClient/src/define/define.js"

    %% Legend
    subgraph Legend
        Frontend["Frontend Components"]:::frontend
        BackendService["Backend Services"]:::backend
        APIService["API Services"]:::api
        DBService["Database"]:::database
        AuthService["Authentication"]:::auth
    end
```
