# vyogami/wiki architecture

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

- Interactive diagram: https://gitdiagram.com/vyogami/wiki
- Repository: https://github.com/vyogami/wiki

## Overview

##### Main System Components

a) Frontend Layer
- Next.js Application (Core)
- Component Structure
- Static Assets
- Routing System

b) Content Management
- Wiki Content (MDX)
- Asset Management
- Metadata Management

##### Component Organization

a) Page Components
- Homepage
- Wiki Pages
- OG Image Generator

b) Reusable Components
- Navigation
- UI Elements (Logo, Rocket, Spotlight)
- Content Displays (Projects, Roles, TechStack)

##### Specific Implementation Details

Technical aspects:

a) Styling System
- CSS Modules
- Tailwind CSS
- Global Styles

b) Static Asset Handling
- Public Assets
- SVG Types
- Images

##### Data Flow and Structure

Relationships:

a) Content Organization
- Wiki Structure (nested routing)
- Metadata Management (_meta.json files)
- Content Categories (tools, open-source, etc.)

##### Build and Development

Development toolchain:
- Bun Package Manager
- Development Server
- Build Process
- Code Quality Tools (Prettier, Markdown Lint)

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Frontend
        NextCore["Next.js Core"]
        Pages["Page Components"]
        ReusableUI["Reusable UI"]
        ContentDisplay["Content Display"]
    end

    subgraph ContentManagement
        WikiContent["Wiki Content"]
        MetaData["Metadata Management"]
        Assets["Static Assets"]
    end

    subgraph BuildTools
        Bun["Bun Package Manager"]
        DevServer["Development Server"]
        CodeQuality["Code Quality Tools"]
    end

    subgraph Styling
        TailwindCSS["Tailwind CSS"]
        CSSModules["CSS Modules"]
        GlobalStyles["Global Styles"]
    end

    %% Core Application Components
    NextCore --> |Renders| Pages
    click NextCore "https://github.com/vyogami/wiki/blob/main/pages/_app.tsx"
    click NextCore "https://github.com/vyogami/wiki/blob/main/next.config.js"
    click NextCore "https://github.com/vyogami/wiki/blob/main/theme.config.jsx"

    %% Page Components
    Pages --> Homepage
    Pages --> WikiPages
    Pages --> OGImage
    click Homepage "https://github.com/vyogami/wiki/blob/main/pages/index.mdx"
    click OGImage "https://github.com/vyogami/wiki/blob/main/pages/og-image.mdx"
    click WikiPages "https://github.com/vyogami/wiki/tree/main/pages/wiki/"

    %% Reusable UI Components
    ReusableUI --> Navigation
    ReusableUI --> UIElements
    click Navigation "https://github.com/vyogami/wiki/blob/main/components/NavbarWrapper.tsx"
    click UIElements "https://github.com/vyogami/wiki/blob/main/components/Logo.tsx"

    %% Content Display
    ContentDisplay --> Projects
    ContentDisplay --> Roles
    ContentDisplay --> TechStack
    click Projects "https://github.com/vyogami/wiki/blob/main/components/Projects.tsx"
    click Roles "https://github.com/vyogami/wiki/blob/main/components/Roles.tsx"
    click TechStack "https://github.com/vyogami/wiki/blob/main/components/TechStack.tsx"

    %% Content Management
    WikiContent --> |Provides| Pages
    MetaData --> |Configures| WikiContent
    Assets --> |Enriches| ContentDisplay
    click WikiContent "https://github.com/vyogami/wiki/tree/main/pages/wiki/"
    click MetaData "https://github.com/vyogami/wiki/blob/main/pages/_meta.json"
    click Assets "https://github.com/vyogami/wiki/blob/main/assets/Projects.tsx"

    %% Styling System
    TailwindCSS --> |Styles| Pages
    CSSModules --> |Styles| ReusableUI
    GlobalStyles --> |Styles| NextCore
    click TailwindCSS "https://github.com/vyogami/wiki/blob/main/tailwind.config.js"
    click GlobalStyles "https://github.com/vyogami/wiki/blob/main/styles.css"

    %% Build Tools
    Bun --> |Manages| NextCore
    DevServer --> |Serves| NextCore
    CodeQuality --> |Validates| WikiContent
    click CodeQuality "https://github.com/vyogami/wiki/blob/main/.prettierrc.yaml"

    %% Styling
    classDef frontend fill:#3b82f6,color:white
    classDef content fill:#22c55e,color:white
    classDef build fill:#f97316,color:white
    classDef styling fill:#a855f7,color:white

    class NextCore,Pages,ReusableUI,ContentDisplay frontend
    class WikiContent,MetaData,Assets content
    class Bun,DevServer,CodeQuality build
    class TailwindCSS,CSSModules,GlobalStyles styling

    %% Legend
    subgraph Legend
        Frontend_L[Frontend Components]:::frontend
        Content_L[Content Management]:::content
        Build_L[Build Tools]:::build
        Styling_L[Styling System]:::styling
    end
```
