# vannu07/jarvis architecture

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

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

## Overview

Jarvis is a voice-controlled desktop assistant with a web UI and face authentication. The principal workflow starts in the launcher, initializes the interface and authentication, then listens for speech, routes the recognized command to an action, and returns spoken/UI feedback. The README documents additional capabilities, including wake words and platform integrations. Several feature internals and frontend wiring were not sampled, so those relationships are shown only where documented or explicitly evidenced by the source index.

Main entry points: [`backend/command.py`](https://github.com/vannu07/jarvis/blob/main/backend/command.py) (Speech input and output), [`main.py`](https://github.com/vannu07/jarvis/blob/main/main.py) (Assistant runtime), [`backend/feature.py`](https://github.com/vannu07/jarvis/blob/main/backend/feature.py) (Command actions), [`frontend/index.html`](https://github.com/vannu07/jarvis/blob/main/frontend/index.html) (Web interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime and interaction"]
  node_launcher["Process launcher<br/>[run.py]"]
  node_app["Assistant runtime<br/>[main.py]"]
  node_webui["Web interface<br/>[index.html]"]
  node_ui_scripts["UI scripts<br/>[controller.js]"]
  node_ui_logic["UI behavior<br/>[script.js]"]
  node_feedback["Status and feedback<br/>[feedback.py]"]
  node_configuration["Configuration<br/>[config_manager.py]"]
end

subgraph group_recognition["Recognition and intent"]
  node_speech["Speech input and output<br/>[command.py]"]
  node_face_auth["Face authentication<br/>[recognize.py]"]
  node_wake_word["Wake-word detection<br/>[feature.py]"]
  node_intent_parser["Intent matching<br/>[command_parser.py]"]
end

subgraph group_actions["Assistant actions"]
  node_feature_router["Command actions<br/>[feature.py]"]
  node_reminders["Reminders"]
  node_sqlite[("Assistant database<br/>[feature.py]")]
end

subgraph group_integrations["External services"]
  node_weather["Weather data<br/>[weather_fetcher.py]"]
  node_weather_api["OpenWeatherMap"]
  node_whatsapp["WhatsApp automation<br/>[feature.py]"]
  node_youtube["YouTube control<br/>[feature.py]"]
  node_ai_chat["AI chatbot<br/>[feature.py]"]
  node_system_control["System control<br/>[feature.py]"]
  node_news["News lookup<br/>[news_fetcher.py]"]
end

node_user(("User"))

node_user -.->|"starts assistant"| node_launcher
node_launcher -->|"starts runtime"| node_app
node_launcher -->|"starts listener"| node_wake_word
node_app -->|"serves interface"| node_webui
node_user -.->|"uses interface"| node_webui
node_webui -.->|"sends commands"| node_speech
node_app -->|"authenticates user"| node_face_auth
node_app -->|"captures commands"| node_speech
node_speech -->|"routes commands"| node_feature_router
node_feature_router -->|"matches intent"| node_intent_parser
node_app -->|"sets reminder"| node_reminders
node_app -->|"reports status"| node_feedback
node_speech -->|"reports status"| node_feedback
node_app -->|"reads settings"| node_configuration
node_speech -->|"dispatches requests"| node_whatsapp
node_speech -->|"dispatches requests"| node_youtube
node_speech -->|"requests forecast"| node_weather
node_feature_router -->|"fetches forecasts"| node_weather
node_weather -.->|"requests weather"| node_weather_api
node_speech -->|"dispatches query"| node_ai_chat
node_feature_router -->|"reads contacts"| node_sqlite
node_feature_router -.->|"controls applications"| node_system_control
node_feature_router -.->|"retrieves headlines"| node_news
node_ui_scripts -.->|"controls interface"| node_webui
node_ui_logic -.->|"updates display"| node_webui

click node_launcher "https://github.com/vannu07/jarvis/blob/main/run.py"
click node_app "https://github.com/vannu07/jarvis/blob/main/main.py"
click node_webui "https://github.com/vannu07/jarvis/blob/main/frontend/index.html"
click node_ui_scripts "https://github.com/vannu07/jarvis/blob/main/frontend/controller.js"
click node_ui_logic "https://github.com/vannu07/jarvis/blob/main/frontend/script.js"
click node_speech "https://github.com/vannu07/jarvis/blob/main/backend/command.py"
click node_face_auth "https://github.com/vannu07/jarvis/blob/main/backend/auth/recognize.py"
click node_wake_word "https://github.com/vannu07/jarvis/blob/main/backend/feature.py"
click node_intent_parser "https://github.com/vannu07/jarvis/blob/main/backend/nlp/command_parser.py"
click node_feature_router "https://github.com/vannu07/jarvis/blob/main/backend/feature.py"
click node_feedback "https://github.com/vannu07/jarvis/blob/main/backend/feedback.py"
click node_configuration "https://github.com/vannu07/jarvis/blob/main/backend/config_manager.py"
click node_sqlite "https://github.com/vannu07/jarvis/blob/main/backend/feature.py"
click node_weather "https://github.com/vannu07/jarvis/blob/main/weather_fetcher.py"
click node_whatsapp "https://github.com/vannu07/jarvis/blob/main/backend/feature.py"
click node_youtube "https://github.com/vannu07/jarvis/blob/main/backend/feature.py"
click node_ai_chat "https://github.com/vannu07/jarvis/blob/main/backend/feature.py"
click node_system_control "https://github.com/vannu07/jarvis/blob/main/backend/feature.py"
click node_news "https://github.com/vannu07/jarvis/blob/main/news_fetcher.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_launcher,node_app,node_webui,node_ui_scripts,node_ui_logic,node_feedback,node_configuration,node_user toneBlue
class node_speech,node_face_auth,node_wake_word,node_intent_parser toneAmber
class node_feature_router,node_reminders,node_sqlite toneMint
class node_weather,node_weather_api,node_whatsapp,node_youtube,node_ai_chat,node_system_control,node_news toneRose
```

## Components

### Runtime and interaction

- [Process launcher](https://github.com/vannu07/jarvis/blob/main/run.py): `run.py`
- [Assistant runtime](https://github.com/vannu07/jarvis/blob/main/main.py): `main.py`
- [Web interface](https://github.com/vannu07/jarvis/blob/main/frontend/index.html): `frontend/index.html`
- [UI scripts](https://github.com/vannu07/jarvis/blob/main/frontend/controller.js): `frontend/controller.js`
- [UI behavior](https://github.com/vannu07/jarvis/blob/main/frontend/script.js): `frontend/script.js`
- [Status and feedback](https://github.com/vannu07/jarvis/blob/main/backend/feedback.py): `backend/feedback.py`
- [Configuration](https://github.com/vannu07/jarvis/blob/main/backend/config_manager.py): `backend/config_manager.py`

### Recognition and intent

- [Speech input and output](https://github.com/vannu07/jarvis/blob/main/backend/command.py): `backend/command.py`
- [Face authentication](https://github.com/vannu07/jarvis/blob/main/backend/auth/recognize.py): `backend/auth/recognize.py`
- [Wake-word detection](https://github.com/vannu07/jarvis/blob/main/backend/feature.py): `backend/feature.py`
- [Intent matching](https://github.com/vannu07/jarvis/blob/main/backend/nlp/command_parser.py): `backend/nlp/command_parser.py`

### Assistant actions

- [Command actions](https://github.com/vannu07/jarvis/blob/main/backend/feature.py): `backend/feature.py`
- **Reminders**
- [Assistant database](https://github.com/vannu07/jarvis/blob/main/backend/feature.py): `backend/feature.py`

### External services

- [Weather data](https://github.com/vannu07/jarvis/blob/main/weather_fetcher.py): `weather_fetcher.py`
- **OpenWeatherMap**
- [WhatsApp automation](https://github.com/vannu07/jarvis/blob/main/backend/feature.py): `backend/feature.py`
- [YouTube control](https://github.com/vannu07/jarvis/blob/main/backend/feature.py): `backend/feature.py`
- [AI chatbot](https://github.com/vannu07/jarvis/blob/main/backend/feature.py): `backend/feature.py`
- [System control](https://github.com/vannu07/jarvis/blob/main/backend/feature.py): `backend/feature.py`
- [News lookup](https://github.com/vannu07/jarvis/blob/main/news_fetcher.py): `news_fetcher.py`

### Other components

- **User**

## Connections

- User → Process launcher: starts assistant
- Process launcher → Assistant runtime: starts runtime (evidence: `run.py`)
- Process launcher → Wake-word detection: starts listener (evidence: `run.py`)
- Assistant runtime → Web interface: serves interface (evidence: `main.py`)
- User → Web interface: uses interface (evidence: `README.md`)
- Web interface → Speech input and output: sends commands (evidence: `README.md`)
- Assistant runtime → Face authentication: authenticates user (evidence: `main.py`)
- Assistant runtime → Speech input and output: captures commands (evidence: `main.py`)
- Speech input and output → Command actions: routes commands (evidence: `backend/command.py`)
- Command actions → Intent matching: matches intent (evidence: `backend/feature.py`)
- Assistant runtime → Reminders: sets reminder (evidence: `main.py`)
- Assistant runtime → Status and feedback: reports status (evidence: `main.py`)
- Speech input and output → Status and feedback: reports status (evidence: `backend/command.py`)
- Assistant runtime → Configuration: reads settings (evidence: `main.py`)
- Speech input and output → WhatsApp automation: dispatches requests (evidence: `backend/command.py`)
- Speech input and output → YouTube control: dispatches requests (evidence: `backend/command.py`)
- Speech input and output → Weather data: requests forecast (evidence: `backend/command.py`)
- Command actions → Weather data: fetches forecasts (evidence: `backend/feature.py`)
- Weather data → OpenWeatherMap: requests weather (evidence: `README.md`)
- Speech input and output → AI chatbot: dispatches query (evidence: `backend/command.py`)
- Command actions → Assistant database: reads contacts (evidence: `backend/feature.py`)
- Command actions → System control: controls applications (evidence: `README.md`)
- Command actions → News lookup: retrieves headlines (evidence: `README.md`)
- UI scripts → Web interface: controls interface
- UI behavior → Web interface: updates display
