# leoyen0404/web architecture

> Architecture diagram of the GitHub repository leoyen0404/web, 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/leoyen0404/web
- Repository: https://github.com/leoyen0404/web

## Overview

This repository is a personal website that hosts a collection of independent pages and browser-based projects, rather than one integrated application. The main user workflow is visiting the site and opening a page or mini-app; the README does not document specific navigation paths, so those links are not inferred here. Sampled code reveals several standalone applications, including a language IDE/interpreter, a 3D cube experience, English-learning pages, and a click-speed test. The graph preserves those branches and shows only relationships visible in the README or sampled source; many page implementations were not sampled.

Main entry points: [`english/main.js`](https://github.com/leoyen0404/web/blob/main/english/main.js) (English learning), [`cupcakke/cli.js`](https://github.com/leoyen0404/web/blob/main/cupcakke/cli.js) (Command-line runner), [`note/English/main.js`](https://github.com/leoyen0404/web/blob/main/note/English/main.js) (Personal notes and vocabulary), [`index.html`](https://github.com/leoyen0404/web/blob/main/index.html) (Personal site)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Personal website"]
  node_home["Personal site<br/>[index.html]"]
end

subgraph group_language["CupcakKeScript"]
  node_ide["Browser IDE<br/>[app.js]"]
  node_interpreter["Language interpreter<br/>[interpreter.js]"]
  node_cli["Command-line runner<br/>[cli.js]"]
  node_examples["Language examples<br/>[main.cupcakke]"]
end

subgraph group_learning["Learning tools"]
  node_english["English learning<br/>[main.js]"]
  node_english_notes["English notes data<br/>[notes.json]"]
  node_english_vocab["English vocabulary data<br/>[vocab.json]"]
  node_personal_notes["Personal notes and vocabulary<br/>[main.js]"]
  node_notes_store[("Browser local storage")]
  node_morse_guide["Morse project guide<br/>[cheatsheet-data.js]"]
end

subgraph group_games["Games and demos"]
  node_cube["3D cube experience<br/>[script.js]"]
  node_lavaice_bot["Game strategy bot<br/>[bot.js]"]
  node_cps["Click-speed test<br/>[script.js]"]
  node_cps_history["Click-test history<br/>[history.js]"]
  node_mood["Mood demo<br/>[script.js]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"visits"| node_home
node_cli -->|"uses"| node_interpreter
node_english -->|"fetches"| node_english_notes
node_english -->|"fetches"| node_english_vocab
node_personal_notes -->|"reads and writes"| node_notes_store

click node_home "https://github.com/leoyen0404/web/blob/main/index.html"
click node_ide "https://github.com/leoyen0404/web/blob/main/cupcakke/app.js"
click node_interpreter "https://github.com/leoyen0404/web/blob/main/cupcakke/interpreter.js"
click node_cli "https://github.com/leoyen0404/web/blob/main/cupcakke/cli.js"
click node_examples "https://github.com/leoyen0404/web/blob/main/cupcakke/main.cupcakke"
click node_english "https://github.com/leoyen0404/web/blob/main/english/main.js"
click node_english_notes "https://github.com/leoyen0404/web/blob/main/english/notes.json"
click node_english_vocab "https://github.com/leoyen0404/web/blob/main/english/vocab.json"
click node_personal_notes "https://github.com/leoyen0404/web/blob/main/note/English/main.js"
click node_morse_guide "https://github.com/leoyen0404/web/blob/main/wed/cheatsheet-data.js"
click node_cube "https://github.com/leoyen0404/web/blob/main/cube/script.js"
click node_lavaice_bot "https://github.com/leoyen0404/web/blob/main/lavaice/bot.js"
click node_cps "https://github.com/leoyen0404/web/blob/main/cps/script.js"
click node_cps_history "https://github.com/leoyen0404/web/blob/main/cps/history.js"
click node_mood "https://github.com/leoyen0404/web/blob/main/Tue/script.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 toneBlue
class node_ide,node_interpreter,node_cli,node_examples toneAmber
class node_english,node_english_notes,node_english_vocab,node_personal_notes,node_notes_store,node_morse_guide toneMint
class node_cube,node_lavaice_bot,node_cps,node_cps_history,node_mood toneRose
class node_visitor toneIndigo
```

## Components

### Personal website

- [Personal site](https://github.com/leoyen0404/web/blob/main/index.html): `index.html`

### CupcakKeScript

- [Browser IDE](https://github.com/leoyen0404/web/blob/main/cupcakke/app.js): `cupcakke/app.js`
- [Language interpreter](https://github.com/leoyen0404/web/blob/main/cupcakke/interpreter.js): `cupcakke/interpreter.js`
- [Command-line runner](https://github.com/leoyen0404/web/blob/main/cupcakke/cli.js): `cupcakke/cli.js`
- [Language examples](https://github.com/leoyen0404/web/blob/main/cupcakke/main.cupcakke): `cupcakke/main.cupcakke`

### Learning tools

- [English learning](https://github.com/leoyen0404/web/blob/main/english/main.js): `english/main.js`
- [English notes data](https://github.com/leoyen0404/web/blob/main/english/notes.json): `english/notes.json`
- [English vocabulary data](https://github.com/leoyen0404/web/blob/main/english/vocab.json): `english/vocab.json`
- [Personal notes and vocabulary](https://github.com/leoyen0404/web/blob/main/note/English/main.js): `note/English/main.js`
- **Browser local storage**
- [Morse project guide](https://github.com/leoyen0404/web/blob/main/wed/cheatsheet-data.js): `wed/cheatsheet-data.js`

### Games and demos

- [3D cube experience](https://github.com/leoyen0404/web/blob/main/cube/script.js): `cube/script.js`
- [Game strategy bot](https://github.com/leoyen0404/web/blob/main/lavaice/bot.js): `lavaice/bot.js`
- [Click-speed test](https://github.com/leoyen0404/web/blob/main/cps/script.js): `cps/script.js`
- [Click-test history](https://github.com/leoyen0404/web/blob/main/cps/history.js): `cps/history.js`
- [Mood demo](https://github.com/leoyen0404/web/blob/main/Tue/script.js): `Tue/script.js`

### Other components

- **Site visitor**

## Connections

- Site visitor → Personal site: visits (evidence: `README.md`)
- Command-line runner → Language interpreter: uses (evidence: `cupcakke/cli.js`)
- English learning → English notes data: fetches (evidence: `english/main.js`)
- English learning → English vocabulary data: fetches (evidence: `english/main.js`)
- Personal notes and vocabulary → Browser local storage: reads and writes (evidence: `note/English/main.js`)
