# vingturbo/web-pages architecture

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

- Interactive diagram: https://gitdiagram.com/vingturbo/web-pages
- Repository: https://github.com/vingturbo/web-pages

## Overview

This repository is a static personal/community website, with a Cloudflare Worker that serves site assets and optionally proxies DNS-over-HTTPS requests. The README documents preview and deployment environments, but does not describe the site’s page-level workflows. The HTML pages and book collection indicate additional visitor-facing capabilities; their internal links and behavior are not established by the sampled source, so those connections are omitted.

Main entry points: [`_worker.js`](https://github.com/vingturbo/web-pages/blob/main/_worker.js) (Request router), [`index.html`](https://github.com/vingturbo/web-pages/blob/main/index.html) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_delivery["Site delivery"]
  node_worker["Request router<br/>[_worker.js]"]
  node_assets[("Static assets")]
end

subgraph group_visitor["Visitor pages"]
  node_home["Home page<br/>[index.html]"]
  node_pages["Articles"]
  node_links["Favorite links<br/>[favorites.html]"]
  node_redirect["Link redirector"]
end

subgraph group_resources["Downloads and books"]
  node_books["Book collection"]
  node_downloads["Download pages<br/>[file-download.html]"]
  node_osdownload["OS downloads<br/>[os-download.html]"]
  node_appdownload["App downloads<br/>[app-download.html]"]
  node_minecraft["Minecraft downloads"]
end

subgraph group_utilities["Web utilities"]
  node_performance["Performance tool"]
  node_qr["QR text tool<br/>[qr-text.html]"]
  node_packager["TurboWarp packager"]
  node_calendar["Chinese date library<br/>[chinese-date.mjs]"]
end

node_visitor(("Website visitor"))
node_doh["Cloudflare DNS"]

node_visitor -->|"requests"| node_worker
node_worker -->|"serves assets"| node_assets
node_worker -.->|"proxies valid DoH"| node_doh
node_visitor -->|"views"| node_home

click node_worker "https://github.com/vingturbo/web-pages/blob/main/_worker.js"
click node_home "https://github.com/vingturbo/web-pages/blob/main/index.html"
click node_pages "https://github.com/vingturbo/web-pages/tree/main/pages"
click node_links "https://github.com/vingturbo/web-pages/blob/main/favorites.html"
click node_redirect "https://github.com/vingturbo/web-pages/blob/main/Link-Redirector.html"
click node_books "https://github.com/vingturbo/web-pages/tree/main/books"
click node_downloads "https://github.com/vingturbo/web-pages/blob/main/file-download.html"
click node_osdownload "https://github.com/vingturbo/web-pages/blob/main/os-download.html"
click node_appdownload "https://github.com/vingturbo/web-pages/blob/main/app-download.html"
click node_minecraft "https://github.com/vingturbo/web-pages/blob/main/minecraft-server-download.html"
click node_performance "https://github.com/vingturbo/web-pages/blob/main/Performance-testing.html"
click node_qr "https://github.com/vingturbo/web-pages/blob/main/qr-text.html"
click node_packager "https://github.com/vingturbo/web-pages/blob/main/turbowarp-packager.html"
click node_calendar "https://github.com/vingturbo/web-pages/blob/main/src/chinese-date.mjs"

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_worker,node_assets toneBlue
class node_home,node_pages,node_links,node_redirect toneAmber
class node_books,node_downloads,node_osdownload,node_appdownload,node_minecraft toneMint
class node_performance,node_qr,node_packager,node_calendar toneRose
class node_visitor,node_doh toneIndigo
```

## Components

### Site delivery

- [Request router](https://github.com/vingturbo/web-pages/blob/main/_worker.js): `_worker.js`
- **Static assets**

### Visitor pages

- [Home page](https://github.com/vingturbo/web-pages/blob/main/index.html): `index.html`
- [Articles](https://github.com/vingturbo/web-pages/tree/main/pages): `pages`
- [Favorite links](https://github.com/vingturbo/web-pages/blob/main/favorites.html): `favorites.html`
- [Link redirector](https://github.com/vingturbo/web-pages/blob/main/Link-Redirector.html): `Link-Redirector.html`

### Downloads and books

- [Book collection](https://github.com/vingturbo/web-pages/tree/main/books): `books`
- [Download pages](https://github.com/vingturbo/web-pages/blob/main/file-download.html): `file-download.html`
- [OS downloads](https://github.com/vingturbo/web-pages/blob/main/os-download.html): `os-download.html`
- [App downloads](https://github.com/vingturbo/web-pages/blob/main/app-download.html): `app-download.html`
- [Minecraft downloads](https://github.com/vingturbo/web-pages/blob/main/minecraft-server-download.html): `minecraft-server-download.html`

### Web utilities

- [Performance tool](https://github.com/vingturbo/web-pages/blob/main/Performance-testing.html): `Performance-testing.html`
- [QR text tool](https://github.com/vingturbo/web-pages/blob/main/qr-text.html): `qr-text.html`
- [TurboWarp packager](https://github.com/vingturbo/web-pages/blob/main/turbowarp-packager.html): `turbowarp-packager.html`
- [Chinese date library](https://github.com/vingturbo/web-pages/blob/main/src/chinese-date.mjs): `src/chinese-date.mjs`

### Other components

- **Website visitor**
- **Cloudflare DNS**

## Connections

- Website visitor → Request router: requests
- Request router → Static assets: serves assets
- Request router → Cloudflare DNS: proxies valid DoH
- Website visitor → Home page: views
