# githubtarohario/html_rensyu architecture

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

- Interactive diagram: https://gitdiagram.com/githubtarohario/html_rensyu
- Repository: https://github.com/githubtarohario/html_rensyu

## Overview

This is a browser-based Japanese HTML practice site. A learner selects a supplied exercise, edits its starter markup, runs it in a live preview, and can inspect the answer, save progress locally, or download the work. The visible runtime separates exercise data, application behavior, and lightweight syntax highlighting. The tree includes the page shell, but its markup was not provided, so UI wiring beyond the DOM elements referenced by the script is not inferred.

Main entry points: [`script.js`](https://github.com/githubtarohario/html_rensyu/blob/master/script.js) (Practice interface), [`problems.js`](https://github.com/githubtarohario/html_rensyu/blob/master/problems.js) (Exercise catalog), [`index.html`](https://github.com/githubtarohario/html_rensyu/blob/master/index.html) (HTML preview), [`highlight.js`](https://github.com/githubtarohario/html_rensyu/blob/master/highlight.js) (HTML highlighter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_practice["Practice runtime"]
  node_app["Practice interface<br/>[script.js]"]
  node_problems["Exercise catalog<br/>[problems.js]"]
  node_preview["HTML preview<br/>[index.html]"]
end

subgraph group_support["Practice support"]
  node_highlighter["HTML highlighter<br/>[highlight.js]"]
end

node_learner(("Learner"))
node_storage[("Browser local storage")]
node_file_download["Downloaded HTML"]

node_learner -->|"uses"| node_app
node_app -->|"reads exercises"| node_problems
node_app -->|"formats code"| node_highlighter
node_app -->|"sets srcdoc"| node_preview
node_app -->|"loads and saves"| node_storage
node_app -->|"downloads markup"| node_file_download

click node_app "https://github.com/githubtarohario/html_rensyu/blob/master/script.js"
click node_problems "https://github.com/githubtarohario/html_rensyu/blob/master/problems.js"
click node_preview "https://github.com/githubtarohario/html_rensyu/blob/master/index.html"
click node_highlighter "https://github.com/githubtarohario/html_rensyu/blob/master/highlight.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_app,node_problems,node_preview toneBlue
class node_highlighter,node_storage toneAmber
class node_learner,node_file_download toneIndigo
```

## Components

### Practice runtime

- [Practice interface](https://github.com/githubtarohario/html_rensyu/blob/master/script.js): `script.js`
- [Exercise catalog](https://github.com/githubtarohario/html_rensyu/blob/master/problems.js): `problems.js`
- [HTML preview](https://github.com/githubtarohario/html_rensyu/blob/master/index.html): `index.html`

### Practice support

- [HTML highlighter](https://github.com/githubtarohario/html_rensyu/blob/master/highlight.js): `highlight.js`

### Other components

- **Learner**
- **Browser local storage**
- **Downloaded HTML**

## Connections

- Learner → Practice interface: uses (evidence: `script.js`)
- Practice interface → Exercise catalog: reads exercises (evidence: `script.js`)
- Practice interface → HTML highlighter: formats code (evidence: `script.js`)
- Practice interface → HTML preview: sets srcdoc (evidence: `script.js`)
- Practice interface → Browser local storage: loads and saves (evidence: `script.js`)
- Practice interface → Downloaded HTML: downloads markup (evidence: `script.js`)
