# shahnawazyasser/lunaro-digital architecture

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

- Interactive diagram: https://gitdiagram.com/shahnawazyasser/lunaro-digital
- Repository: https://github.com/shahnawazyasser/lunaro-digital

## Overview

##### Project type and purpose
- This is a mono-repo containing two front-end React applications:
a. The root “Lunaro-Digital” site (built with Vite, React, TypeScript, Tailwind CSS)
b. A “filestorage” sub-application (created with Create-React-App, React, JavaScript)
- Purpose: provide a static marketing/portfolio site (“Lunaro-Digital”) and a standalone file-storage demo or tool under the same repo.

##### File structure
- Top-level files & folders:
- index.html, package.json, vite.config.ts, tsconfig*.json, tailwind.config.js, eslint.config.js → configuration for the root Vite/TS/Tailwind React app
- src/ (root) → main.tsx, App.tsx, components, assets: implementation of the primary SPA
- filestorage/ → standalone CRA project (public/, src/, package.json)
- No backend code is present: both apps are purely front-end SPAs producing static bundles.

##### README for additional insights
- README.md only states “# Lunaro-Digital” with no further architectural notes.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Nodes
    Browser["Client Browser"]:::client
    CDN["CDN / Static File Hosting"]:::infra

    %% Root SPA Subgraph
    subgraph "Lunaro-Digital SPA (Vite/React/TypeScript/Tailwind)"
        direction TB
        RD_HTML["index.html"]:::rootApp
        RD_PKG["package.json"]:::rootApp
        RD_VITE["vite.config.ts"]:::rootApp
        RD_TAILWIND["tailwind.config.js"]:::rootApp
        RD_POSTCSS["postcss.config.js"]:::rootApp
        RD_TSCONFIG["tsconfig*.json"]:::rootApp
        RD_SRC_MAIN["src/main.tsx"]:::rootApp
        RD_SRC_APP["src/App.tsx"]:::rootApp
        RD_SRC_CSS["src/index.css"]:::rootApp
        RD_VITE_ENV["src/vite-env.d.ts"]:::rootApp
        RD_COMPONENTS["src/components/"]:::rootApp
        RD_ASSETS["src/assets/"]:::rootApp
    end

    %% FileStorage SPA Subgraph
    subgraph "filestorage SPA (CRA/React/JavaScript)"
        direction TB
        FS_PKG["filestorage/package.json"]:::filestApp
        FS_GITIGNORE["filestorage/.gitignore"]:::filestApp
        FS_README["filestorage/README.md"]:::filestApp
        FS_PUBLIC_HTML["filestorage/public/index.html"]:::filestApp
        FS_MANIFEST["filestorage/public/manifest.json"]:::filestApp
        FS_ROBOTS["filestorage/public/robots.txt"]:::filestApp
        FS_SRC_INDEX["filestorage/src/index.js"]:::filestApp
        FS_SRC_APP["filestorage/src/App.js"]:::filestApp
        FS_SRC_CSS["filestorage/src/index.css"]:::filestApp
        FS_APP_CSS["filestorage/src/App.css"]:::filestApp
        FS_TEST["filestorage/src/App.test.js"]:::filestApp
        FS_REPORT["filestorage/src/reportWebVitals.js"]:::filestApp
        FS_SETUP["filestorage/src/setupTests.js"]:::filestApp
    end

    %% Shared Assets
    SharedAssets1["Shared Assets\n(src/assets/)"]:::infra
    SharedAssets2["Shared Assets\n(filestorage/public/)"]:::infra

    %% Connections
    Browser -->|"HTTP GET /, /filestorage"| CDN
    CDN -->|"Serves index.html and bundles"| Browser
    CDN -->|"Serves root SPA files"| RD_HTML
    CDN -->|"Serves filestorage files"| FS_PUBLIC_HTML
    Browser -->|"Downloads JS/CSS for root"| RD_SRC_MAIN
    Browser -->|"Downloads JS/CSS for filestorage"| FS_SRC_INDEX
    RD_ASSETS -->|"Shared static files"| SharedAssets1
    FS_MANIFEST -->|"Shared static files"| SharedAssets2

    %% Click Events
    click RD_HTML "https://github.com/shahnawazyasser/lunaro-digital/blob/main/index.html"
    click RD_PKG "https://github.com/shahnawazyasser/lunaro-digital/blob/main/package.json"
    click RD_VITE "https://github.com/shahnawazyasser/lunaro-digital/blob/main/vite.config.ts"
    click RD_TAILWIND "https://github.com/shahnawazyasser/lunaro-digital/blob/main/tailwind.config.js"
    click RD_POSTCSS "https://github.com/shahnawazyasser/lunaro-digital/blob/main/postcss.config.js"
    click RD_TSCONFIG "https://github.com/shahnawazyasser/lunaro-digital/blob/main/tsconfig.json"
    click RD_TSCONFIG "https://github.com/shahnawazyasser/lunaro-digital/blob/main/tsconfig.app.json"
    click RD_TSCONFIG "https://github.com/shahnawazyasser/lunaro-digital/blob/main/tsconfig.node.json"
    click RD_SRC_MAIN "https://github.com/shahnawazyasser/lunaro-digital/blob/main/src/main.tsx"
    click RD_SRC_APP "https://github.com/shahnawazyasser/lunaro-digital/blob/main/src/App.tsx"
    click RD_SRC_CSS "https://github.com/shahnawazyasser/lunaro-digital/blob/main/src/index.css"
    click RD_VITE_ENV "https://github.com/shahnawazyasser/lunaro-digital/blob/main/src/vite-env.d.ts"
    click RD_COMPONENTS "https://github.com/shahnawazyasser/lunaro-digital/tree/main/src/components/"
    click RD_ASSETS "https://github.com/shahnawazyasser/lunaro-digital/tree/main/src/assets/"
    click FS_PKG "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/package.json"
    click FS_GITIGNORE "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/.gitignore"
    click FS_README "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/README.md"
    click FS_PUBLIC_HTML "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/public/index.html"
    click FS_MANIFEST "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/public/manifest.json"
    click FS_ROBOTS "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/public/robots.txt"
    click FS_SRC_INDEX "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/src/index.js"
    click FS_SRC_APP "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/src/App.js"
    click FS_SRC_CSS "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/src/index.css"
    click FS_APP_CSS "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/src/App.css"
    click FS_TEST "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/src/App.test.js"
    click FS_REPORT "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/src/reportWebVitals.js"
    click FS_SETUP "https://github.com/shahnawazyasser/lunaro-digital/blob/main/filestorage/src/setupTests.js"

    %% Styles
    classDef rootApp fill:#D6EAF8,stroke:#31708E,color:#0B2948
    classDef filestApp fill:#FADBD8,stroke:#C0392B,color:#641E16
    classDef infra fill:#D5DBDB,stroke:#2C3E50,color:#1C2833
    classDef client fill:#FCF3CF,stroke:#B7950B,color:#7D6608
```
