# cla1ve/mlbb-boost architecture

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

- Interactive diagram: https://gitdiagram.com/cla1ve/mlbb-boost
- Repository: https://github.com/cla1ve/mlbb-boost

## Overview

MLBB Boost is a bilingual static storefront for Mobile Legends: Bang Bang boosting services. Visitors can explore services and prices, calculate a boost, and reach an order page; the repository also publishes reviews and news, SEO content, and static Markdown copies. README documents data synchronization and generated site content. The optional Markdown Worker is explicitly not deployed on the current GitHub Pages host. Source excerpts are limited, so edges are included only where the excerpts or README establish the relationship.

Main entry points: [`scripts/site-build.mjs`](https://github.com/cla1ve/mlbb-boost/blob/main/scripts/site-build.mjs) (Site generation), [`index.html`](https://github.com/cla1ve/mlbb-boost/blob/main/index.html) (Home page), [`js/reviews.js`](https://github.com/cla1ve/mlbb-boost/blob/main/js/reviews.js) (Reviews), [`js/main.js`](https://github.com/cla1ve/mlbb-boost/blob/main/js/main.js) (Page initialization)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_home["Home page<br/>[index.html]"]
  node_calculator["Boost calculator<br/>[calculator.js]"]
  node_prices["Prices page<br/>[prices.js]"]
  node_order["Order page<br/>[order.js]"]
  node_reviews["Reviews<br/>[reviews.js]"]
end

subgraph group_content["Content and discovery"]
  node_news["News publishing<br/>[news-pipeline.mjs]"]
  node_sitegen["Site generation<br/>[site-build.mjs]"]
  node_pagecontent["Page content<br/>[seo-pages.json]"]
  node_translations["Translations<br/>[i18n-dict.js]"]
  node_markdown["Static Markdown"]
end

subgraph group_data["Public data"]
  node_publicapi["Public data API"]
  node_snapshot["Public data snapshot<br/>[public-data.json]"]
  node_reviewtext["Review text cleaner<br/>[review-text.js]"]
end

subgraph group_delivery["Offline and optional delivery"]
  node_serviceworker["Offline cache<br/>[service-worker.js]"]
  node_sitejs["Page initialization<br/>[main.js]"]
  node_worker["Markdown Worker<br/>[index.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"hosts"| node_calculator
node_visitor -->|"opens"| node_prices
node_visitor -->|"opens"| node_order
node_visitor -->|"opens"| node_reviews
node_reviews -->|"fetches reviews"| node_publicapi
node_publicapi -->|"syncs prices and reviews"| node_snapshot
node_publicapi -->|"cleans review text"| node_reviewtext
node_sitegen -->|"reads metadata"| node_pagecontent
node_sitegen -->|"builds language versions"| node_translations
node_sitegen -->|"generates copies"| node_markdown
node_visitor -->|"reads published news"| node_news
node_sitejs -->|"registers"| node_serviceworker
node_visitor -.->|"requests Markdown"| node_worker

click node_home "https://github.com/cla1ve/mlbb-boost/blob/main/index.html"
click node_calculator "https://github.com/cla1ve/mlbb-boost/blob/main/js/calculator.js"
click node_prices "https://github.com/cla1ve/mlbb-boost/blob/main/js/prices.js"
click node_order "https://github.com/cla1ve/mlbb-boost/blob/main/js/order.js"
click node_reviews "https://github.com/cla1ve/mlbb-boost/blob/main/js/reviews.js"
click node_news "https://github.com/cla1ve/mlbb-boost/blob/main/scripts/news-pipeline.mjs"
click node_sitegen "https://github.com/cla1ve/mlbb-boost/blob/main/scripts/site-build.mjs"
click node_pagecontent "https://github.com/cla1ve/mlbb-boost/blob/main/content/seo-pages.json"
click node_translations "https://github.com/cla1ve/mlbb-boost/blob/main/js/i18n-dict.js"
click node_markdown "https://github.com/cla1ve/mlbb-boost/tree/main/markdown"
click node_snapshot "https://github.com/cla1ve/mlbb-boost/blob/main/content/public-data.json"
click node_reviewtext "https://github.com/cla1ve/mlbb-boost/blob/main/js/review-text.js"
click node_serviceworker "https://github.com/cla1ve/mlbb-boost/blob/main/service-worker.js"
click node_sitejs "https://github.com/cla1ve/mlbb-boost/blob/main/js/main.js"
click node_worker "https://github.com/cla1ve/mlbb-boost/blob/main/src/index.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_calculator,node_prices,node_order,node_reviews toneBlue
class node_news,node_sitegen,node_pagecontent,node_translations,node_markdown toneAmber
class node_publicapi,node_snapshot,node_reviewtext toneMint
class node_serviceworker,node_sitejs,node_worker toneRose
class node_visitor toneIndigo
```

## Components

### Storefront

- [Home page](https://github.com/cla1ve/mlbb-boost/blob/main/index.html): `index.html`
- [Boost calculator](https://github.com/cla1ve/mlbb-boost/blob/main/js/calculator.js): `js/calculator.js`
- [Prices page](https://github.com/cla1ve/mlbb-boost/blob/main/js/prices.js): `js/prices.js`
- [Order page](https://github.com/cla1ve/mlbb-boost/blob/main/js/order.js): `js/order.js`
- [Reviews](https://github.com/cla1ve/mlbb-boost/blob/main/js/reviews.js): `js/reviews.js`

### Content and discovery

- [News publishing](https://github.com/cla1ve/mlbb-boost/blob/main/scripts/news-pipeline.mjs): `scripts/news-pipeline.mjs`
- [Site generation](https://github.com/cla1ve/mlbb-boost/blob/main/scripts/site-build.mjs): `scripts/site-build.mjs`
- [Page content](https://github.com/cla1ve/mlbb-boost/blob/main/content/seo-pages.json): `content/seo-pages.json`
- [Translations](https://github.com/cla1ve/mlbb-boost/blob/main/js/i18n-dict.js): `js/i18n-dict.js`
- [Static Markdown](https://github.com/cla1ve/mlbb-boost/tree/main/markdown): `markdown`

### Public data

- **Public data API**
- [Public data snapshot](https://github.com/cla1ve/mlbb-boost/blob/main/content/public-data.json): `content/public-data.json`
- [Review text cleaner](https://github.com/cla1ve/mlbb-boost/blob/main/js/review-text.js): `js/review-text.js`

### Offline and optional delivery

- [Offline cache](https://github.com/cla1ve/mlbb-boost/blob/main/service-worker.js): `service-worker.js`
- [Page initialization](https://github.com/cla1ve/mlbb-boost/blob/main/js/main.js): `js/main.js`
- [Markdown Worker](https://github.com/cla1ve/mlbb-boost/blob/main/src/index.js): `src/index.js`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens
- Home page → Boost calculator: hosts
- Visitor → Prices page: opens
- Visitor → Order page: opens
- Visitor → Reviews: opens
- Reviews → Public data API: fetches reviews (evidence: `js/reviews.js`)
- Public data API → Public data snapshot: syncs prices and reviews (evidence: `README.md`)
- Public data API → Review text cleaner: cleans review text
- Site generation → Page content: reads metadata (evidence: `scripts/site-build.mjs`)
- Site generation → Translations: builds language versions (evidence: `README.md`)
- Site generation → Static Markdown: generates copies (evidence: `README.md`)
- Visitor → News publishing: reads published news (evidence: `README.md`)
- Page initialization → Offline cache: registers (evidence: `js/main.js`)
- Visitor → Markdown Worker: requests Markdown (evidence: `README.md`)
