# gabelloide/gaussian-splatting-showcase architecture

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

- Interactive diagram: https://gitdiagram.com/gabelloide/gaussian-splatting-showcase
- Repository: https://github.com/gabelloide/gaussian-splatting-showcase

## Overview

##### Project Type & Purpose
- The README (“# gaussian-splatting-showcase”) and file structure indicate that this is a static (or client-side) showcase website.
- The purpose is likely to present interactive or visually appealing content (e.g., 3D model viewers and interactive demonstrations) centered around the “gaussian splatting” concept.
- There is no obvious backend service present—the project is structured as static HTML/CSS/JS files making it easy to host on a static server or CDN.

##### Analyzing the File Structure
- Top-Level Files:
– index.html: The entry point.
– README.md and .gitattributes: Project documentation and configuration.
- Top-Level Directories:
– assets: Contains all static resources.
- fonts: Custom fonts (GlacialIndifference-*).
- images: Likely used for backgrounds, thumbnails, or design accents.
- js: Contains JavaScript files (e.g., fetch_file_sizes.js and fetch_navbar.js) that likely manage dynamic behaviors such as loading file sizes or fetching navbar content.
- models: Contains individual viewer files (e.g., BmwConceptB-viewer.html, Cadillac-viewer.html, etc.) that display different 3D or interactive models.
– components:
- navbar.html: Likely a common navigation bar template, possibly injected into multiple pages.
– pages:
- about.html and collection.html: Additional pages providing content about the project and its showcased items.
- Notable Patterns:
– Clear separation of concerns: assets (static resources), components (reusable HTML parts), and pages (content pages).
– Use of a modular structure to segregate styles, scripts, and media content.
– This indicates a design focused on simplicity and clarity typical for static front-end projects.

a. Main Components of the System:
- Entry Point: index.html — the landing page.
- Navigation Component: components/navbar.html — included in the main pages.
- Content Pages: pages/about.html and pages/collection.html — representing different sections of the showcase.
- Asset Groups:
– JavaScript (assets/js – includes dynamic behavior scripts)
– Media & Resources:
- Fonts (assets/fonts)
- Images (assets/images)
- Models (assets/models – each viewer file represents a model presentation)
b. Relationships and Interactions Between Components:
- index.html and the pages reference and include the navbar from components.
- All HTML files reference assets for styling (CSS) and behavior (JS).
- The JavaScript files may dynamically interact with page elements (e.g., fetching file sizes or loading parts of the navbar).
- Models viewer HTML files are self-contained showcases likely embedded as interactive components in the website.
c. Key Architectural Patterns and Design Principles:
- Separation of concerns: Dividing HTML (structure), CSS (styling), and JavaScript (behavior) across the project.
- Reusability: The presence of a dedicated component for the navbar suggests templating for shared UI elements.
- Progressive enhancement: Inclusion of both desktop and mobile style files indicates responsiveness.
d. Technologies, Frameworks, or Libraries:
- Pure HTML/CSS/JS (no mention of external frameworks).
- Custom fonts and locally stored assets suggest an emphasis on design customization.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Pages Subgraph
    subgraph "Pages"
        A["Main Page (index.html)"]:::page
        B["Navigation Component (navbar.html)"]:::component
        C["About Page"]:::page
        D["Collection Page"]:::page
    end

    %% Assets Subgraph
    subgraph "Assets"
        E["JavaScript: fetch_file_sizes.js"]:::js
        F["JavaScript: fetch_navbar.js"]:::js
        G["CSS: style.css"]:::css
        H["CSS: desktop.css"]:::css
        I["CSS: mobile.css"]:::css
        J["CSS: Icon Styling"]:::css
        K["Fonts"]:::asset
        L["Images"]:::asset
        M["Models"]:::asset
    end

    %% Connections among Pages
    A -->|"includes"| B
    A -->|"links"| C
    A -->|"links"| D

    %% Connections from Main Page to Assets
    A -->|"loads"| E
    A -->|"loads"| F
    A -->|"applies"| G
    A -->|"applies"| H
    A -->|"applies"| I
    A -->|"includes"| J
    A -->|"uses"| K
    A -->|"displays"| L
    A -->|"displays"| M

    %% Styling Classes
    classDef page fill:#E0F7FA,stroke:#00695C,stroke-width:2px;
    classDef component fill:#FFECB3,stroke:#F57F17,stroke-width:2px;
    classDef js fill:#E1BEE7,stroke:#8E24AA,stroke-width:2px;
    classDef css fill:#C8E6C9,stroke:#2E7D32,stroke-width:2px;
    classDef asset fill:#BBDEFB,stroke:#1976D2,stroke-width:2px;

    %% Click Events
    click A "https://github.com/gabelloide/gaussian-splatting-showcase/blob/main/index.html"
    click B "https://github.com/gabelloide/gaussian-splatting-showcase/blob/main/components/navbar.html"
    click C "https://github.com/gabelloide/gaussian-splatting-showcase/blob/main/pages/about.html"
    click D "https://github.com/gabelloide/gaussian-splatting-showcase/blob/main/pages/collection.html"
    click E "https://github.com/gabelloide/gaussian-splatting-showcase/blob/main/assets/js/fetch_file_sizes.js"
    click F "https://github.com/gabelloide/gaussian-splatting-showcase/blob/main/assets/js/fetch_navbar.js"
    click G "https://github.com/gabelloide/gaussian-splatting-showcase/blob/main/assets/styles/style.css"
    click H "https://github.com/gabelloide/gaussian-splatting-showcase/blob/main/assets/styles/desktop.css"
    click I "https://github.com/gabelloide/gaussian-splatting-showcase/blob/main/assets/styles/mobile.css"
    click J "https://github.com/gabelloide/gaussian-splatting-showcase/tree/main/assets/styles/icons"
    click K "https://github.com/gabelloide/gaussian-splatting-showcase/tree/main/assets/fonts"
    click L "https://github.com/gabelloide/gaussian-splatting-showcase/tree/main/assets/images"
    click M "https://github.com/gabelloide/gaussian-splatting-showcase/tree/main/assets/models"
```
