# jeong99/llmops-fe architecture

> Architecture diagram of the GitHub repository jeong99/llmops-fe, 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/jeong99/llmops-fe
- Repository: https://github.com/jeong99/llmops-fe

## Overview

##### Main Application Components

a. Core Application Layer
- Main routing system (indicated by /routes directory)
- State management layer (indicated by various store hooks)

b. Feature Modules
- Model Learning
- Model Managing
- Playground
- Prompt Gallery
- Prompt Making
- Deployment

##### Component Architecture

a. Layout Layer
- PageLayout component as the outer container
- Sidebar component for navigation
- Modal system (shown as an overlay layer)

b. Feature-specific Components
Components by feature:
- Model Management Components
- Playground Components
- Prompt-related Components
- Deploy Components

##### State Management & Data Flow
Store connections:
- ModelStore
- ModalStore
- PlaygroundHistoryStore
- PromptStore
- ServerStore

##### UI Component Library
- Basic components (Button, Card, Form, etc.)
- Complex components (Carousel, Chart, etc.)
- Custom hooks

##### External Integrations
Connections to:
- API Services (if any)
- LLM Backend Services
- Model Deployment Services

##### Component Relationships
- How features interact with stores
- Modal overlays
- Routing relationships

- 🔄 For state management
- 🖥️ For UI components
- 🔌 For external connections
- 📝 For form/input handling

Layout Guidelines:

##### Top Section
- Core application container
- Routing system
- Global state management

##### Middle Section
- Feature modules in a grid layout

##### Bottom Section
- UI component library
- External services
- Shared utilities

##### Side Panel
- Architecture patterns used

Additional Considerations:

##### Technologies
- React + TypeScript
- Vite
- TailwindCSS (noted from config files)
- Other major dependencies

##### Cross-cutting concerns
- Error handling
- State management patterns
- Routing structure

##### Special features
- HMR (Hot Module Replacement)
- Type checking
- Component lazy loading

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Core
        Main["Main Application Entry"]:::core
        Router["Routing System"]:::core
        Layout["Page Layout"]:::core
        Sidebar["Sidebar Navigation"]:::core
        Modal["Modal System"]:::core
    end

    subgraph StateManagement
        ModelStore["Model Store"]:::store
        ModalStore["Modal Store"]:::store
        PlaygroundStore["Playground History Store"]:::store
        PromptStore["Prompt Store"]:::store
        ServerStore["Server Store"]:::store
    end

    subgraph Features
        ModelLearning["Model Learning"]:::feature
        ModelManaging["Model Managing"]:::feature
        Playground["Playground"]:::feature
        PromptGallery["Prompt Gallery"]:::feature
        PromptMaking["Prompt Making"]:::feature
        Deploy["Deployment"]:::feature
    end

    subgraph UIComponents
        BasicUI["Basic Components"]:::ui
        ComplexUI["Complex Components"]:::ui
        ModelComponents["Model Components"]:::ui
    end

    subgraph Utils
        Constants["Constants"]:::util
        Utilities["Utilities"]:::util
        Types["Types"]:::util
    end

    Main --> Router
    Router --> Layout
    Layout --> Sidebar
    Layout --> Modal

    %% Feature connections to stores
    ModelLearning --> ModelStore
    ModelManaging --> ModelStore
    Playground --> PlaygroundStore
    PromptGallery --> PromptStore
    PromptMaking --> PromptStore
    Deploy --> ServerStore

    %% UI Component usage
    Features --> BasicUI
    Features --> ComplexUI
    ModelManaging --> ModelComponents
    ModelLearning --> ModelComponents

    %% Utility usage
    Features --> Utils
    StateManagement --> Utils

    %% Click events
    click Main "https://github.com/JEONG99/llmops-fe/blob/main/src/main.tsx"
    click Router "https://github.com/JEONG99/llmops-fe/blob/main/src/routes/__root.tsx"
    click Layout "https://github.com/JEONG99/llmops-fe/blob/main/src/components/layout/page-layout.tsx"
    click Sidebar "https://github.com/JEONG99/llmops-fe/blob/main/src/components/common/sidebar.tsx"
    click Modal "https://github.com/JEONG99/llmops-fe/tree/main/src/components/modal/"
    click ModelStore "https://github.com/JEONG99/llmops-fe/blob/main/src/hooks/use-model-store.ts"
    click ModalStore "https://github.com/JEONG99/llmops-fe/blob/main/src/hooks/use-modal-store.ts"
    click PlaygroundStore "https://github.com/JEONG99/llmops-fe/blob/main/src/hooks/use-playground-history-store.ts"
    click PromptStore "https://github.com/JEONG99/llmops-fe/blob/main/src/hooks/use-prompt-store.ts"
    click ServerStore "https://github.com/JEONG99/llmops-fe/blob/main/src/hooks/use-server-store.ts"
    click ModelLearning "https://github.com/JEONG99/llmops-fe/tree/main/src/components/model-learning/"
    click ModelManaging "https://github.com/JEONG99/llmops-fe/tree/main/src/components/model-managing/"
    click Playground "https://github.com/JEONG99/llmops-fe/tree/main/src/components/playground/"
    click PromptGallery "https://github.com/JEONG99/llmops-fe/tree/main/src/components/prompt-gallery/"
    click PromptMaking "https://github.com/JEONG99/llmops-fe/tree/main/src/components/prompt-making/"
    click Deploy "https://github.com/JEONG99/llmops-fe/tree/main/src/components/deploy/"
    click BasicUI "https://github.com/JEONG99/llmops-fe/tree/main/src/components/ui/"
    click ModelComponents "https://github.com/JEONG99/llmops-fe/tree/main/src/components/common/model/"
    click Constants "https://github.com/JEONG99/llmops-fe/blob/main/src/lib/const.ts"
    click Utilities "https://github.com/JEONG99/llmops-fe/blob/main/src/lib/utils.ts"
    click Types "https://github.com/JEONG99/llmops-fe/blob/main/src/types.ts"

    %% Styling
    classDef core fill:#2563eb,color:white
    classDef store fill:#9333ea,color:white
    classDef feature fill:#16a34a,color:white
    classDef ui fill:#ca8a04,color:white
    classDef util fill:#dc2626,color:white
```
