# shenalme/handloomsdotlk architecture

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

- Interactive diagram: https://gitdiagram.com/shenalme/handloomsdotlk
- Repository: https://github.com/shenalme/handloomsdotlk

## Overview

This is a static research archive about Sri Lankan handloom heritage, with a principal visitor workflow of exploring the archive and optionally loading its 3D twin, plus a separate perceptual-study module. The README documents lazy loading and the model location; no source excerpts were provided, so implementation-level relationships beyond those documented are not asserted.

Main entry points: [`index.html`](https://github.com/shenalme/handloomsdotlk/blob/main/index.html) (Heritage archive), [`assets/site.js`](https://github.com/shenalme/handloomsdotlk/blob/main/assets/site.js) (3D twin viewer), [`assets/models/handloom-01.glb`](https://github.com/shenalme/handloomsdotlk/blob/main/assets/models/handloom-01.glb) (Handloom model), [`study/index.html`](https://github.com/shenalme/handloomsdotlk/blob/main/study/index.html) (Perceptual study)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_archive["Research archive"]
  node_archive_content["Heritage archive<br/>[index.html]"]
  node_research_topics["Research topics<br/>[index.html]"]
end

subgraph group_interactive["Interactive modules"]
  node_twin_viewer["3D twin viewer<br/>[site.js]"]
  node_handloom_model["Handloom model<br/>[handloom-01.glb]"]
  node_perceptual_study["Perceptual study<br/>[index.html]"]
end

node_visitor(("Visitor"))

node_visitor -->|"explores"| node_archive_content
node_visitor -->|"clicks to load"| node_twin_viewer
node_twin_viewer -->|"downloads on demand"| node_handloom_model
node_visitor -->|"opens"| node_perceptual_study
node_archive_content -->|"presents"| node_research_topics

click node_archive_content "https://github.com/shenalme/handloomsdotlk/blob/main/index.html"
click node_research_topics "https://github.com/shenalme/handloomsdotlk/blob/main/index.html"
click node_twin_viewer "https://github.com/shenalme/handloomsdotlk/blob/main/assets/site.js"
click node_handloom_model "https://github.com/shenalme/handloomsdotlk/blob/main/assets/models/handloom-01.glb"
click node_perceptual_study "https://github.com/shenalme/handloomsdotlk/blob/main/study/index.html"

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_archive_content,node_research_topics toneBlue
class node_twin_viewer,node_handloom_model,node_perceptual_study toneAmber
class node_visitor toneIndigo
```

## Components

### Research archive

- [Heritage archive](https://github.com/shenalme/handloomsdotlk/blob/main/index.html): `index.html`
- [Research topics](https://github.com/shenalme/handloomsdotlk/blob/main/index.html): `index.html`

### Interactive modules

- [3D twin viewer](https://github.com/shenalme/handloomsdotlk/blob/main/assets/site.js): `assets/site.js`
- [Handloom model](https://github.com/shenalme/handloomsdotlk/blob/main/assets/models/handloom-01.glb): `assets/models/handloom-01.glb`
- [Perceptual study](https://github.com/shenalme/handloomsdotlk/blob/main/study/index.html): `study/index.html`

### Other components

- **Visitor**

## Connections

- Visitor → Heritage archive: explores (evidence: `README.md`)
- Visitor → 3D twin viewer: clicks to load (evidence: `README.md`)
- 3D twin viewer → Handloom model: downloads on demand (evidence: `README.md`)
- Visitor → Perceptual study: opens (evidence: `README.md`)
- Heritage archive → Research topics: presents (evidence: `README.md`)
