Architecture model
The model in three levels: context (Ephyra and what it talks to), containers (the Gradle
modules and their dependencies) and components (inside player/local, downloads, core,
setup, domain, application, data and server/jellyfin). Click an element to open the
level below it; the search (top left, or Ctrl+K) finds any element or view.
An element’s links lead to its source on GitHub and, for downloads, setup and servers, and
subtitles and tracks, to the area guide.
The module view leaves out the arrows into domain and application, which every module may
use, and the arrows of the apps, which use every module. Modules
has every dependency.
Open the model full screen ·
source in docs/architecture/model/
Where it comes from
Section titled “Where it comes from”| File | What | Written by |
|---|---|---|
modules.generated.c4 |
The modules, one line each on what they are, and the arrows between them | GeneratedDocsTest in architecture/, from the build.gradle.kts files and its list of modules |
context.c4 |
The element kinds and colours, the viewer, the server, Cast, Android | hand |
components.c4 |
Components inside eight modules, each linked to its file or folder, and the calls between them | hand |
views.c4 |
The views | hand |
likec4.config.json, ephyra.css |
The project: the start on the context view, the viewer in Ephyra’s dark colours | hand |
What is checked:
./gradlew :architecture:testfails when the generated file no longer matches the build files, or when a module has no line inArchitectureModel.MODULES; the failure prints what to add and the command that regenerates it. The same test writes Modules (a Mermaid graph for GitHub) and Rules..claude/skills/start-work/scripts/check-docs.pyfails when a component or port has no link to its source, when a link points at a file that is gone, or when an arrow between two components is not in the code: the source of the first must name the second.- In
devsite/,npm run check-modelvalidates the model, andnpx likec4 start ../docs/architecture/modelopens it with live reload while you edit it.