How classicoldsong/apollo works
Project type and purpose
• Apollo is a native C++17-based streaming server (desktop stream host) with an integrated web UI.
• Purpose: host low-latency game streams for Artemis/Moonlight clients, manage virtual displays, input, encoding (HW/SW), and client permissions.
File structure
• src/ : core server modules (network, HTTP, RTSP, UPnP, config, crypto, audio/video, input, logging, task/thread pools, virtual display management).
• src/platform/ : OS-specific abstractions (Windows via SudoVDA & DirectX, Linux via VAAPI/Wayland/X11, macOS via AVFoundation).
• src_assets/ : static web-UI assets (Vue components, HTML/CSS/JS) served by the builtin HTTP server.
• third-party/ : embedded external libraries.
• CMakeLists.txt & cmake/ : build configuration, cross-platform packaging, dependency detection.
• packaging/, docker/, scripts/ : deployment artifacts (AppImage, Flatpak, Dockerfiles), helper scripts.
README for additional insights
• Backend features: virtual display creation/removal, permission system, HDR handling, multi-GPU support, input sync, auto-resolution matching.
• Web UI for pairing and configuration over HTTP(S).
• Integration points with SudoVDA, Artemis (Moonlight Noir), and hardware encoders (AMD VCE, Intel VAAPI, Nvidia NVENC).
Exploding Third-Party Modules
• Simple-Web-Server (HTTP layer)
• nlohmann_json (config, API payloads)
• Boost (where used)
• TPCircularBuffer (stream buffering)
• ViGEmClient/SudoVDA (virtual display driver)
• inputtino (input abstraction)
• libevdev (Linux input)
• glad (OpenGL function loading)
• nv-codec-headers & NVENC SDK (Nvidia encoding)
• moonlight-common-c (Moonlight protocol support)
• googletest (unit tests, can be shaded off as “Test Harness”)
Final checklist
• All major components identified and labeled.
• Platform-specific adapters grouped but detailed.
• Third-party modules exploded and linked.
• Clear data flows: control (HTTP/API), media (video/audio streams), input.
• Technology names annotated.
• Permission and config manager centrally located.
• Host hardware and external clients represented.