# inaciops/fedora-store architecture

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

- Interactive diagram: https://gitdiagram.com/inaciops/fedora-store
- Repository: https://github.com/inaciops/fedora-store

## Overview

Fedora Store is a GTK4/libadwaita desktop package browser and installer. The main workflow is: a user explores package sources, reviews package details and an operation plan, then applies the change with system authorization; the interface reflects the resulting state. The README also documents installed-package and update views, local RPM installation, background operation, and application updates. The application is largely orchestrated in app.py, with repo.py integrating package tools and remote catalogs and catalog.py defining the package model. Source excerpts are partial, so some subsystem links rely on README statements rather than inspected implementation details.

Main entry points: [`fedora_store/app.py`](https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py) (Application UI), [`fedora_store/repo.py`](https://github.com/inaciops/fedora-store/blob/main/fedora_store/repo.py) (DNF queries and plans), [`fedora_store/__main__.py`](https://github.com/inaciops/fedora-store/blob/main/fedora_store/__main__.py) (App entry point), [`fedora_store/catalog.py`](https://github.com/inaciops/fedora-store/blob/main/fedora_store/catalog.py) (Package model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop interface"]
  node_entry["App entry point<br/>[__main__.py]"]
  node_app["Application UI<br/>[app.py]"]
  node_preferences["Navigation and settings<br/>[app.py]"]
end

subgraph group_packages["Package workflows"]
  node_explore["Explore catalog<br/>[app.py]"]
  node_package_model["Package model<br/>[catalog.py]"]
  node_installed_updates["Installed and updates<br/>[app.py]"]
  node_review["Transaction review<br/>[app.py]"]
  node_local_rpm["Local RPM workflow<br/>[app.py]"]
end

subgraph group_integrations["Sources and system"]
  node_dnf["DNF queries and plans<br/>[repo.py]"]
  node_privileged_ops["Privileged operations<br/>[repo.py]"]
  node_copr["COPR discovery<br/>[repo.py]"]
  node_flatpak["Flatpak catalog<br/>[repo.py]"]
  node_terra["Terra source<br/>[app.py]"]
  node_dnf_service["DNF system"]
  node_polkit["Polkit authorization"]
  node_copr_api["Copr API"]
  node_flathub["Flathub"]
end

subgraph group_background["Background features"]
  node_background["Tray and autostart<br/>[app.py]"]
  node_release_updates["App release updates<br/>[app.py]"]
  node_release_service["Release service"]
end

node_user(("User"))

node_user -->|"launches"| node_entry
node_entry -->|"starts"| node_app
node_user -->|"uses"| node_app
node_app -->|"uses model"| node_package_model
node_app -->|"loads package data"| node_dnf
node_explore -->|"searches"| node_copr
node_copr -->|"queries"| node_copr_api
node_explore -->|"loads catalog"| node_flatpak
node_flatpak -->|"fetches metadata"| node_flathub
node_preferences -->|"enables source"| node_terra
node_installed_updates -->|"checks packages"| node_dnf
node_review -->|"previews transaction"| node_dnf
node_review -->|"applies operation"| node_privileged_ops
node_local_rpm -->|"installs RPM"| node_dnf
node_privileged_ops -->|"runs commands"| node_dnf_service
node_privileged_ops -->|"requests authorization"| node_polkit
node_app -->|"supports"| node_background
node_background -->|"notifies updates"| node_user
node_app -->|"checks releases"| node_release_updates
node_release_updates -->|"fetches release"| node_release_service

click node_entry "https://github.com/inaciops/fedora-store/blob/main/fedora_store/__main__.py"
click node_app "https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py"
click node_preferences "https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py"
click node_explore "https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py"
click node_package_model "https://github.com/inaciops/fedora-store/blob/main/fedora_store/catalog.py"
click node_installed_updates "https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py"
click node_review "https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py"
click node_local_rpm "https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py"
click node_dnf "https://github.com/inaciops/fedora-store/blob/main/fedora_store/repo.py"
click node_privileged_ops "https://github.com/inaciops/fedora-store/blob/main/fedora_store/repo.py"
click node_copr "https://github.com/inaciops/fedora-store/blob/main/fedora_store/repo.py"
click node_flatpak "https://github.com/inaciops/fedora-store/blob/main/fedora_store/repo.py"
click node_terra "https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py"
click node_background "https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py"
click node_release_updates "https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.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_app,node_preferences,node_user toneBlue
class node_explore,node_package_model,node_installed_updates,node_review,node_local_rpm toneAmber
class node_dnf,node_privileged_ops,node_copr,node_flatpak,node_terra,node_dnf_service,node_polkit,node_copr_api,node_flathub toneMint
class node_background,node_release_updates,node_release_service toneRose
```

## Components

### Desktop interface

- [App entry point](https://github.com/inaciops/fedora-store/blob/main/fedora_store/__main__.py): `fedora_store/__main__.py`
- [Application UI](https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py): `fedora_store/app.py`
- [Navigation and settings](https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py): `fedora_store/app.py`

### Package workflows

- [Explore catalog](https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py): `fedora_store/app.py`
- [Package model](https://github.com/inaciops/fedora-store/blob/main/fedora_store/catalog.py): `fedora_store/catalog.py`
- [Installed and updates](https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py): `fedora_store/app.py`
- [Transaction review](https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py): `fedora_store/app.py`
- [Local RPM workflow](https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py): `fedora_store/app.py`

### Sources and system

- [DNF queries and plans](https://github.com/inaciops/fedora-store/blob/main/fedora_store/repo.py): `fedora_store/repo.py`
- [Privileged operations](https://github.com/inaciops/fedora-store/blob/main/fedora_store/repo.py): `fedora_store/repo.py`
- [COPR discovery](https://github.com/inaciops/fedora-store/blob/main/fedora_store/repo.py): `fedora_store/repo.py`
- [Flatpak catalog](https://github.com/inaciops/fedora-store/blob/main/fedora_store/repo.py): `fedora_store/repo.py`
- [Terra source](https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py): `fedora_store/app.py`
- **DNF system**
- **Polkit authorization**
- **Copr API**
- **Flathub**

### Background features

- [Tray and autostart](https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py): `fedora_store/app.py`
- [App release updates](https://github.com/inaciops/fedora-store/blob/main/fedora_store/app.py): `fedora_store/app.py`
- **Release service**

### Other components

- **User**

## Connections

- User → App entry point: launches (evidence: `README.md`)
- App entry point → Application UI: starts (evidence: `fedora_store/__main__.py`)
- User → Application UI: uses (evidence: `README.md`)
- Application UI → Package model: uses model (evidence: `fedora_store/app.py`)
- Application UI → DNF queries and plans: loads package data (evidence: `fedora_store/app.py`)
- Explore catalog → COPR discovery: searches (evidence: `fedora_store/app.py`)
- COPR discovery → Copr API: queries (evidence: `fedora_store/repo.py`)
- Explore catalog → Flatpak catalog: loads catalog (evidence: `fedora_store/app.py`)
- Flatpak catalog → Flathub: fetches metadata (evidence: `fedora_store/repo.py`)
- Navigation and settings → Terra source: enables source (evidence: `fedora_store/app.py`)
- Installed and updates → DNF queries and plans: checks packages (evidence: `fedora_store/app.py`)
- Transaction review → DNF queries and plans: previews transaction (evidence: `README.md`)
- Transaction review → Privileged operations: applies operation (evidence: `README.md`)
- Local RPM workflow → DNF queries and plans: installs RPM (evidence: `README.md`)
- Privileged operations → DNF system: runs commands (evidence: `fedora_store/repo.py`)
- Privileged operations → Polkit authorization: requests authorization (evidence: `README.md`)
- Application UI → Tray and autostart: supports (evidence: `README.md`)
- Tray and autostart → User: notifies updates (evidence: `README.md`)
- Application UI → App release updates: checks releases (evidence: `fedora_store/app.py`)
- App release updates → Release service: fetches release
