# omega2sil/cubus-world architecture

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

- Interactive diagram: https://gitdiagram.com/omega2sil/cubus-world
- Repository: https://github.com/omega2sil/cubus-world

## Overview

Cubus World is a static website. Its visible runtime includes a general landing page, a play page with a server-address copy action, a nations page, and three named nation pages; the animation engine supplies confetti effects to those profile pages. The README gives no further product workflow or capabilities, and the HTML files were not sampled, so page-to-script loading relationships are not asserted.

Main entry points: [`moteur-js.js`](https://github.com/omega2sil/cubus-world/blob/main/moteur-js.js) (Canvas animation engine), [`play.js`](https://github.com/omega2sil/cubus-world/blob/main/play.js) (Copy server address), [`fosterien.js`](https://github.com/omega2sil/cubus-world/blob/main/fosterien.js) (Fosterien effects), [`lovixien.js`](https://github.com/omega2sil/cubus-world/blob/main/lovixien.js) (Lovixien effects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website pages"]
  node_home["Landing page<br/>[index.html]"]
  node_play["Play page<br/>[play.html]"]
  node_nations["Nations page<br/>[nations.html]"]
  node_fosterien["Fosterien page<br/>[fosterien.html]"]
  node_lovixien["Lovixien page<br/>[lovixien.html]"]
  node_rsh["RSH page<br/>[rsh.html]"]
end

subgraph group_interactions["Page interactions"]
  node_site_ui["Landing interactions<br/>[script.js]"]
  node_play_action["Copy server address<br/>[play.js]"]
  node_nation_cards["Nation card links<br/>[nations.js]"]
end

subgraph group_effects["Animation effects"]
  node_fosterien_fx["Fosterien effects<br/>[fosterien.js]"]
  node_lovixien_fx["Lovixien effects<br/>[lovixien.js]"]
  node_rsh_fx["RSH effects<br/>[rsh.js]"]
  node_animation_engine["Canvas animation engine<br/>[moteur-js.js]"]
end

node_visitor(("Visitor"))
node_browser_clipboard["Browser clipboard"]

node_visitor -->|"visits"| node_home
node_visitor -->|"visits"| node_play
node_visitor -->|"visits"| node_nations
node_visitor -->|"visits"| node_fosterien
node_visitor -->|"visits"| node_lovixien
node_visitor -->|"visits"| node_rsh
node_visitor -->|"uses"| node_site_ui
node_visitor -->|"clicks"| node_play_action
node_play_action -->|"writes address"| node_browser_clipboard
node_visitor -->|"clicks"| node_nation_cards
node_fosterien_fx -->|"calls confetti"| node_animation_engine
node_lovixien_fx -->|"calls confetti"| node_animation_engine
node_rsh_fx -->|"calls confetti"| node_animation_engine

click node_home "https://github.com/omega2sil/cubus-world/blob/main/index.html"
click node_play "https://github.com/omega2sil/cubus-world/blob/main/play.html"
click node_nations "https://github.com/omega2sil/cubus-world/blob/main/nations.html"
click node_fosterien "https://github.com/omega2sil/cubus-world/blob/main/fosterien.html"
click node_lovixien "https://github.com/omega2sil/cubus-world/blob/main/lovixien.html"
click node_rsh "https://github.com/omega2sil/cubus-world/blob/main/rsh.html"
click node_site_ui "https://github.com/omega2sil/cubus-world/blob/main/script.js"
click node_play_action "https://github.com/omega2sil/cubus-world/blob/main/play.js"
click node_nation_cards "https://github.com/omega2sil/cubus-world/blob/main/nations.js"
click node_fosterien_fx "https://github.com/omega2sil/cubus-world/blob/main/fosterien.js"
click node_lovixien_fx "https://github.com/omega2sil/cubus-world/blob/main/lovixien.js"
click node_rsh_fx "https://github.com/omega2sil/cubus-world/blob/main/rsh.js"
click node_animation_engine "https://github.com/omega2sil/cubus-world/blob/main/moteur-js.js"

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_home,node_play,node_nations,node_fosterien,node_lovixien,node_rsh,node_browser_clipboard toneBlue
class node_site_ui,node_play_action,node_nation_cards toneAmber
class node_fosterien_fx,node_lovixien_fx,node_rsh_fx,node_animation_engine toneMint
class node_visitor toneIndigo
```

## Components

### Website pages

- [Landing page](https://github.com/omega2sil/cubus-world/blob/main/index.html): `index.html`
- [Play page](https://github.com/omega2sil/cubus-world/blob/main/play.html): `play.html`
- [Nations page](https://github.com/omega2sil/cubus-world/blob/main/nations.html): `nations.html`
- [Fosterien page](https://github.com/omega2sil/cubus-world/blob/main/fosterien.html): `fosterien.html`
- [Lovixien page](https://github.com/omega2sil/cubus-world/blob/main/lovixien.html): `lovixien.html`
- [RSH page](https://github.com/omega2sil/cubus-world/blob/main/rsh.html): `rsh.html`

### Page interactions

- [Landing interactions](https://github.com/omega2sil/cubus-world/blob/main/script.js): `script.js`
- [Copy server address](https://github.com/omega2sil/cubus-world/blob/main/play.js): `play.js`
- [Nation card links](https://github.com/omega2sil/cubus-world/blob/main/nations.js): `nations.js`

### Animation effects

- [Fosterien effects](https://github.com/omega2sil/cubus-world/blob/main/fosterien.js): `fosterien.js`
- [Lovixien effects](https://github.com/omega2sil/cubus-world/blob/main/lovixien.js): `lovixien.js`
- [RSH effects](https://github.com/omega2sil/cubus-world/blob/main/rsh.js): `rsh.js`
- [Canvas animation engine](https://github.com/omega2sil/cubus-world/blob/main/moteur-js.js): `moteur-js.js`

### Other components

- **Visitor**
- **Browser clipboard**

## Connections

- Visitor → Landing page: visits (evidence: `README.md`)
- Visitor → Play page: visits (evidence: `README.md`)
- Visitor → Nations page: visits (evidence: `README.md`)
- Visitor → Fosterien page: visits (evidence: `README.md`)
- Visitor → Lovixien page: visits (evidence: `README.md`)
- Visitor → RSH page: visits (evidence: `README.md`)
- Visitor → Landing interactions: uses (evidence: `script.js`)
- Visitor → Copy server address: clicks (evidence: `play.js`)
- Copy server address → Browser clipboard: writes address (evidence: `play.js`)
- Visitor → Nation card links: clicks (evidence: `nations.js`)
- Fosterien effects → Canvas animation engine: calls confetti (evidence: `fosterien.js`)
- Lovixien effects → Canvas animation engine: calls confetti (evidence: `lovixien.js`)
- RSH effects → Canvas animation engine: calls confetti (evidence: `rsh.js`)
