# gladiator07/jarvis architecture

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

- Interactive diagram: https://gitdiagram.com/gladiator07/jarvis
- Repository: https://github.com/gladiator07/jarvis

## Overview

JARVIS is a Windows-oriented desktop voice assistant. The main workflow is GUI launch, microphone transcription, command routing, feature execution, and spoken/displayed results. Domain features also cover calendar, web search, email, location, system status, notes, and desktop automation. Several README-listed capabilities are implemented directly in main.py rather than separate feature modules. The graph uses documented capabilities where source excerpts are incomplete; edges are limited to relationships visible in excerpts or stated by the README.

Main entry points: [`main.py`](https://github.com/gladiator07/jarvis/blob/master/main.py) (Command loop), [`Jarvis/features/weather.py`](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/weather.py) (Weather lookup), [`Jarvis/__init__.py`](https://github.com/gladiator07/jarvis/blob/master/Jarvis/__init__.py) (Assistant facade), [`Jarvis/features/wikipedia.py`](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/wikipedia.py) (Wikipedia lookup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Assistant runtime"]
  node_main["Command loop<br/>[main.py]"]
  node_assistant["Assistant facade<br/>[__init__.py]"]
end

subgraph group_features["Assistant capabilities"]
  node_date["Date and time<br/>[date_time.py]"]
  node_weather["Weather lookup<br/>[weather.py]"]
  node_wiki["Wikipedia lookup<br/>[wikipedia.py]"]
  node_news["News headlines<br/>[news.py]"]
  node_email["Email sending<br/>[send_email.py]"]
  node_search["Google search<br/>[google_search.py]"]
  node_calendar["Calendar events<br/>[google_calendar.py]"]
  node_notes["Note taking<br/>[note.py]"]
  node_stats["System status<br/>[system_stats.py]"]
  node_location["Location services<br/>[loc.py]"]
end

subgraph group_desktop["Desktop interaction"]
  node_gui["Desktop GUI<br/>[gui.py]"]
  node_launch["App launching<br/>[launch_app.py]"]
  node_webopen["Website opening<br/>[website_open.py]"]
  node_other["Other voice actions<br/>[main.py]"]
end

subgraph group_integrations["External services"]
  node_config["API configuration<br/>[config.py]"]
  node_openweather["OpenWeatherMap"]
  node_google["Google services"]
  node_newsapi["News API"]
  node_wikipedia_service["Wikipedia service"]
  node_speech["Speech recognition and synthesis"]
  node_email_service["Email service"]
  node_system["Operating system"]
end

node_user(("User"))

node_user -->|"starts assistant"| node_gui
node_gui -->|"starts task"| node_main
node_main -->|"captures and dispatches"| node_assistant
node_assistant -->|"transcribes and speaks"| node_speech
node_main -->|"requests date/time"| node_date
node_main -->|"requests app launch"| node_launch
node_main -->|"requests website"| node_webopen
node_main -->|"requests weather"| node_weather
node_weather -->|"reads key"| node_config
node_weather -->|"fetches forecast"| node_openweather
node_main -->|"requests topic"| node_wiki
node_wiki -.->|"queries"| node_wikipedia_service
node_main -->|"requests headlines"| node_news
node_news -->|"fetches headlines"| node_newsapi
node_main -->|"requests email"| node_email
node_email -.->|"sends message"| node_email_service
node_main -->|"requests search"| node_search
node_search -->|"opens search"| node_google
node_main -->|"requests events"| node_calendar
node_calendar -->|"reads calendar"| node_google
node_main -->|"requests note"| node_notes
node_main -->|"requests status"| node_stats
node_stats -->|"reads metrics"| node_system
node_main -->|"requests location"| node_location
node_location -->|"opens map"| node_google
node_main -->|"handles direct actions"| node_other
node_other -->|"controls desktop"| node_system

click node_gui "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/gui.py"
click node_main "https://github.com/gladiator07/jarvis/blob/master/main.py"
click node_assistant "https://github.com/gladiator07/jarvis/blob/master/Jarvis/__init__.py"
click node_config "https://github.com/gladiator07/jarvis/blob/master/Jarvis/config/config.py"
click node_date "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/date_time.py"
click node_launch "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/launch_app.py"
click node_webopen "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/website_open.py"
click node_weather "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/weather.py"
click node_wiki "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/wikipedia.py"
click node_news "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/news.py"
click node_email "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/send_email.py"
click node_search "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/google_search.py"
click node_calendar "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/google_calendar.py"
click node_notes "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/note.py"
click node_stats "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/system_stats.py"
click node_location "https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/loc.py"
click node_other "https://github.com/gladiator07/jarvis/blob/master/main.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_main,node_assistant,node_user toneBlue
class node_date,node_weather,node_wiki,node_news,node_email,node_search,node_calendar,node_notes,node_stats,node_location toneAmber
class node_gui,node_launch,node_webopen,node_other toneMint
class node_config,node_openweather,node_google,node_newsapi,node_wikipedia_service,node_speech,node_email_service,node_system toneRose
```

## Components

### Assistant runtime

- [Command loop](https://github.com/gladiator07/jarvis/blob/master/main.py): `main.py`
- [Assistant facade](https://github.com/gladiator07/jarvis/blob/master/Jarvis/__init__.py): `Jarvis/__init__.py`

### Assistant capabilities

- [Date and time](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/date_time.py): `Jarvis/features/date_time.py`
- [Weather lookup](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/weather.py): `Jarvis/features/weather.py`
- [Wikipedia lookup](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/wikipedia.py): `Jarvis/features/wikipedia.py`
- [News headlines](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/news.py): `Jarvis/features/news.py`
- [Email sending](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/send_email.py): `Jarvis/features/send_email.py`
- [Google search](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/google_search.py): `Jarvis/features/google_search.py`
- [Calendar events](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/google_calendar.py): `Jarvis/features/google_calendar.py`
- [Note taking](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/note.py): `Jarvis/features/note.py`
- [System status](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/system_stats.py): `Jarvis/features/system_stats.py`
- [Location services](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/loc.py): `Jarvis/features/loc.py`

### Desktop interaction

- [Desktop GUI](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/gui.py): `Jarvis/features/gui.py`
- [App launching](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/launch_app.py): `Jarvis/features/launch_app.py`
- [Website opening](https://github.com/gladiator07/jarvis/blob/master/Jarvis/features/website_open.py): `Jarvis/features/website_open.py`
- [Other voice actions](https://github.com/gladiator07/jarvis/blob/master/main.py): `main.py`

### External services

- [API configuration](https://github.com/gladiator07/jarvis/blob/master/Jarvis/config/config.py): `Jarvis/config/config.py`
- **OpenWeatherMap**
- **Google services**
- **News API**
- **Wikipedia service**
- **Speech recognition and synthesis**
- **Email service**
- **Operating system**

### Other components

- **User**

## Connections

- User → Desktop GUI: starts assistant (evidence: `README.md`)
- Desktop GUI → Command loop: starts task (evidence: `main.py`)
- Command loop → Assistant facade: captures and dispatches (evidence: `main.py`)
- Assistant facade → Speech recognition and synthesis: transcribes and speaks (evidence: `Jarvis/__init__.py`)
- Command loop → Date and time: requests date/time
- Command loop → App launching: requests app launch
- Command loop → Website opening: requests website
- Command loop → Weather lookup: requests weather
- Weather lookup → API configuration: reads key (evidence: `Jarvis/features/weather.py`)
- Weather lookup → OpenWeatherMap: fetches forecast (evidence: `Jarvis/features/weather.py`)
- Command loop → Wikipedia lookup: requests topic
- Wikipedia lookup → Wikipedia service: queries
- Command loop → News headlines: requests headlines
- News headlines → News API: fetches headlines (evidence: `Jarvis/features/news.py`)
- Command loop → Email sending: requests email
- Email sending → Email service: sends message
- Command loop → Google search: requests search
- Google search → Google services: opens search (evidence: `Jarvis/features/google_search.py`)
- Command loop → Calendar events: requests events
- Calendar events → Google services: reads calendar (evidence: `Jarvis/features/google_calendar.py`)
- Command loop → Note taking: requests note
- Command loop → System status: requests status
- System status → Operating system: reads metrics (evidence: `Jarvis/features/system_stats.py`)
- Command loop → Location services: requests location
- Location services → Google services: opens map (evidence: `Jarvis/features/loc.py`)
- Command loop → Other voice actions: handles direct actions (evidence: `main.py`)
- Other voice actions → Operating system: controls desktop (evidence: `main.py`)
