# romanianunion-glitch/jarvis architecture

> Architecture diagram of the GitHub repository romanianunion-glitch/jarvis, 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/romanianunion-glitch/jarvis
- Repository: https://github.com/romanianunion-glitch/jarvis

## Overview

JARVIS is a cross-platform assistant whose main user workflow sends a question through the shared Python CLI to Open WebUI, which routes it to a configured AI provider and returns an answer. Windows and Linux launchers provide platform entry points; Docker Compose and generated environment configuration support the Open WebUI deployment, with optional Ollama and platform-specific PWA manifests. The README documents these capabilities, but launcher wiring and several deployment details were not sampled, so those links are shown as unverified where appropriate.

Main entry points: [`core/python/chat.py`](https://github.com/romanianunion-glitch/jarvis/blob/main/core/python/chat.py) (Chat CLI), [`core/python/docker_config.py`](https://github.com/romanianunion-glitch/jarvis/blob/main/core/python/docker_config.py) (Docker env generator), [`core/python/config.py`](https://github.com/romanianunion-glitch/jarvis/blob/main/core/python/config.py) (Config loader), [`platforms/windows/bin/jarvis-entry.ps1`](https://github.com/romanianunion-glitch/jarvis/blob/main/platforms/windows/bin/jarvis-entry.ps1) (Windows launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["User client"]
  node_windows["Windows launcher<br/>[jarvis-entry.ps1]"]
  node_linux["Linux launcher"]
  node_chat["Chat CLI<br/>[chat.py]"]
end

subgraph group_config["Shared configuration"]
  node_config_loader["Config loader<br/>[config.py]"]
  node_jarvis_config["JARVIS config<br/>[jarvis.yaml]"]
end

subgraph group_deployment["Deployment"]
  node_env_generator["Docker env generator<br/>[docker_config.py]"]
  node_compose["Open WebUI Compose<br/>[compose.yaml]"]
  node_pwa["Platform PWA manifests<br/>[manifest.json]"]
end

subgraph group_integrations["AI integrations"]
  node_webui["Open WebUI"]
  node_provider["Configured AI provider"]
  node_ollama["Optional Ollama<br/>[ollama.sh]"]
end

node_user(("User"))

node_user -.->|"launches"| node_windows
node_user -.->|"launches"| node_linux
node_windows -.->|"invokes"| node_chat
node_linux -.->|"invokes"| node_chat
node_chat -->|"loads settings"| node_config_loader
node_config_loader -->|"reads"| node_jarvis_config
node_chat -->|"posts chat request"| node_webui
node_webui -->|"returns answer"| node_chat
node_provider -->|"configured in"| node_webui
node_compose -->|"deploys"| node_webui
node_env_generator -->|"reads settings"| node_config_loader
node_env_generator -.->|"provides environment"| node_compose
node_env_generator -.->|"selects manifest"| node_pwa
node_ollama -->|"optional local models"| node_webui

click node_windows "https://github.com/romanianunion-glitch/jarvis/blob/main/platforms/windows/bin/jarvis-entry.ps1"
click node_linux "https://github.com/romanianunion-glitch/jarvis/blob/main/platforms/linux/bin/jarvis"
click node_chat "https://github.com/romanianunion-glitch/jarvis/blob/main/core/python/chat.py"
click node_config_loader "https://github.com/romanianunion-glitch/jarvis/blob/main/core/python/config.py"
click node_jarvis_config "https://github.com/romanianunion-glitch/jarvis/blob/main/core/config/jarvis.yaml"
click node_env_generator "https://github.com/romanianunion-glitch/jarvis/blob/main/core/python/docker_config.py"
click node_compose "https://github.com/romanianunion-glitch/jarvis/blob/main/docker/compose.yaml"
click node_pwa "https://github.com/romanianunion-glitch/jarvis/blob/main/pwa/manifest.json"
click node_ollama "https://github.com/romanianunion-glitch/jarvis/blob/main/platforms/linux/services/ollama.sh"

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_windows,node_linux,node_chat,node_user toneBlue
class node_config_loader,node_jarvis_config toneAmber
class node_env_generator,node_compose,node_pwa toneMint
class node_webui,node_provider,node_ollama toneRose
```

## Components

### User client

- [Windows launcher](https://github.com/romanianunion-glitch/jarvis/blob/main/platforms/windows/bin/jarvis-entry.ps1): `platforms/windows/bin/jarvis-entry.ps1`
- [Linux launcher](https://github.com/romanianunion-glitch/jarvis/blob/main/platforms/linux/bin/jarvis): `platforms/linux/bin/jarvis`
- [Chat CLI](https://github.com/romanianunion-glitch/jarvis/blob/main/core/python/chat.py): `core/python/chat.py`

### Shared configuration

- [Config loader](https://github.com/romanianunion-glitch/jarvis/blob/main/core/python/config.py): `core/python/config.py`
- [JARVIS config](https://github.com/romanianunion-glitch/jarvis/blob/main/core/config/jarvis.yaml): `core/config/jarvis.yaml`

### Deployment

- [Docker env generator](https://github.com/romanianunion-glitch/jarvis/blob/main/core/python/docker_config.py): `core/python/docker_config.py`
- [Open WebUI Compose](https://github.com/romanianunion-glitch/jarvis/blob/main/docker/compose.yaml): `docker/compose.yaml`
- [Platform PWA manifests](https://github.com/romanianunion-glitch/jarvis/blob/main/pwa/manifest.json): `pwa/manifest.json`

### AI integrations

- **Open WebUI**
- **Configured AI provider**
- [Optional Ollama](https://github.com/romanianunion-glitch/jarvis/blob/main/platforms/linux/services/ollama.sh): `platforms/linux/services/ollama.sh`

### Other components

- **User**

## Connections

- User → Windows launcher: launches
- User → Linux launcher: launches
- Windows launcher → Chat CLI: invokes
- Linux launcher → Chat CLI: invokes
- Chat CLI → Config loader: loads settings (evidence: `core/python/chat.py`)
- Config loader → JARVIS config: reads (evidence: `core/python/config.py`)
- Chat CLI → Open WebUI: posts chat request (evidence: `core/python/chat.py`)
- Open WebUI → Chat CLI: returns answer (evidence: `core/python/chat.py`)
- Configured AI provider → Open WebUI: configured in (evidence: `README.md`)
- Open WebUI Compose → Open WebUI: deploys (evidence: `README.md`)
- Docker env generator → Config loader: reads settings (evidence: `core/python/docker_config.py`)
- Docker env generator → Open WebUI Compose: provides environment
- Docker env generator → Platform PWA manifests: selects manifest
- Optional Ollama → Open WebUI: optional local models (evidence: `README.md`)
