# noel12345678910/nepalmc-website architecture

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

- Interactive diagram: https://gitdiagram.com/noel12345678910/nepalmc-website
- Repository: https://github.com/noel12345678910/nepalmc-website

## Overview

NepalMC is a Minecraft server website with server information, game-mode and staff pages, voting, and a NepCoins store. The principal transaction workflow is a visitor submitting purchase and payment details with a receipt; the browser sends them to the payment API, which forwards the receipt to Discord and returns an order code. The sampled code also shows server-status lookups and Semi-Vanilla rank details. Other page capabilities are represented from the file tree; their internal wiring was not sampled.

Main entry points: [`index.html`](https://github.com/noel12345678910/nepalmc-website/blob/main/index.html) (Home Page), [`script.js`](https://github.com/noel12345678910/nepalmc-website/blob/main/script.js) (Site Interactions), [`api/payment.js`](https://github.com/noel12345678910/nepalmc-website/blob/main/api/payment.js) (Payment API), [`semi-vanilla.js`](https://github.com/noel12345678910/nepalmc-website/blob/main/semi-vanilla.js) (Rank Details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Server Website"]
  node_home["Home Page<br/>[index.html]"]
  node_sitebehavior["Site Interactions<br/>[script.js]"]
  node_voting["Voting<br/>[vote.html]"]
  node_staff["Staff<br/>[staff.html]"]
  node_policies["Site Policies<br/>[privacy.html]"]
  node_refunds["Refund Policy<br/>[refund-policy.html]"]
  node_terms["Terms<br/>[terms.html]"]
end

subgraph group_commerce["Store and Payments"]
  node_storepage["Store Page<br/>[store.html]"]
  node_paymentform["Payment Submission<br/>[script.js]"]
  node_paymentapi["Payment API<br/>[payment.js]"]
end

subgraph group_gameinfo["Game Information"]
  node_economy["Economy Mode<br/>[economy.html]"]
  node_semivanilla["Semi-Vanilla Mode<br/>[semi-vanilla.html]"]
  node_rankdetails["Rank Details<br/>[semi-vanilla.js]"]
  node_gamemodes["Game Modes<br/>[game-modes.html]"]
end

subgraph group_integrations["External Integrations"]
  node_serverstatus["Server Status<br/>[script.js]"]
  node_mcstatus{{"Minecraft Status API"}}
  node_discord{{"Discord Webhook"}}
end

node_visitor(("Visitor"))

node_visitor -.->|"visits"| node_home
node_home -.->|"uses"| node_sitebehavior
node_sitebehavior -->|"looks up"| node_serverstatus
node_serverstatus -->|"queries"| node_mcstatus
node_paymentform -->|"submits"| node_paymentapi
node_paymentapi -->|"forwards receipt"| node_discord
node_rankdetails -->|"links to"| node_storepage

click node_home "https://github.com/noel12345678910/nepalmc-website/blob/main/index.html"
click node_sitebehavior "https://github.com/noel12345678910/nepalmc-website/blob/main/script.js"
click node_serverstatus "https://github.com/noel12345678910/nepalmc-website/blob/main/script.js"
click node_storepage "https://github.com/noel12345678910/nepalmc-website/blob/main/store.html"
click node_paymentform "https://github.com/noel12345678910/nepalmc-website/blob/main/script.js"
click node_paymentapi "https://github.com/noel12345678910/nepalmc-website/blob/main/api/payment.js"
click node_economy "https://github.com/noel12345678910/nepalmc-website/blob/main/economy.html"
click node_semivanilla "https://github.com/noel12345678910/nepalmc-website/blob/main/semi-vanilla.html"
click node_rankdetails "https://github.com/noel12345678910/nepalmc-website/blob/main/semi-vanilla.js"
click node_gamemodes "https://github.com/noel12345678910/nepalmc-website/blob/main/game-modes.html"
click node_voting "https://github.com/noel12345678910/nepalmc-website/blob/main/vote.html"
click node_staff "https://github.com/noel12345678910/nepalmc-website/blob/main/staff.html"
click node_policies "https://github.com/noel12345678910/nepalmc-website/blob/main/privacy.html"
click node_refunds "https://github.com/noel12345678910/nepalmc-website/blob/main/refund-policy.html"
click node_terms "https://github.com/noel12345678910/nepalmc-website/blob/main/terms.html"

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_sitebehavior,node_voting,node_staff,node_policies,node_refunds,node_terms toneBlue
class node_storepage,node_paymentform,node_paymentapi toneAmber
class node_economy,node_semivanilla,node_rankdetails,node_gamemodes toneMint
class node_serverstatus,node_mcstatus,node_discord toneRose
class node_visitor toneIndigo
```

## Components

### Server Website

- [Home Page](https://github.com/noel12345678910/nepalmc-website/blob/main/index.html): `index.html`
- [Site Interactions](https://github.com/noel12345678910/nepalmc-website/blob/main/script.js): `script.js`
- [Voting](https://github.com/noel12345678910/nepalmc-website/blob/main/vote.html): `vote.html`
- [Staff](https://github.com/noel12345678910/nepalmc-website/blob/main/staff.html): `staff.html`
- [Site Policies](https://github.com/noel12345678910/nepalmc-website/blob/main/privacy.html): `privacy.html`
- [Refund Policy](https://github.com/noel12345678910/nepalmc-website/blob/main/refund-policy.html): `refund-policy.html`
- [Terms](https://github.com/noel12345678910/nepalmc-website/blob/main/terms.html): `terms.html`

### Store and Payments

- [Store Page](https://github.com/noel12345678910/nepalmc-website/blob/main/store.html): `store.html`
- [Payment Submission](https://github.com/noel12345678910/nepalmc-website/blob/main/script.js): `script.js`
- [Payment API](https://github.com/noel12345678910/nepalmc-website/blob/main/api/payment.js): `api/payment.js`

### Game Information

- [Economy Mode](https://github.com/noel12345678910/nepalmc-website/blob/main/economy.html): `economy.html`
- [Semi-Vanilla Mode](https://github.com/noel12345678910/nepalmc-website/blob/main/semi-vanilla.html): `semi-vanilla.html`
- [Rank Details](https://github.com/noel12345678910/nepalmc-website/blob/main/semi-vanilla.js): `semi-vanilla.js`
- [Game Modes](https://github.com/noel12345678910/nepalmc-website/blob/main/game-modes.html): `game-modes.html`

### External Integrations

- [Server Status](https://github.com/noel12345678910/nepalmc-website/blob/main/script.js): `script.js`
- **Minecraft Status API**
- **Discord Webhook**

### Other components

- **Visitor**

## Connections

- Visitor → Home Page: visits
- Home Page → Site Interactions: uses
- Site Interactions → Server Status: looks up (evidence: `script.js`)
- Server Status → Minecraft Status API: queries (evidence: `script.js`)
- Payment Submission → Payment API: submits (evidence: `script.js`)
- Payment API → Discord Webhook: forwards receipt (evidence: `api/payment.js`)
- Rank Details → Store Page: links to (evidence: `semi-vanilla.js`)
