# noraldase/mbaltope architecture

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

- Interactive diagram: https://gitdiagram.com/noraldase/mbaltope
- Repository: https://github.com/noraldase/mbaltope

## Overview

This repository appears to implement a browser-based top-up and QR-payment experience backed by a Kingshop order proxy. The intended flow is a user-facing storefront, an order request, and QR/payment or completion views; the serverless endpoint submits and polls the external proxy, then adapts its result for the frontend. The HTML and bundled frontend were not excerpted, so connections among their views are unverified. The graph preserves those product stages without asserting their internal routing.

Main entry points: [`assets/index-CsZS-EQt.js`](https://github.com/noraldase/mbaltope/blob/main/assets/index-CsZS-EQt.js) (Frontend bundle), [`index.html`](https://github.com/noraldase/mbaltope/blob/main/index.html) (Top-up storefront), [`api/kingshop-order.js`](https://github.com/noraldase/mbaltope/blob/main/api/kingshop-order.js) (Order endpoint), [`qris.html`](https://github.com/noraldase/mbaltope/blob/main/qris.html) (QR payment view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_storefront["Top-up storefront<br/>[index.html]"]
  node_frontend["Frontend bundle<br/>[index-CsZS-EQt.js]"]
  node_qris["QR payment view<br/>[qris.html]"]
  node_completion["Success view<br/>[success.html]"]
end

subgraph group_orders["Order processing"]
  node_order_endpoint["Order endpoint<br/>[kingshop-order.js]"]
  node_kingshop_proxy["Kingshop proxy"]
end

subgraph group_browser["Browser behavior"]
  node_inspect_guard["Inspect guard<br/>[disable.js]"]
end

node_user(("Customer"))

node_user -.->|"uses"| node_storefront
node_storefront -.->|"loads"| node_frontend
node_frontend -.->|"posts order"| node_order_endpoint
node_order_endpoint -->|"submits and polls"| node_kingshop_proxy
node_frontend -.->|"shows payment"| node_qris
node_frontend -.->|"shows result"| node_completion
node_storefront -.->|"loads"| node_inspect_guard

click node_storefront "https://github.com/noraldase/mbaltope/blob/main/index.html"
click node_frontend "https://github.com/noraldase/mbaltope/blob/main/assets/index-CsZS-EQt.js"
click node_qris "https://github.com/noraldase/mbaltope/blob/main/qris.html"
click node_completion "https://github.com/noraldase/mbaltope/blob/main/success.html"
click node_order_endpoint "https://github.com/noraldase/mbaltope/blob/main/api/kingshop-order.js"
click node_inspect_guard "https://github.com/noraldase/mbaltope/blob/main/js/disable.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_storefront,node_frontend,node_qris,node_completion toneBlue
class node_order_endpoint,node_kingshop_proxy toneAmber
class node_inspect_guard toneMint
class node_user toneIndigo
```

## Components

### Web experience

- [Top-up storefront](https://github.com/noraldase/mbaltope/blob/main/index.html): `index.html`
- [Frontend bundle](https://github.com/noraldase/mbaltope/blob/main/assets/index-CsZS-EQt.js): `assets/index-CsZS-EQt.js`
- [QR payment view](https://github.com/noraldase/mbaltope/blob/main/qris.html): `qris.html`
- [Success view](https://github.com/noraldase/mbaltope/blob/main/success.html): `success.html`

### Order processing

- [Order endpoint](https://github.com/noraldase/mbaltope/blob/main/api/kingshop-order.js): `api/kingshop-order.js`
- **Kingshop proxy**

### Browser behavior

- [Inspect guard](https://github.com/noraldase/mbaltope/blob/main/js/disable.js): `js/disable.js`

### Other components

- **Customer**

## Connections

- Customer → Top-up storefront: uses
- Top-up storefront → Frontend bundle: loads
- Frontend bundle → Order endpoint: posts order
- Order endpoint → Kingshop proxy: submits and polls (evidence: `api/kingshop-order.js`)
- Frontend bundle → QR payment view: shows payment
- Frontend bundle → Success view: shows result
- Top-up storefront → Inspect guard: loads
