# moeez5251/er-diagram-maker architecture

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

- Interactive diagram: https://gitdiagram.com/moeez5251/er-diagram-maker
- Repository: https://github.com/moeez5251/er-diagram-maker

## Overview

##### Main System Components

a) Application Layer
- Vite as the build tool/development server

b) Component Architecture Layer
- Special focus on the interactive visualization components

c) State Management Layer
- Context system (noted from the context directory)
- State flow between components

##### Specific Component Relationships

**Main Application (App.jsx)**

- Components
- Database Schema Visualization
- DatabaseSchemaNode
- BaseNode
- BaseHandle
- LabeledHandle

- UI Components
- Button
- Select
- Slider
- Table

- Utility Components
- AnimatedSVG
- ZoomSelect

- Shared Utils

##### Technical Stack Representation

Technology badges or sections for:
- React + Vite
- TypeScript (noted from .tsx files)
- TailwindCSS
- SWC/Babel (build tools)

Use the following visual elements:
- Blue rectangles for React components
- Green hexagons for utility functions
- Purple diamonds for context providers
- Orange rectangles for build/configuration elements

## Diagram (Mermaid)

```mermaid
graph TB
    %% Styles
    classDef build fill:#a8e6cf
    classDef core fill:#ffd3b6
    classDef context fill:#d4a5a5
    classDef component fill:#ffaaa5
    classDef asset fill:#e6e6e6
    
    %% Build Infrastructure
    subgraph Build["Build & Configuration"]
        Vite["Vite Config"]
        TS["TypeScript Config"]
        TW["Tailwind CSS Config"]
    end
    
    %% Application Core
    subgraph Core["Application Core"]
        Entry["Entry Point"]
        Main["Main Application"]
        App["App Component"]
        
        subgraph ContextLayer["Context Layer"]
            Context["Context System"]
        end
        
        subgraph Components["Component Architecture"]
            subgraph Base["Base Components"]
                BaseNode["Base Node"]
                BaseHandle["Base Handle"]
            end
            
            subgraph Specialized["Specialized Components"]
                DBNode["Database Schema Node"]
                AnimSVG["Animated SVG"]
                LabelHandle["Labeled Handle"]
            end
            
            subgraph UI["UI Components"]
                Button["Button"]
                Select["Select"]
                Slider["Slider"]
                Table["Table"]
            end
        end
    end
    
    %% Asset Layer
    subgraph Assets["Asset Management"]
        Static["Static Assets"]
        Styles["Styles"]
    end
    
    %% Relationships
    Build --> Entry
    Entry --> Main
    Main --> App
    App --> Context
    Context --> Components
    Base --> Specialized
    Components --> Assets
    
    %% Component Inheritance
    BaseNode --> DBNode
    BaseHandle --> LabelHandle
    
    %% Click Events
    click Entry "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/main.jsx"
    click App "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/App.jsx"
    click Context "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/context/context.js"
    click BaseNode "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/components/base-node.tsx"
    click BaseHandle "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/components/base-handle.tsx"
    click DBNode "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/components/database-schema-node.tsx"
    click AnimSVG "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/components/AnimatedSVG.tsx"
    click LabelHandle "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/components/labeled-handle.tsx"
    click Button "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/components/ui/button.tsx"
    click Select "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/components/ui/select.tsx"
    click Slider "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/components/ui/slider.tsx"
    click Table "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/components/ui/table.tsx"
    click Vite "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/vite.config.js"
    click TS "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/tsconfig.json"
    click TW "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/tailwind.config.js"
    click Static "https://github.com/moeez5251/ER-Diagram-Maker/tree/main/src/assets"
    click Styles "https://github.com/moeez5251/ER-Diagram-Maker/blob/main/src/App.css"
    
    %% Style Applications
    class Build,Vite,TS,TW build
    class Entry,Main,App core
    class Context context
    class BaseNode,BaseHandle,DBNode,AnimSVG,LabelHandle,Button,Select,Slider,Table component
    class Static,Styles asset
```
