# anrsgrl/resume-builder architecture

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

- Interactive diagram: https://gitdiagram.com/anrsgrl/resume-builder
- Repository: https://github.com/anrsgrl/resume-builder

## Overview

##### Main Components

A. Client-Side Layer
- Next.js Application Container
- Component Structure
- State Management (Zustand)
- Local Storage
- i18n System

B. Feature Modules
- Resume Builder Core
- Template System
- Localization Handler
- Data Persistence Layer

**┌─ User Interface Layer ─────────────────────┐**
- Layout Components                        │
- Shared Components                        │
- Template Components                      │
- ┬──────────────────────┘
- ↓
**┌─ Application Core Layer ───────────────────┐**
- Next.js Router ([locale])                │
- State Management (Zustand Store)         │
- i18n System                             │
- ┬──────────────────────┘
- ↓
**┌─ Data Layer ────────────────────────────┐**
- LocalStorage                          │
- Static Assets                         │
- ┘

##### Component Relationships

- Layout components (Header, Footer, CVPreview) and the main application container
- Shared components (Editor, Personal, Experience, etc.) and the state management system
- Template components and the preview system
- i18n system and the language switcher component
- State management and local storage persistence

##### Technical Details

- Next.js 13+ App Router structure
- Zustand store connections
- i18n implementation with routing
- LocalStorage data flow
- Component hierarchy

##### Implementation Notes

- How the app/[locale] structure handles internationalization
- The relationship between shared components and the editor
- How templates interact with the preview system
- The flow of data from user input to storage

##### Additional Elements

Annotations for:
- Build process
- Static asset handling
- Utility functions
- Security considerations for local storage

Remember to maintain a balance between detail and clarity, focusing on the architectural decisions that make this Resume Builder unique, such as its stateless nature, local storage usage, and internationalization implementation.

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph UI["User Interface Layer"]
        direction TB
        LC["Layout Components"]
        SC["Shared Components"]
        TC["Template Components"]
        CC["Common UI Components"]
    end

    subgraph Core["Application Core Layer"]
        direction TB
        NR["Next.js Router"]
        SM["State Management"]
        I18["i18n System"]
    end

    subgraph Data["Data Layer"]
        direction TB
        LS["Local Storage"]
        SA["Static Assets"]
    end

    %% Layout Components Breakdown
    subgraph Layout
        direction TB
        CVP["CV Preview"]
        FTR["Footer"]
        ADD["Additional"]
        HIW["How It Works"]
    end

    %% Shared Components Breakdown
    subgraph Shared
        direction TB
        ED["Editor"]
        PERS["Personal"]
        EXP["Experience"]
        EDU["Education"]
        SKL["Skills"]
        LANG["Languages"]
        REF["References"]
        LSwitch["Language Switcher"]
    end

    %% Common Components Breakdown
    subgraph Common
        direction TB
        BTN["Button"]
        INP["Input"]
        SEL["Select"]
        TXA["TextArea"]
        MOD["Modal"]
        IMG["Image Upload"]
    end

    %% Connections
    UI --> Core
    Core --> Data
    Layout --> Core
    Shared --> Core
    Common --> Core
    I18 --> LSwitch
    SM --> LS

    %% Styling
    classDef ui fill:#3498db,stroke:#2980b9,color:white
    classDef core fill:#2ecc71,stroke:#27ae60,color:white
    classDef data fill:#e67e22,stroke:#d35400,color:white
    classDef i18n fill:#9b59b6,stroke:#8e44ad,color:white
    classDef common fill:#95a5a6,stroke:#7f8c8d,color:white

    class UI,Layout,CVP,FTR,ADD,HIW ui
    class Core,SM,NR core
    class Data,LS,SA data
    class I18,LSwitch i18n
    class Common,BTN,INP,SEL,TXA,MOD,IMG common

    %% Click Events
    click NR "https://github.com/Anrsgrl/resume-builder/blob/main/app/[locale]/layout.js"
    click SM "https://github.com/Anrsgrl/resume-builder/blob/main/store/store.js"
    click I18 "https://github.com/Anrsgrl/resume-builder/blob/main/i18n/request.js"
    click LSwitch "https://github.com/Anrsgrl/resume-builder/blob/main/components/shared/LanguageSwitcher.jsx"
    click CVP "https://github.com/Anrsgrl/resume-builder/blob/main/components/layout/CVPreview.jsx"
    click FTR "https://github.com/Anrsgrl/resume-builder/blob/main/components/layout/Footer.jsx"
    click ADD "https://github.com/Anrsgrl/resume-builder/blob/main/components/layout/Additional.jsx"
    click HIW "https://github.com/Anrsgrl/resume-builder/blob/main/components/layout/HowItWorks.jsx"
    click ED "https://github.com/Anrsgrl/resume-builder/blob/main/components/shared/Editor.jsx"
    click PERS "https://github.com/Anrsgrl/resume-builder/blob/main/components/shared/Personal.jsx"
    click EXP "https://github.com/Anrsgrl/resume-builder/blob/main/components/shared/Experience.jsx"
    click EDU "https://github.com/Anrsgrl/resume-builder/blob/main/components/shared/Education.jsx"
    click SKL "https://github.com/Anrsgrl/resume-builder/blob/main/components/shared/Skills.jsx"
    click LANG "https://github.com/Anrsgrl/resume-builder/blob/main/components/shared/Languages.jsx"
    click REF "https://github.com/Anrsgrl/resume-builder/blob/main/components/shared/References.jsx"
    click BTN "https://github.com/Anrsgrl/resume-builder/blob/main/components/common/Button.jsx"
    click INP "https://github.com/Anrsgrl/resume-builder/blob/main/components/common/Input.jsx"
    click SEL "https://github.com/Anrsgrl/resume-builder/blob/main/components/common/Select.jsx"
    click TXA "https://github.com/Anrsgrl/resume-builder/blob/main/components/common/TextArea.jsx"
    click MOD "https://github.com/Anrsgrl/resume-builder/blob/main/components/common/Modal.jsx"
    click IMG "https://github.com/Anrsgrl/resume-builder/blob/main/components/common/ImageUpload.jsx"
```
