# vochicuongg/xemayngocmuoi-official architecture

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

- Interactive diagram: https://gitdiagram.com/vochicuongg/xemayngocmuoi-official
- Repository: https://github.com/vochicuongg/xemayngocmuoi-official

## Overview

#### Purpose and Deployment Shape
This is a static Vietnamese tourism and motorbike-rental site for Xemay Ngọc Muối, with marketing pages, travel content, localization behavior, and SEO artifacts. Primary public entry points are `index.html`, `explore.html`, `services.html`, `blog.html`, `about.html`, and `contact.html`. It can be served as static hosting, with Cloudflare Worker logic available for edge handling.

#### Shared Site Shell
Reusable page chrome is separated into `header.html` and `footer.html`; page-level scripts likely load or compose these fragments. Global presentation is centralized in `css/style.css`, while site interactions and common client behavior live in `js/main.js`. This establishes a static-page architecture rather than a framework application.

#### Content and Navigation Pages
Top-level HTML pages represent the primary user journey: discover the rental business, explore destinations or activities, review services, read blog content, and contact the operator. `index.html`, `explore.html`, and `services.html` are the central acquisition/conversion surfaces; `contact.html` is the direct inquiry boundary.

#### Blog Publishing Pipeline
Blog content is pre-rendered as individual SEO-addressable HTML documents under `blog/`, with `blog.html` acting as the listing or hub. The repository includes a content-generation utility at `js/blog-parts/build_blog.py`, indicating authoring/build-time assembly rather than server-side rendering. Representative output paths include `blog/5-bi-quyet-vang-khi-thue-xe-may-tai-phan-thiet-mui-ne.html` and `blog/doi-cat-trang-bau-trang-trai-nghiem-xe-dia-hinh-atv-va-xe-jeep-cuc-dinh.html`.

#### Client Localization Layer
Translation-related client scripts are isolated in `js/blog-translations.js` and `js/translate-fix.js`. These form a browser-side localization/adaptation boundary, especially for blog pages, without evidence of a backend translation service. The site’s language-oriented media is organized under `assets/images/languages`.

#### Media and Visual Asset Boundary
Static media is grouped by business domain under `assets/images/`, including activities, foods, locations, products, and branding. Background video variants at `assets/images/background/background-dark.webm` and `assets/images/background/background-light.webm` support theme- or preference-specific visual presentation. Assets are delivered directly with the site rather than through an application media API.

#### Edge Runtime and Web Metadata
Two worker entry candidates exist: `_worker.js` and `cloudflare-worker/worker.js`, indicating Cloudflare Workers as the only explicit runtime/infrastructure integration. They likely provide routing, rewrites, or edge delivery behavior around otherwise static files. `manifest.json`, `robots.txt`, and `sitemap.xml` define installability and search-engine boundaries; the SERP JSON export is likely an external SEO/reporting artifact rather than runtime application data.

Main entry points: [`index.html`](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/index.html) (Marketing pages), [`blog/5-bi-quyet-vang-khi-thue-xe-may-tai-phan-thiet-mui-ne.html`](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/blog/5-bi-quyet-vang-khi-thue-xe-may-tai-phan-thiet-mui-ne.html) (Published blog articles), [`blog.html`](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/blog.html) (Blog hub), [`js/blog-translations.js`](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/js/blog-translations.js) (Blog localization)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public site"]
  node_entry_pages["Marketing pages<br/>static HTML<br/>[index.html]"]
  node_explore["Explore page<br/>static HTML<br/>[explore.html]"]
  node_services["Services page<br/>static HTML<br/>[services.html]"]
  node_contact["Contact page<br/>static HTML<br/>[contact.html]"]
  node_shared_shell["Shared header/footer<br/>HTML fragments<br/>[header.html]"]
  node_client_behavior["Site behavior<br/>browser JavaScript<br/>[main.js]"]
  node_global_styles["Global styles<br/>CSS<br/>[style.css]"]
end

subgraph group_content["Content publishing"]
  node_blog_hub["Blog hub<br/>static HTML<br/>[blog.html]"]
  node_blog_builder["Blog builder<br/>Python build utility<br/>[build_blog.py]"]
  node_blog_articles["Published blog articles<br/>static HTML"]
  node_localization["Blog localization<br/>browser JavaScript"]
end

subgraph group_edge["Edge delivery"]
  node_edge_workers{{"Cloudflare Workers<br/>edge runtime<br/>[_worker.js]"}}
  node_static_hosting["Static site delivery<br/>static hosting"]
end

subgraph group_assets["Static assets &amp; SEO"]
  node_media_assets["Domain media<br/>static assets"]
  node_background_video["Theme background video<br/>WebM assets"]
  node_web_metadata["Web metadata<br/>PWA and SEO files<br/>[manifest.json]"]
  node_crawler_metadata["Crawler directives<br/>SEO files<br/>[robots.txt]"]
end

node_visitor(("Site visitor<br/>user"))

node_visitor -->|"requests"| node_edge_workers
node_visitor -.->|"requests"| node_static_hosting
node_edge_workers -->|"serves or rewrites"| node_static_hosting
node_static_hosting -->|"delivers"| node_entry_pages
node_static_hosting -->|"delivers"| node_explore
node_static_hosting -->|"delivers"| node_services
node_static_hosting -->|"delivers"| node_contact
node_static_hosting -->|"delivers"| node_blog_hub
node_entry_pages -->|"uses"| node_shared_shell
node_entry_pages -->|"runs"| node_client_behavior
node_entry_pages -->|"styles"| node_global_styles
node_entry_pages -->|"loads"| node_media_assets
node_entry_pages -->|"loads"| node_background_video
node_blog_hub -->|"links to"| node_blog_articles
node_blog_builder -->|"generates"| node_blog_articles
node_blog_articles -->|"runs"| node_localization
node_localization -->|"uses language media"| node_media_assets
node_static_hosting -->|"publishes"| node_web_metadata
node_static_hosting -->|"publishes"| node_crawler_metadata

click node_entry_pages "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/index.html"
click node_explore "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/explore.html"
click node_services "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/services.html"
click node_contact "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/contact.html"
click node_shared_shell "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/header.html"
click node_client_behavior "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/js/main.js"
click node_global_styles "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/css/style.css"
click node_blog_hub "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/blog.html"
click node_blog_builder "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/js/blog-parts/build_blog.py"
click node_blog_articles "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/blog/5-bi-quyet-vang-khi-thue-xe-may-tai-phan-thiet-mui-ne.html"
click node_localization "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/js/blog-translations.js"
click node_edge_workers "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/_worker.js"
click node_media_assets "https://github.com/vochicuongg/xemayngocmuoi-official/tree/main/assets/images"
click node_background_video "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/assets/images/background/background-dark.webm"
click node_web_metadata "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/manifest.json"
click node_crawler_metadata "https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/robots.txt"

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_entry_pages,node_explore,node_services,node_contact,node_shared_shell,node_client_behavior,node_global_styles toneBlue
class node_blog_hub,node_blog_builder,node_blog_articles,node_localization toneAmber
class node_edge_workers,node_static_hosting toneMint
class node_media_assets,node_background_video,node_web_metadata,node_crawler_metadata toneRose
class node_visitor toneNeutral
```

## Components

### Public site

- [Marketing pages](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/index.html): static HTML · Primary discovery and conversion entry points. · `index.html`
- [Explore page](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/explore.html): static HTML · `explore.html`
- [Services page](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/services.html): static HTML · `services.html`
- [Contact page](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/contact.html): static HTML · Direct inquiry boundary. · `contact.html`
- [Shared header/footer](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/header.html): HTML fragments · Reusable page chrome. · `header.html`
- [Site behavior](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/js/main.js): browser JavaScript · Shared client interactions and fragment composition. · `js/main.js`
- [Global styles](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/css/style.css): CSS · `css/style.css`

### Content publishing

- [Blog hub](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/blog.html): static HTML · Listing and entry point for published articles. · `blog.html`
- [Blog builder](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/js/blog-parts/build_blog.py): Python build utility · Assembles pre-rendered blog content at build time. · `js/blog-parts/build_blog.py`
- [Published blog articles](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/blog/5-bi-quyet-vang-khi-thue-xe-may-tai-phan-thiet-mui-ne.html): static HTML · SEO-addressable pre-rendered posts. · `blog/5-bi-quyet-vang-khi-thue-xe-may-tai-phan-thiet-mui-ne.html`
- [Blog localization](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/js/blog-translations.js): browser JavaScript · Client-side translation and language adaptation. · `js/blog-translations.js`

### Edge delivery

- [Cloudflare Workers](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/_worker.js): edge runtime · Optional routing, rewrite, or delivery handling for static files. · `_worker.js`
- **Static site delivery**: static hosting

### Static assets & SEO

- [Domain media](https://github.com/vochicuongg/xemayngocmuoi-official/tree/main/assets/images): static assets · Images organized by business domain and language media. · `assets/images`
- [Theme background video](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/assets/images/background/background-dark.webm): WebM assets · Light and dark presentation variants. · `assets/images/background/background-dark.webm`
- [Web metadata](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/manifest.json): PWA and SEO files · Installability and crawler boundaries. · `manifest.json`
- [Crawler directives](https://github.com/vochicuongg/xemayngocmuoi-official/blob/main/robots.txt): SEO files · `robots.txt`

### Other components

- **Site visitor**: user

## Connections

- Site visitor → Cloudflare Workers: requests
- Site visitor → Static site delivery: requests
- Cloudflare Workers → Static site delivery: serves or rewrites
- Static site delivery → Marketing pages: delivers
- Static site delivery → Explore page: delivers
- Static site delivery → Services page: delivers
- Static site delivery → Contact page: delivers
- Static site delivery → Blog hub: delivers
- Marketing pages → Shared header/footer: uses
- Marketing pages → Site behavior: runs
- Marketing pages → Global styles: styles
- Marketing pages → Domain media: loads
- Marketing pages → Theme background video: loads
- Blog hub → Published blog articles: links to
- Blog builder → Published blog articles: generates
- Published blog articles → Blog localization: runs
- Blog localization → Domain media: uses language media
- Static site delivery → Web metadata: publishes
- Static site delivery → Crawler directives: publishes
