# nishit-luhadia30/internship-techhyaku architecture

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

- Interactive diagram: https://gitdiagram.com/nishit-luhadia30/internship-techhyaku
- Repository: https://github.com/nishit-luhadia30/internship-techhyaku

## Overview

##### Project type and purpose
- This is a front-end single-page application (SPA) built with React and Vite.
- There is no custom backend in this repo—everything runs in the browser or in the dev/build pipeline.

##### File structure
- Top-level files:
– package.json / package-lock.json: Node.js dependencies and scripts
– vite.config.js: Vite bundler configuration
– eslint.config.js: Linting rules
– index.html: SPA entry point
- public/: static assets that are copied as-is into the final build
- src/: application source
– main.jsx: application bootstrap (Vite injects HMR code here)
– App.jsx: root React component
– components/: React component modules for each page/section
– assets/: images or other media organized by section
- Build & serve scripts triggered via npm/yarn in package.json

##### Readme insights
- Describes usage of @vitejs/plugin-react or plugin-react-swc for Fast Refresh
- Mentions ESLint and a hint toward possibly adopting TypeScript

##### Main components
A. Developer Workstation
- Node.js + npm/yarn
- Source code in src/ + public/ + config files
- ESLint
B. Build & Dev Pipeline (Vite)
- Vite Dev Server
- React plugin (Babel or SWC) for HMR
- Module resolution (ESM imports of .jsx, .css, .png, etc.)
- Dev → Browser (Live HMR over WebSocket)
- Vite Build → Static assets (bundled JS/CSS under dist/)
C. Deployment / Hosting
- Static hosting service (Netlify, Vercel, S3 + CloudFront, etc.)
- CDN delivering built assets
D. Runtime in Browser
- index.html
- React app bundle
- React Router (if used) loads components: Header, Footer, Home, About, Courses, etc.
- Assets loaded via import or public/ fallback

##### Relationships & data flow
- Code edits → (npm run dev) → Vite Dev Server transforms & serves → Browser HMR updates
- Code ready for production → (npm run build) → Vite bundles → dist/ → Deploy to static host → Browser fetches built JS/CSS → React hydrates UI
- Components import from src/assets or src/components → Vite inlines or copies static assets

##### Architectural patterns & design principles
- Component-based UI (React)
- SPA pattern with client-side routing (if applicable)
- Development vs. production pipelines separated by Vite config
- Static asset management in public/ and via import

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Developer Workstation
    subgraph "Developer Workstation"
        direction TB
        NW(Node.js + npm/yarn):::workstation
        CF("Config Files"):::workstation
        SC("Source Code"):::workstation
        NW --> CF
        NW --> SC
        CF --> eslint["eslint.config.js"]:::build
        CF --> viteconf["vite.config.js"]:::build
        CF --> pkg["package.json"]:::build
        CF --> lock["package-lock.json"]:::build
        SC --> html["index.html"]:::runtime
        SC --> public["public/"]:::assets
        SC --> srcroot["src/"]:::assets
    end

    %% Build & Dev Pipeline
    subgraph "Build & Dev Pipeline (Vite)"
        direction TB
        NScripts("npm scripts (dev & build)"):::build
        VDev("Vite Dev Server"):::build
        RPlugin("React Plugin (HMR)"):::build
        Resolver("ESM Module Resolver"):::build
        Bundler("Vite Bundler"):::build
        NScripts --> VDev
        VDev --> RPlugin
        RPlugin --> Resolver
        Resolver --> Bundler
        Bundler -->|"dev → serve"| VDev
        Bundler -->|"build → dist/"| Dist["dist/"]:::assets
    end

    %% Runtime / Deployment
    subgraph "Deployment & Runtime"
        direction TB
        Host("Static Hosting/CDN"):::runtime
        Browser("Browser"):::runtime
        App("React App Bundle"):::runtime
        subgraph "UI Components"
            direction TB
            Header["Header"]:::runtime
            Home["Home Page"]:::runtime
            About["About Page"]:::runtime
            Courses["Courses Page"]:::runtime
            Collaboration["Collaboration Section"]:::runtime
            ContactUs["Contact Us Section"]:::runtime
            WhyUsSec["Why Us Section"]:::runtime
            Achievements["Achievements Section"]:::runtime
            HowItWorks["How It Works Section"]:::runtime
            KitSection["Kit Overview Section"]:::runtime
            KitDetails["Kit Details Page"]:::runtime
            Video["Video Component"]:::runtime
            Footer["Footer"]:::runtime
        end
        subgraph "Static Assets"
            direction TB
            WhyImgs["WhyUs Images"]:::assets
            CoursesImgs["Our_Courses Images"]:::assets
            KitsImgs["Kits Images"]:::assets
            NewsImgs["News Images"]:::assets
            CollabImgs["Collaborations Images"]:::assets
            AboutImgs["About Section Images"]:::assets
            ContactImgs["Contact Section Images"]:::assets
        end
        Dist --> Host
        Host --> Browser
        Browser --> App
        App --> Header
        App --> Home
        App --> About
        App --> Courses
        App --> Collaboration
        App --> ContactUs
        App --> WhyUsSec
        App --> Achievements
        App --> HowItWorks
        App --> KitSection
        App --> KitDetails
        App --> Video
        App --> Footer
        App --> WhyImgs
        App --> CoursesImgs
        App --> KitsImgs
        App --> NewsImgs
        App --> CollabImgs
        App --> AboutImgs
        App --> ContactImgs
    end

    %% Developer Workstation to Pipeline
    SC -->|"npm run dev / build"| NScripts
    VDev --> Browser
    Browser -->|HMR WebSocket| VDev

    %% Click Events
    click eslint "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/eslint.config.js"
    click viteconf "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/vite.config.js"
    click pkg "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/package.json"
    click lock "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/package-lock.json"
    click html "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/index.html"
    click public "https://github.com/nishit-luhadia30/internship-techhyaku/tree/main/public/"
    click srcroot "https://github.com/nishit-luhadia30/internship-techhyaku/tree/main/src/"
    click main "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/main.jsx"
    click css "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/index.css"
    click app "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/App.jsx"
    click Home "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/Home.jsx"
    click About "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/About.jsx"
    click Courses "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/Courses.jsx"
    click Collaboration "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/Collaboration.jsx"
    click ContactUs "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/ContactUs.jsx"
    click WhyUsSec "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/WhyUs.jsx"
    click Achievements "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/Achievements.jsx"
    click HowItWorks "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/HowItWorks.jsx"
    click KitSection "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/KitSection.jsx"
    click KitDetails "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/KitDetails.jsx"
    click Video "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/Video.jsx"
    click Footer "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/Footer.jsx"
    click Header "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/Header.jsx"
    click Data "https://github.com/nishit-luhadia30/internship-techhyaku/blob/main/src/components/Data.js"
    click WhyImgs "https://github.com/nishit-luhadia30/internship-techhyaku/tree/main/src/assets/WhyUs/"
    click CoursesImgs "https://github.com/nishit-luhadia30/internship-techhyaku/tree/main/src/assets/Our_Courses/"
    click KitsImgs "https://github.com/nishit-luhadia30/internship-techhyaku/tree/main/src/assets/Kits/"
    click NewsImgs "https://github.com/nishit-luhadia30/internship-techhyaku/tree/main/src/assets/News/"
    click CollabImgs "https://github.com/nishit-luhadia30/internship-techhyaku/tree/main/src/assets/Collaborations/"
    click AboutImgs "https://github.com/nishit-luhadia30/internship-techhyaku/tree/main/src/assets/About/"
    click ContactImgs "https://github.com/nishit-luhadia30/internship-techhyaku/tree/main/src/assets/Contact/"

    %% Styles
    classDef workstation fill:#f9f,stroke:#333,stroke-width:1px
    classDef build fill:#ccc,stroke:#333,stroke-width:1px
    classDef runtime fill:#bbf,stroke:#333,stroke-width:1px
    classDef assets fill:#cfc,stroke:#333,stroke-width:1px
```
