# arifkhairul/portfolio-projectframe architecture

> Architecture diagram of the GitHub repository arifkhairul/portfolio-projectframe, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/arifkhairul/portfolio-projectframe
- Repository: https://github.com/arifkhairul/portfolio-projectframe

## Overview

This repository implements an interactive 3D project portfolio/map. The principal path is a visitor viewing the web experience, where the JavaScript runtime builds the Three.js scene and loads project models; shader files and Draco decoder assets support rendering and model loading. The sampled source confirms shader imports, GLTF model loading, and Draco configuration. The HTML and CSS are present, but their wiring to the runtime was not shown in the excerpts.

Main entry points: [`src/script.js`](https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/script.js) (Scene Runtime), [`src/index.html`](https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/index.html) (Page Markup), [`src/style.css`](https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/style.css) (Page Styles), [`src/shaders/portal/fragment.glsl`](https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/shaders/portal/fragment.glsl) (Portal Shaders)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Web Experience"]
  node_page["Page Markup<br/>[index.html]"]
  node_styles["Page Styles<br/>[style.css]"]
  node_runtime["Scene Runtime<br/>[script.js]"]
end

subgraph group_rendering["3D Rendering"]
  node_shader["Portal Shaders<br/>[fragment.glsl]"]
end

subgraph group_assets["Scene Assets"]
  node_models["Project Models"]
  node_draco["Draco Decoder"]
end

node_visitor(("Visitor"))

node_visitor -.->|"views"| node_page
node_page -.->|"starts"| node_runtime
node_page -.->|"uses"| node_styles
node_runtime -->|"imports"| node_shader
node_runtime -->|"loads"| node_models
node_runtime -->|"configures"| node_draco

click node_page "https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/index.html"
click node_styles "https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/style.css"
click node_runtime "https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/script.js"
click node_shader "https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/shaders/portal/fragment.glsl"
click node_models "https://github.com/arifkhairul/portfolio-projectframe/tree/main/static"
click node_draco "https://github.com/arifkhairul/portfolio-projectframe/tree/main/static/draco"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_page,node_styles,node_runtime toneBlue
class node_shader toneAmber
class node_models,node_draco toneMint
class node_visitor toneIndigo
```

## Components

### Web Experience

- [Page Markup](https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/index.html): `src/index.html`
- [Page Styles](https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/style.css): `src/style.css`
- [Scene Runtime](https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/script.js): `src/script.js`

### 3D Rendering

- [Portal Shaders](https://github.com/arifkhairul/portfolio-projectframe/blob/main/src/shaders/portal/fragment.glsl): `src/shaders/portal/fragment.glsl`

### Scene Assets

- [Project Models](https://github.com/arifkhairul/portfolio-projectframe/tree/main/static): `static`
- [Draco Decoder](https://github.com/arifkhairul/portfolio-projectframe/tree/main/static/draco): `static/draco`

### Other components

- **Visitor**

## Connections

- Visitor → Page Markup: views
- Page Markup → Scene Runtime: starts
- Page Markup → Page Styles: uses
- Scene Runtime → Portal Shaders: imports (evidence: `src/script.js`)
- Scene Runtime → Project Models: loads (evidence: `src/script.js`)
- Scene Runtime → Draco Decoder: configures (evidence: `src/script.js`)
