# alphino255-netizen/withdraw architecture

> Architecture diagram of the GitHub repository alphino255-netizen/withdraw, 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/alphino255-netizen/withdraw
- Repository: https://github.com/alphino255-netizen/withdraw

## Overview

This appears to be a small QRIS/payment-oriented website with a photo-submission backend. The visible backend accepts a POST upload, extracts a photo and caption, and forwards the photo to Telegram. HTML filenames suggest payment, detail, and success pages, but their contents were not provided, so their behavior and connections to the backend cannot be verified.

Main entry points: [`api/bongkar.js`](https://github.com/alphino255-netizen/withdraw/blob/main/api/bongkar.js) (Photo upload handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website pages"]
  node_home["Home page<br/>[index.html]"]
  node_qris["QRIS page<br/>[qris.html]"]
  node_detail["Detail pages<br/>[detail.html]"]
  node_detailv2["Detail v2<br/>[detailv2.html]"]
  node_success["Success pages<br/>[success.html]"]
  node_successv2["Success v2<br/>[successv2.html]"]
end

subgraph group_backend["Upload backend"]
  node_upload["Photo upload handler<br/>[bongkar.js]"]
  node_formidable["Multipart parser<br/>[bongkar.js]"]
  node_tempfile["Uploaded photo file<br/>[bongkar.js]"]
end

node_visitor(("Visitor"))
node_telegram["Telegram Bot API"]

node_visitor -->|"POSTs photo"| node_upload
node_upload -->|"parses upload"| node_formidable
node_upload -->|"reads photo"| node_tempfile
node_upload -->|"sends photo"| node_telegram

click node_home "https://github.com/alphino255-netizen/withdraw/blob/main/index.html"
click node_qris "https://github.com/alphino255-netizen/withdraw/blob/main/qris.html"
click node_detail "https://github.com/alphino255-netizen/withdraw/blob/main/detail.html"
click node_detailv2 "https://github.com/alphino255-netizen/withdraw/blob/main/detailv2.html"
click node_success "https://github.com/alphino255-netizen/withdraw/blob/main/success.html"
click node_successv2 "https://github.com/alphino255-netizen/withdraw/blob/main/successv2.html"
click node_upload "https://github.com/alphino255-netizen/withdraw/blob/main/api/bongkar.js"
click node_formidable "https://github.com/alphino255-netizen/withdraw/blob/main/api/bongkar.js"
click node_tempfile "https://github.com/alphino255-netizen/withdraw/blob/main/api/bongkar.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_qris,node_detail,node_detailv2,node_success,node_successv2 toneBlue
class node_upload,node_formidable,node_tempfile toneAmber
class node_visitor toneIndigo
class node_telegram toneMint
```

## Components

### Website pages

- [Home page](https://github.com/alphino255-netizen/withdraw/blob/main/index.html): `index.html`
- [QRIS page](https://github.com/alphino255-netizen/withdraw/blob/main/qris.html): `qris.html`
- [Detail pages](https://github.com/alphino255-netizen/withdraw/blob/main/detail.html): `detail.html`
- [Detail v2](https://github.com/alphino255-netizen/withdraw/blob/main/detailv2.html): `detailv2.html`
- [Success pages](https://github.com/alphino255-netizen/withdraw/blob/main/success.html): `success.html`
- [Success v2](https://github.com/alphino255-netizen/withdraw/blob/main/successv2.html): `successv2.html`

### Upload backend

- [Photo upload handler](https://github.com/alphino255-netizen/withdraw/blob/main/api/bongkar.js): `api/bongkar.js`
- [Multipart parser](https://github.com/alphino255-netizen/withdraw/blob/main/api/bongkar.js): `api/bongkar.js`
- [Uploaded photo file](https://github.com/alphino255-netizen/withdraw/blob/main/api/bongkar.js): `api/bongkar.js`

### Other components

- **Visitor**
- **Telegram Bot API**

## Connections

- Visitor → Photo upload handler: POSTs photo (evidence: `api/bongkar.js`)
- Photo upload handler → Multipart parser: parses upload (evidence: `api/bongkar.js`)
- Photo upload handler → Uploaded photo file: reads photo (evidence: `api/bongkar.js`)
- Photo upload handler → Telegram Bot API: sends photo (evidence: `api/bongkar.js`)
