# amiroim/ycity.top architecture

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

- Interactive diagram: https://gitdiagram.com/amiroim/ycity.top
- Repository: https://github.com/amiroim/ycity.top

## Overview

Ycity.top combines a React site, a backend communication layer, and a Minecraft plugin. The main user flow is login or registration through the site, command submission to the backend, and plugin-side execution; account changes use the same command path. Server status is fetched separately from an external status service. The README documents backend authentication, account management, and database communication, but backend routes and storage implementation are not present in the supplied tree, so those details are represented only at the documented subsystem level.

Main entry points: [`web/FrontEnd/src/App.jsx`](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/App.jsx) (Route application), [`web/FrontEnd/src/hooks/commandToServer.jsx`](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/hooks/commandToServer.jsx) (Command client), [`web/FrontEnd/src/components/landingItems.jsx`](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/components/landingItems.jsx) (Landing content), [`web/FrontEnd/src/pages/Signup.jsx`](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/Signup.jsx) (Registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_app["Route application<br/>[App.jsx]"]
  node_menu["Navigation menu<br/>[menu.jsx]"]
  node_landing["Landing content<br/>[landingItems.jsx]"]
  node_links["Community links<br/>[links.jsx]"]
  node_status_page["Status page<br/>[Status.jsx]"]
  node_status_hook["Status polling"]
end

subgraph group_identity["Account operations"]
  node_login["Login<br/>[Login.jsx]"]
  node_signup["Registration<br/>[Signup.jsx]"]
  node_account["Account page<br/>[Account.jsx]"]
  node_password["Password changes<br/>[changePassword.jsx]"]
  node_delete_account["Account deletion<br/>[DeleteAccount.jsx]"]
  node_logout["Logout<br/>[Logout.jsx]"]
end

subgraph group_backend["Backend services"]
  node_command_hook["Command client"]
  node_error_codes["Response mapping<br/>[Codes.jsx]"]
  node_backend_api["Backend API<br/>[serverws.js]"]
end

subgraph group_minecraft["Minecraft integration"]
  node_plugin_api["Realtime plugin API<br/>[RealtimeAPI.java]"]
  node_command_sender["Command output capture"]
end

node_visitor(("Website visitor"))
node_status_service["Status provider"]
node_database[("Application database")]
node_minecraft_server["Minecraft server"]

node_visitor -->|"uses"| node_app
node_app -->|"renders"| node_menu
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_status_page
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_signup
node_app -->|"routes to"| node_account
node_app -->|"routes to"| node_password
node_app -->|"routes to"| node_delete_account
node_app -->|"routes to"| node_logout
node_landing -->|"renders"| node_links
node_landing -->|"polls via"| node_status_hook
node_status_page -->|"reads status"| node_status_hook
node_status_hook -->|"fetches status"| node_status_service
node_login -->|"submits command"| node_command_hook
node_signup -->|"submits command"| node_command_hook
node_delete_account -->|"submits command"| node_command_hook
node_signup -->|"maps response"| node_error_codes
node_delete_account -->|"maps response"| node_error_codes
node_command_hook -->|"posts command"| node_backend_api
node_backend_api -->|"communicates with"| node_database
node_backend_api -.->|"relays commands"| node_plugin_api
node_plugin_api -->|"integrates with"| node_minecraft_server
node_plugin_api -->|"uses"| node_command_sender

click node_app "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/App.jsx"
click node_menu "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/components/menu.jsx"
click node_landing "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/components/landingItems.jsx"
click node_links "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/components/links.jsx"
click node_status_page "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/Status.jsx"
click node_status_hook "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/hooks/useServerStatus.jsx"
click node_login "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/Login.jsx"
click node_signup "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/Signup.jsx"
click node_account "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/Account.jsx"
click node_password "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/changePassword.jsx"
click node_delete_account "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/DeleteAccount.jsx"
click node_logout "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/Logout.jsx"
click node_command_hook "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/hooks/commandToServer.jsx"
click node_error_codes "https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/types/Codes.jsx"
click node_backend_api "https://github.com/amiroim/ycity.top/blob/main/web/BackEnd/serverws.js"
click node_plugin_api "https://github.com/amiroim/ycity.top/blob/main/Plugin/RealtimeAPI.java"
click node_command_sender "https://github.com/amiroim/ycity.top/blob/main/Plugin/CustomCommandSender.java"

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_app,node_menu,node_landing,node_links,node_status_page,node_status_hook toneBlue
class node_login,node_signup,node_account,node_password,node_delete_account,node_logout,node_database toneAmber
class node_command_hook,node_error_codes,node_backend_api,node_minecraft_server toneMint
class node_plugin_api,node_command_sender toneRose
class node_visitor,node_status_service toneIndigo
```

## Components

### Web experience

- [Route application](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/App.jsx): `web/FrontEnd/src/App.jsx`
- [Navigation menu](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/components/menu.jsx): `web/FrontEnd/src/components/menu.jsx`
- [Landing content](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/components/landingItems.jsx): `web/FrontEnd/src/components/landingItems.jsx`
- [Community links](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/components/links.jsx): `web/FrontEnd/src/components/links.jsx`
- [Status page](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/Status.jsx): `web/FrontEnd/src/pages/Status.jsx`
- [Status polling](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/hooks/useServerStatus.jsx): `web/FrontEnd/src/hooks/useServerStatus.jsx`

### Account operations

- [Login](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/Login.jsx): `web/FrontEnd/src/pages/Login.jsx`
- [Registration](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/Signup.jsx): `web/FrontEnd/src/pages/Signup.jsx`
- [Account page](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/Account.jsx): `web/FrontEnd/src/pages/Account.jsx`
- [Password changes](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/changePassword.jsx): `web/FrontEnd/src/pages/changePassword.jsx`
- [Account deletion](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/DeleteAccount.jsx): `web/FrontEnd/src/pages/DeleteAccount.jsx`
- [Logout](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/pages/Logout.jsx): `web/FrontEnd/src/pages/Logout.jsx`

### Backend services

- [Command client](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/hooks/commandToServer.jsx): `web/FrontEnd/src/hooks/commandToServer.jsx`
- [Response mapping](https://github.com/amiroim/ycity.top/blob/main/web/FrontEnd/src/types/Codes.jsx): `web/FrontEnd/src/types/Codes.jsx`
- [Backend API](https://github.com/amiroim/ycity.top/blob/main/web/BackEnd/serverws.js): `web/BackEnd/serverws.js`

### Minecraft integration

- [Realtime plugin API](https://github.com/amiroim/ycity.top/blob/main/Plugin/RealtimeAPI.java): `Plugin/RealtimeAPI.java`
- [Command output capture](https://github.com/amiroim/ycity.top/blob/main/Plugin/CustomCommandSender.java): `Plugin/CustomCommandSender.java`

### Other components

- **Website visitor**
- **Status provider**
- **Application database**
- **Minecraft server**

## Connections

- Website visitor → Route application: uses (evidence: `README.md`)
- Route application → Navigation menu: renders (evidence: `web/FrontEnd/src/App.jsx`)
- Route application → Landing content: routes to (evidence: `web/FrontEnd/src/App.jsx`)
- Route application → Status page: routes to (evidence: `web/FrontEnd/src/App.jsx`)
- Route application → Login: routes to (evidence: `web/FrontEnd/src/App.jsx`)
- Route application → Registration: routes to (evidence: `web/FrontEnd/src/App.jsx`)
- Route application → Account page: routes to (evidence: `web/FrontEnd/src/App.jsx`)
- Route application → Password changes: routes to (evidence: `web/FrontEnd/src/App.jsx`)
- Route application → Account deletion: routes to (evidence: `web/FrontEnd/src/App.jsx`)
- Route application → Logout: routes to (evidence: `web/FrontEnd/src/App.jsx`)
- Landing content → Community links: renders (evidence: `web/FrontEnd/src/components/landingItems.jsx`)
- Landing content → Status polling: polls via (evidence: `web/FrontEnd/src/components/landingItems.jsx`)
- Status page → Status polling: reads status (evidence: `web/FrontEnd/src/pages/Status.jsx`)
- Status polling → Status provider: fetches status (evidence: `web/FrontEnd/src/hooks/useServerStatus.jsx`)
- Login → Command client: submits command (evidence: `web/FrontEnd/src/pages/Login.jsx`)
- Registration → Command client: submits command (evidence: `web/FrontEnd/src/pages/Signup.jsx`)
- Account deletion → Command client: submits command (evidence: `web/FrontEnd/src/pages/DeleteAccount.jsx`)
- Registration → Response mapping: maps response (evidence: `web/FrontEnd/src/pages/Signup.jsx`)
- Account deletion → Response mapping: maps response (evidence: `web/FrontEnd/src/pages/DeleteAccount.jsx`)
- Command client → Backend API: posts command (evidence: `web/FrontEnd/src/hooks/commandToServer.jsx`)
- Backend API → Application database: communicates with (evidence: `README.md`)
- Backend API → Realtime plugin API: relays commands (evidence: `README.md`)
- Realtime plugin API → Minecraft server: integrates with (evidence: `README.md`)
- Realtime plugin API → Command output capture: uses (evidence: `Plugin/RealtimeAPI.java`)
