# dharmikgohil/dharmikgohil architecture

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

- Interactive diagram: https://gitdiagram.com/dharmikgohil/dharmikgohil
- Repository: https://github.com/dharmikgohil/dharmikgohil

## Overview

##### Main Components

a) Content Generation Layer:
- GitHub Actions Workflow (shown in .github/workflows/main.yml)
- Dynamic Stats Generation
- Snake Animation Generator

b) Data Sources:
- GitHub API Integration
- LeetCode API Integration
- External Badge Services

c) Rendering Services:
- Vercel-based Services
- GitHub-hosted Content
- Third-party Badge Services

**[User Interaction Layer]**
- ↓
**[GitHub Profile README]**
- ↓
**[Dynamic Content Generation]**
- ↙     ↓     ↘
**[GitHub   [External  [Automated**
- APIs]     APIs]     Updates]

##### Key Relationships

- Automated Workflow Triggers → GitHub Actions
- GitHub Actions → Content Generation
- API Services → Dynamic Content
- Content Generation → README Display

##### Important Elements to Highlight

- GitHub Actions workflow for snake animation
- Stats generation services (GitHub Stats, LeetCode Stats)
- Badge generation services
- Dynamic content update flow

##### Implementation Details

**[GitHub Actions Workflow]**
- Snake Animation Generation
- Automated Updates

**[Stats Generation Services]**
- GitHub Stats API
- LeetCode Stats API
- Contribution Graphs

**[Badge Services]**
- Shield.io
- Custom Badges
- Visit Counters

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "User Layer"
        UI[GitHub Profile Viewer]
    end

    subgraph "Display Layer"
        PD[Profile Display Interface]
        SA[Snake Animation]
    end

    subgraph "Automation Layer"
        GHA[GitHub Actions Workflow]
        SAC[Snake Animation Configuration]
    end

    subgraph "API Services"
        GAS[GitHub Stats API]
        LAS[LeetCode Stats API]
        BS[Badge Services]
    end

    subgraph "External Services"
        VS[Vercel Services]
        SIO[Shields.io]
        VC[Visit Counter]
    end

    UI --> PD
    GHA --> SA
    GHA --> PD
    SAC --> GHA
    GAS --> PD
    LAS --> PD
    BS --> PD
    VS --> PD
    SIO --> BS
    VC --> PD

    %% Click Events
    click GHA "https://github.com/dharmikgohil/dharmikgohil/blob/main/.github/workflows/main.yml"
    click PD "https://github.com/dharmikgohil/dharmikgohil/blob/main/README.md"
    click SAC "https://github.com/dharmikgohil/dharmikgohil/blob/main/.github/workflows/main.yml"

    %% Styling
    classDef github fill:#4078c0,stroke:#fff,stroke-width:2px,color:#fff
    classDef external fill:#28a745,stroke:#fff,stroke-width:2px,color:#fff
    classDef automation fill:#ff9800,stroke:#fff,stroke-width:2px,color:#fff
    classDef display fill:#6f42c1,stroke:#fff,stroke-width:2px,color:#fff
    classDef service fill:#d73a49,stroke:#fff,stroke-width:2px,color:#fff

    class UI,GAS github
    class VS,SIO,VC,LAS external
    class GHA,SAC automation
    class PD,SA display
    class BS service

    %% Legend
    subgraph Legend
        L1[GitHub Services]:::github
        L2[External Services]:::external
        L3[Automation Components]:::automation
        L4[Display Elements]:::display
        L5[Service Integration]:::service
    end
```
