# abiral-2724/my_portfolio architecture

> Architecture diagram of the GitHub repository abiral-2724/my_portfolio, 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/abiral-2724/my_portfolio
- Repository: https://github.com/abiral-2724/my_portfolio

## Overview

##### Main System Components

a) Client-Side Architecture:
- Next.js Frontend (App Router based on the file structure)
- UI Components Layer
- Authentication Layer (Clerk)
- Video Conferencing Integration (Stream)

b) Server-Side Architecture:
- Next.js API Routes
- Database Layer
- External Services Integration

##### Specific Elements

**[Client Layer]**
- Pages (from /src/app)
- Home (page.tsx)
- Blog System ([slug])
- Layout Structure (layout.tsx)

- Component System
- UI Components
- Magic UI Elements
- Core Components

**[Middleware Layer]**
- Authentication (Clerk)
- API Routes
- State Management

**[Backend Layer]**
- Database
- Stream Video Service
- Storage System

##### Connection Flows

- User authentication flow
- Video stream data flow
- API communication paths
- Database interactions

##### Technical Details to Highlight

Emphasize:
- Next.js 13+ App Router architecture
- Tailwind CSS styling system
- Authentication flow with Clerk
- Stream video integration points
- Data flow for recording management

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Client
        AppRouter["Next.js App Router"]
        Pages["Pages Layer"]
        Components["Component System"]
        
        subgraph Pages
            Home["Home Page"]
            Blog["Blog System"]
            Layout["Layout Structure"]
        end
        
        subgraph Components
            UI["UI Components"]
            MagicUI["Magic UI Elements"]
            Core["Core Components"]
            
            subgraph Core
                Navbar["Navbar"]
                Profile["Profile"]
                Icons["Icons"]
                ThemeToggle["Mode Toggle"]
            end
        end
        
        Theme["Theme System"]
    end
    
    subgraph Middleware
        Auth["Authentication (Clerk)"]
        APIRoutes["API Routes"]
        StateManagement["State Management"]
    end
    
    subgraph Backend
        DB[(Database)]
        Stream["Stream Video Service"]
        Storage["Storage System"]
        
        subgraph DataManagement
            ResumeData["Resume Data"]
            BlogData["Blog Data"]
            Utils["Utilities"]
        end
        
        subgraph StaticContent
            MDX["MDX Content"]
        end
    end
    
    AppRouter --> Pages
    AppRouter --> Components
    Pages --> Layout
    Layout --> Components
    Components --> UI
    Components --> MagicUI
    Components --> Core
    Components --> Theme
    
    Auth --> APIRoutes
    APIRoutes --> StateManagement
    StateManagement --> DB
    APIRoutes --> Stream
    APIRoutes --> Storage
    
    Blog --> MDX
    Blog --> BlogData
    
    %% Component Mappings
    click AppRouter "https://github.com/Abiral-2724/My_portfolio/tree/main/src/app"
    click Blog "https://github.com/Abiral-2724/My_portfolio/tree/main/src/app/blog"
    click UI "https://github.com/Abiral-2724/My_portfolio/tree/main/src/components/ui"
    click MagicUI "https://github.com/Abiral-2724/My_portfolio/tree/main/src/components/magicui"
    click Theme "https://github.com/Abiral-2724/My_portfolio/blob/main/src/components/theme-provider.tsx"
    click ThemeToggle "https://github.com/Abiral-2724/My_portfolio/blob/main/src/components/mode-toggle.tsx"
    click Navbar "https://github.com/Abiral-2724/My_portfolio/blob/main/src/components/navbar.tsx"
    click Profile "https://github.com/Abiral-2724/My_portfolio/blob/main/src/components/profile.tsx"
    click Icons "https://github.com/Abiral-2724/My_portfolio/blob/main/src/components/icons.tsx"
    click Layout "https://github.com/Abiral-2724/My_portfolio/blob/main/src/app/layout.tsx"
    click ResumeData "https://github.com/Abiral-2724/My_portfolio/blob/main/src/data/resume.tsx"
    click BlogData "https://github.com/Abiral-2724/My_portfolio/blob/main/src/data/blog.ts"
    click Utils "https://github.com/Abiral-2724/My_portfolio/blob/main/src/lib/utils.ts"
    click MDX "https://github.com/Abiral-2724/My_portfolio/blob/main/content/hello-world.mdx"
    
    classDef frontend fill:#3b82f6,color:white
    classDef middleware fill:#22c55e,color:white
    classDef backend fill:#a855f7,color:white
    classDef external fill:#f97316,color:white
    
    class AppRouter,Pages,Components,UI,MagicUI,Core,Theme frontend
    class Auth,APIRoutes,StateManagement middleware
    class DB,Stream,Storage,DataManagement,StaticContent backend
    class Auth,Stream external
    
    %% Legend
    subgraph Legend
        Frontend["Frontend Component"]:::frontend
        Middleware["Middleware Service"]:::middleware
        BackendService["Backend Service"]:::backend
        ExternalService["External Service"]:::external
    end
```
