# neocky/pluget architecture

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

- Interactive diagram: https://gitdiagram.com/neocky/pluget
- Repository: https://github.com/neocky/pluget

## Overview

pluGET is a console package manager for Minecraft server owners. Its workflow starts with a command-line invocation, loads connection settings, dispatches commands, inspects or updates plugins and server jars, and stores changes locally or over FTP/SFTP. The graph preserves the documented Spigot, Modrinth, GitHub, Paper-family, and Purpur capabilities. Some subsystem connections are based on the SOURCE INDEX rather than complete source excerpts; uncertain links are omitted.

Main entry points: [`src/handlers/handle_input.py`](https://github.com/neocky/pluget/blob/main/src/handlers/handle_input.py) (Command Router), [`src/plugin/plugin_updatechecker.py`](https://github.com/neocky/pluget/blob/main/src/plugin/plugin_updatechecker.py) (Plugin Check And Update), [`src/serverjar/serverjar_paper_velocity_waterfall.py`](https://github.com/neocky/pluget/blob/main/src/serverjar/serverjar_paper_velocity_waterfall.py) (Paper Velocity Waterfall), [`src/plugin/plugin_downloader.py`](https://github.com/neocky/pluget/blob/main/src/plugin/plugin_downloader.py) (Spigot Downloads)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Command Runtime"]
  node_entry["CLI Entry<br/>[pluget.py]"]
  node_commands["Command Router<br/>[handle_input.py]"]
end

subgraph group_config_transport["Configuration And Transport"]
  node_config["Configuration<br/>[handle_config.py]"]
  node_config_file["YAML Config"]
  node_ftp["FTP Access<br/>[handle_ftp.py]"]
  node_sftp["SFTP Access<br/>[handle_sftp.py]"]
end

subgraph group_plugins["Plugin Management"]
  node_plugin_ops["Plugin Check And Update"]
  node_plugin_download["Spigot Downloads"]
  node_plugin_remove["Plugin Removal<br/>[plugin_remover.py]"]
  node_github["GitHub Releases<br/>[github_handler.py]"]
  node_modrinth["Modrinth Projects"]
end

subgraph group_server["Server Software"]
  node_paper_family["Paper Velocity Waterfall"]
  node_purpur["Purpur"]
  node_server_check["Server Jar Updates"]
end

subgraph group_shared["Shared Utilities"]
  node_utilities["API And File Utilities<br/>[utilities.py]"]
  node_console["Console Output<br/>[console_output.py]"]
  node_settings["Application Settings<br/>[settings.py]"]
end

node_owner(("Server Owner"))
node_plugin_apis{{"Plugin Platform APIs"}}
node_server_apis{{"Server Software APIs"}}
node_local_remote[("Local Or Remote Server")]

node_owner -->|"runs"| node_entry
node_entry -->|"dispatches"| node_commands
node_entry -->|"checks config"| node_config
node_config -->|"reads or creates"| node_config_file
node_commands -->|"checks or updates"| node_plugin_ops
node_commands -->|"downloads"| node_plugin_download
node_commands -->|"removes"| node_plugin_remove
node_commands -->|"dispatches"| node_github
node_commands -->|"dispatches"| node_modrinth
node_commands -->|"checks or updates"| node_server_check
node_commands -->|"downloads"| node_paper_family
node_commands -->|"downloads"| node_purpur
node_plugin_ops -->|"downloads updates"| node_plugin_download
node_plugin_ops -->|"checks releases"| node_github
node_plugin_ops -->|"checks versions"| node_modrinth
node_plugin_ops -->|"uses"| node_ftp
node_plugin_ops -->|"uses"| node_sftp
node_plugin_download -->|"uses"| node_utilities
node_github -->|"uses"| node_utilities
node_modrinth -->|"uses"| node_utilities
node_github -->|"uses downloads"| node_plugin_download
node_modrinth -->|"uses downloads"| node_plugin_download
node_plugin_remove -->|"uses"| node_ftp
node_plugin_remove -->|"uses"| node_sftp
node_server_check -->|"checks"| node_paper_family
node_server_check -->|"checks"| node_purpur
node_paper_family -->|"uses"| node_utilities
node_purpur -->|"uses helpers"| node_paper_family
node_paper_family -->|"uploads jars"| node_ftp
node_paper_family -->|"uploads jars"| node_sftp
node_purpur -->|"uploads jars"| node_ftp
node_purpur -->|"uploads jars"| node_sftp
node_utilities -->|"uses helpers"| node_ftp
node_utilities -->|"uses helpers"| node_sftp
node_utilities -->|"reports errors"| node_console
node_console -->|"reads version"| node_settings
node_ftp -->|"loads settings"| node_config
node_sftp -->|"loads settings"| node_config
node_plugin_ops -.->|"reads and updates"| node_local_remote
node_plugin_download -.->|"stores downloads"| node_local_remote
node_paper_family -->|"requests builds"| node_server_apis
node_purpur -->|"requests builds"| node_server_apis
node_github -.->|"queries releases"| node_plugin_apis
node_modrinth -.->|"queries projects"| node_plugin_apis
node_plugin_download -.->|"queries Spiget"| node_plugin_apis

click node_entry "https://github.com/neocky/pluget/blob/main/pluget.py"
click node_commands "https://github.com/neocky/pluget/blob/main/src/handlers/handle_input.py"
click node_config "https://github.com/neocky/pluget/blob/main/src/handlers/handle_config.py"
click node_ftp "https://github.com/neocky/pluget/blob/main/src/handlers/handle_ftp.py"
click node_sftp "https://github.com/neocky/pluget/blob/main/src/handlers/handle_sftp.py"
click node_plugin_ops "https://github.com/neocky/pluget/blob/main/src/plugin/plugin_updatechecker.py"
click node_plugin_download "https://github.com/neocky/pluget/blob/main/src/plugin/plugin_downloader.py"
click node_plugin_remove "https://github.com/neocky/pluget/blob/main/src/plugin/plugin_remover.py"
click node_github "https://github.com/neocky/pluget/blob/main/src/platforms/github_handler.py"
click node_modrinth "https://github.com/neocky/pluget/blob/main/src/platforms/modrinth_handler.py"
click node_paper_family "https://github.com/neocky/pluget/blob/main/src/serverjar/serverjar_paper_velocity_waterfall.py"
click node_purpur "https://github.com/neocky/pluget/blob/main/src/serverjar/serverjar_purpur.py"
click node_server_check "https://github.com/neocky/pluget/blob/main/src/serverjar/serverjar_updatechecker.py"
click node_utilities "https://github.com/neocky/pluget/blob/main/src/utils/utilities.py"
click node_console "https://github.com/neocky/pluget/blob/main/src/utils/console_output.py"
click node_settings "https://github.com/neocky/pluget/blob/main/src/settings.py"

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_entry,node_commands toneBlue
class node_config,node_config_file,node_ftp,node_sftp,node_local_remote toneAmber
class node_plugin_ops,node_plugin_download,node_plugin_remove,node_github,node_modrinth,node_owner,node_plugin_apis,node_server_apis toneMint
class node_paper_family,node_purpur,node_server_check toneRose
class node_utilities,node_console,node_settings toneIndigo
```

## Components

### Command Runtime

- [CLI Entry](https://github.com/neocky/pluget/blob/main/pluget.py): `pluget.py`
- [Command Router](https://github.com/neocky/pluget/blob/main/src/handlers/handle_input.py): `src/handlers/handle_input.py`

### Configuration And Transport

- [Configuration](https://github.com/neocky/pluget/blob/main/src/handlers/handle_config.py): `src/handlers/handle_config.py`
- **YAML Config**
- [FTP Access](https://github.com/neocky/pluget/blob/main/src/handlers/handle_ftp.py): `src/handlers/handle_ftp.py`
- [SFTP Access](https://github.com/neocky/pluget/blob/main/src/handlers/handle_sftp.py): `src/handlers/handle_sftp.py`

### Plugin Management

- [Plugin Check And Update](https://github.com/neocky/pluget/blob/main/src/plugin/plugin_updatechecker.py): `src/plugin/plugin_updatechecker.py`
- [Spigot Downloads](https://github.com/neocky/pluget/blob/main/src/plugin/plugin_downloader.py): `src/plugin/plugin_downloader.py`
- [Plugin Removal](https://github.com/neocky/pluget/blob/main/src/plugin/plugin_remover.py): `src/plugin/plugin_remover.py`
- [GitHub Releases](https://github.com/neocky/pluget/blob/main/src/platforms/github_handler.py): `src/platforms/github_handler.py`
- [Modrinth Projects](https://github.com/neocky/pluget/blob/main/src/platforms/modrinth_handler.py): `src/platforms/modrinth_handler.py`

### Server Software

- [Paper Velocity Waterfall](https://github.com/neocky/pluget/blob/main/src/serverjar/serverjar_paper_velocity_waterfall.py): `src/serverjar/serverjar_paper_velocity_waterfall.py`
- [Purpur](https://github.com/neocky/pluget/blob/main/src/serverjar/serverjar_purpur.py): `src/serverjar/serverjar_purpur.py`
- [Server Jar Updates](https://github.com/neocky/pluget/blob/main/src/serverjar/serverjar_updatechecker.py): `src/serverjar/serverjar_updatechecker.py`

### Shared Utilities

- [API And File Utilities](https://github.com/neocky/pluget/blob/main/src/utils/utilities.py): `src/utils/utilities.py`
- [Console Output](https://github.com/neocky/pluget/blob/main/src/utils/console_output.py): `src/utils/console_output.py`
- [Application Settings](https://github.com/neocky/pluget/blob/main/src/settings.py): `src/settings.py`

### Other components

- **Server Owner**
- **Plugin Platform APIs**
- **Server Software APIs**
- **Local Or Remote Server**

## Connections

- Server Owner → CLI Entry: runs (evidence: `README.md`)
- CLI Entry → Command Router: dispatches (evidence: `pluget.py`)
- CLI Entry → Configuration: checks config (evidence: `pluget.py`)
- Configuration → YAML Config: reads or creates (evidence: `src/handlers/handle_config.py`)
- Command Router → Plugin Check And Update: checks or updates (evidence: `src/handlers/handle_input.py`)
- Command Router → Spigot Downloads: downloads (evidence: `src/handlers/handle_input.py`)
- Command Router → Plugin Removal: removes (evidence: `src/handlers/handle_input.py`)
- Command Router → GitHub Releases: dispatches (evidence: `src/handlers/handle_input.py`)
- Command Router → Modrinth Projects: dispatches (evidence: `src/handlers/handle_input.py`)
- Command Router → Server Jar Updates: checks or updates (evidence: `src/handlers/handle_input.py`)
- Command Router → Paper Velocity Waterfall: downloads (evidence: `src/handlers/handle_input.py`)
- Command Router → Purpur: downloads (evidence: `src/handlers/handle_input.py`)
- Plugin Check And Update → Spigot Downloads: downloads updates (evidence: `src/plugin/plugin_updatechecker.py`)
- Plugin Check And Update → GitHub Releases: checks releases (evidence: `src/plugin/plugin_updatechecker.py`)
- Plugin Check And Update → Modrinth Projects: checks versions (evidence: `src/plugin/plugin_updatechecker.py`)
- Plugin Check And Update → FTP Access: uses (evidence: `src/plugin/plugin_updatechecker.py`)
- Plugin Check And Update → SFTP Access: uses (evidence: `src/plugin/plugin_updatechecker.py`)
- Spigot Downloads → API And File Utilities: uses (evidence: `src/plugin/plugin_downloader.py`)
- GitHub Releases → API And File Utilities: uses (evidence: `src/platforms/github_handler.py`)
- Modrinth Projects → API And File Utilities: uses (evidence: `src/platforms/modrinth_handler.py`)
- GitHub Releases → Spigot Downloads: uses downloads (evidence: `src/platforms/github_handler.py`)
- Modrinth Projects → Spigot Downloads: uses downloads (evidence: `src/platforms/modrinth_handler.py`)
- Plugin Removal → FTP Access: uses (evidence: `src/plugin/plugin_remover.py`)
- Plugin Removal → SFTP Access: uses (evidence: `src/plugin/plugin_remover.py`)
- Server Jar Updates → Paper Velocity Waterfall: checks (evidence: `src/serverjar/serverjar_updatechecker.py`)
- Server Jar Updates → Purpur: checks (evidence: `src/serverjar/serverjar_updatechecker.py`)
- Paper Velocity Waterfall → API And File Utilities: uses (evidence: `src/serverjar/serverjar_paper_velocity_waterfall.py`)
- Purpur → Paper Velocity Waterfall: uses helpers (evidence: `src/serverjar/serverjar_purpur.py`)
- Paper Velocity Waterfall → FTP Access: uploads jars (evidence: `src/serverjar/serverjar_paper_velocity_waterfall.py`)
- Paper Velocity Waterfall → SFTP Access: uploads jars (evidence: `src/serverjar/serverjar_paper_velocity_waterfall.py`)
- Purpur → FTP Access: uploads jars (evidence: `src/serverjar/serverjar_purpur.py`)
- Purpur → SFTP Access: uploads jars (evidence: `src/serverjar/serverjar_purpur.py`)
- API And File Utilities → FTP Access: uses helpers (evidence: `src/utils/utilities.py`)
- API And File Utilities → SFTP Access: uses helpers (evidence: `src/utils/utilities.py`)
- API And File Utilities → Console Output: reports errors (evidence: `src/utils/utilities.py`)
- Console Output → Application Settings: reads version (evidence: `src/utils/console_output.py`)
- FTP Access → Configuration: loads settings (evidence: `src/handlers/handle_ftp.py`)
- SFTP Access → Configuration: loads settings (evidence: `src/handlers/handle_sftp.py`)
- Plugin Check And Update → Local Or Remote Server: reads and updates
- Spigot Downloads → Local Or Remote Server: stores downloads
- Paper Velocity Waterfall → Server Software APIs: requests builds (evidence: `src/serverjar/serverjar_paper_velocity_waterfall.py`)
- Purpur → Server Software APIs: requests builds (evidence: `src/serverjar/serverjar_purpur.py`)
- GitHub Releases → Plugin Platform APIs: queries releases (evidence: `README.md`)
- Modrinth Projects → Plugin Platform APIs: queries projects (evidence: `README.md`)
- Spigot Downloads → Plugin Platform APIs: queries Spiget (evidence: `README.md`)
