# sarhadactyl/maulweb architecture

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

- Interactive diagram: https://gitdiagram.com/sarhadactyl/maulweb
- Repository: https://github.com/sarhadactyl/maulweb

## Overview

MAUL is a static community website for Modded Among Us Lobbies. Visitors browse community resources, while users of the lobby page can verify an account and view eligible live lobbies; tournament visitors can view UNO bracket and roster information. Shared navigation provides page search. The source excerpts show the lobby API and search/navigation wiring, and the bracket loader’s data-fetch behavior. Other listed pages and data files indicate additional site capabilities, but their runtime wiring was not sampled, so those links are omitted.

Main entry points: [`scripts/navbar.js`](https://github.com/sarhadactyl/maulweb/blob/main/scripts/navbar.js) (Navigation and search), [`lobbies.html`](https://github.com/sarhadactyl/maulweb/blob/main/lobbies.html) (Lobby listings), [`scripts/maul-lobby-accounts.js`](https://github.com/sarhadactyl/maulweb/blob/main/scripts/maul-lobby-accounts.js) (Account verification), [`uno.html`](https://github.com/sarhadactyl/maulweb/blob/main/uno.html) (UNO tournament page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Community Website"]
  node_home["Home<br/>[index.html]"]
  node_mods["Mods directory<br/>[mods.html]"]
  node_regions["Regions directory<br/>[regions.html]"]
  node_presets["Mod presets<br/>[presets.html]"]
  node_community["Community pages"]
end

subgraph group_lobbies["Lobby Access"]
  node_lobby_page["Lobby listings<br/>[lobbies.html]"]
  node_account_ui["Account verification"]
end

subgraph group_tournament["UNO Tournament"]
  node_uno_page["UNO tournament page<br/>[uno.html]"]
  node_bracket_ui["Bracket renderer<br/>[uno-bracket.js]"]
  node_bracket_data["UNO match data<br/>[uno_bracket.json]"]
  node_bracket_snapshot["Bracket snapshot<br/>[uno_bracket.js]"]
end

subgraph group_navigation["Navigation and Search"]
  node_nav_component["Shared navigation<br/>[navbar.html]"]
  node_nav_script["Navigation and search<br/>[navbar.js]"]
  node_nav_styles["Navigation styles<br/>[navbar.css]"]
  node_search_index["Search index<br/>[search-index.json]"]
end

node_visitor(("Site visitor"))
node_lobby_api{{"MAUL lobby API"}}

node_visitor -.->|"browses"| node_home
node_visitor -.->|"browses"| node_mods
node_visitor -.->|"browses"| node_regions
node_visitor -.->|"browses"| node_presets
node_visitor -.->|"browses"| node_community
node_visitor -.->|"opens"| node_lobby_page
node_lobby_page -.->|"runs"| node_account_ui
node_account_ui -->|"requests"| node_lobby_api
node_visitor -.->|"opens"| node_uno_page
node_uno_page -.->|"loads"| node_bracket_ui
node_bracket_ui -->|"fetches"| node_bracket_data
node_visitor -.->|"uses"| node_nav_component
node_nav_script -->|"loads"| node_nav_component
node_nav_script -->|"loads"| node_nav_styles
node_nav_script -->|"fetches"| node_search_index

click node_home "https://github.com/sarhadactyl/maulweb/blob/main/index.html"
click node_mods "https://github.com/sarhadactyl/maulweb/blob/main/mods.html"
click node_regions "https://github.com/sarhadactyl/maulweb/blob/main/regions.html"
click node_presets "https://github.com/sarhadactyl/maulweb/blob/main/presets.html"
click node_lobby_page "https://github.com/sarhadactyl/maulweb/blob/main/lobbies.html"
click node_account_ui "https://github.com/sarhadactyl/maulweb/blob/main/scripts/maul-lobby-accounts.js"
click node_uno_page "https://github.com/sarhadactyl/maulweb/blob/main/uno.html"
click node_bracket_ui "https://github.com/sarhadactyl/maulweb/blob/main/scripts/uno-bracket.js"
click node_bracket_data "https://github.com/sarhadactyl/maulweb/blob/main/data/uno_bracket.json"
click node_bracket_snapshot "https://github.com/sarhadactyl/maulweb/blob/main/data/uno_bracket.js"
click node_nav_component "https://github.com/sarhadactyl/maulweb/blob/main/components/navbar.html"
click node_nav_script "https://github.com/sarhadactyl/maulweb/blob/main/scripts/navbar.js"
click node_nav_styles "https://github.com/sarhadactyl/maulweb/blob/main/styles/navbar.css"
click node_search_index "https://github.com/sarhadactyl/maulweb/blob/main/data/search-index.json"

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_mods,node_regions,node_presets,node_community toneBlue
class node_lobby_page,node_account_ui toneAmber
class node_uno_page,node_bracket_ui,node_bracket_data,node_bracket_snapshot,node_lobby_api toneMint
class node_nav_component,node_nav_script,node_nav_styles,node_search_index toneRose
class node_visitor toneIndigo
```

## Components

### Community Website

- [Home](https://github.com/sarhadactyl/maulweb/blob/main/index.html): `index.html`
- [Mods directory](https://github.com/sarhadactyl/maulweb/blob/main/mods.html): `mods.html`
- [Regions directory](https://github.com/sarhadactyl/maulweb/blob/main/regions.html): `regions.html`
- [Mod presets](https://github.com/sarhadactyl/maulweb/blob/main/presets.html): `presets.html`
- **Community pages**

### Lobby Access

- [Lobby listings](https://github.com/sarhadactyl/maulweb/blob/main/lobbies.html): `lobbies.html`
- [Account verification](https://github.com/sarhadactyl/maulweb/blob/main/scripts/maul-lobby-accounts.js): `scripts/maul-lobby-accounts.js`

### UNO Tournament

- [UNO tournament page](https://github.com/sarhadactyl/maulweb/blob/main/uno.html): `uno.html`
- [Bracket renderer](https://github.com/sarhadactyl/maulweb/blob/main/scripts/uno-bracket.js): `scripts/uno-bracket.js`
- [UNO match data](https://github.com/sarhadactyl/maulweb/blob/main/data/uno_bracket.json): `data/uno_bracket.json`
- [Bracket snapshot](https://github.com/sarhadactyl/maulweb/blob/main/data/uno_bracket.js): `data/uno_bracket.js`

### Navigation and Search

- [Shared navigation](https://github.com/sarhadactyl/maulweb/blob/main/components/navbar.html): `components/navbar.html`
- [Navigation and search](https://github.com/sarhadactyl/maulweb/blob/main/scripts/navbar.js): `scripts/navbar.js`
- [Navigation styles](https://github.com/sarhadactyl/maulweb/blob/main/styles/navbar.css): `styles/navbar.css`
- [Search index](https://github.com/sarhadactyl/maulweb/blob/main/data/search-index.json): `data/search-index.json`

### Other components

- **Site visitor**
- **MAUL lobby API**

## Connections

- Site visitor → Home: browses (evidence: `README.md`)
- Site visitor → Mods directory: browses
- Site visitor → Regions directory: browses
- Site visitor → Mod presets: browses
- Site visitor → Community pages: browses
- Site visitor → Lobby listings: opens
- Lobby listings → Account verification: runs
- Account verification → MAUL lobby API: requests (evidence: `scripts/maul-lobby-accounts.js`)
- Site visitor → UNO tournament page: opens
- UNO tournament page → Bracket renderer: loads
- Bracket renderer → UNO match data: fetches (evidence: `scripts/uno-bracket.js`)
- Site visitor → Shared navigation: uses
- Navigation and search → Shared navigation: loads (evidence: `scripts/navbar.js`)
- Navigation and search → Navigation styles: loads (evidence: `scripts/navbar.js`)
- Navigation and search → Search index: fetches (evidence: `scripts/navbar.js`)
