# kumarvaibhav23456-sketch/monday-ai architecture

> Architecture diagram of the GitHub repository kumarvaibhav23456-sketch/monday-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kumarvaibhav23456-sketch/monday-ai
- Repository: https://github.com/kumarvaibhav23456-sketch/monday-ai

## Overview

MONDAY AI is a browser-based assistant whose main workflow is chatting with built-in or configured AI, with voice input and settings alongside the conversation. The product also includes profile and appearance controls, file/image uploads, and PWA support. Its application logic is concentrated in app.js; server.py provides a separate local HTTP server and Windows speech-to-text endpoint. The excerpts show only parts of the app, so edges for unsampled capabilities are included only where the README documents them.

Main entry points: [`app.js`](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js) (Assistant responses), [`server.py`](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/server.py) (Local HTTP server), [`manifest.json`](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/manifest.json) (PWA install support), [`sw.js`](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/sw.js) (PWA service worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversation["Assistant"]
  node_assistant_ui["Chat &amp; uploads<br/>[app.js]"]
  node_assistant_logic["Assistant responses<br/>[app.js]"]
  node_builtin["Built-in intelligence<br/>[app.js]"]
  node_gemini{{"Google Gemini"}}
end

subgraph group_personalization["Settings &amp; Profile"]
  node_settings["Settings dashboard<br/>[app.js]"]
  node_profile["Profile &amp; appearance<br/>[app.js]"]
  node_browser_storage[("Browser localStorage")]
end

subgraph group_voice["Voice"]
  node_voice_input["Voice input &amp; wake word<br/>[app.js]"]
  node_browser_audio{{"Browser audio APIs"}}
end

subgraph group_runtime["Local Runtime &amp; PWA"]
  node_local_server["Local HTTP server<br/>[server.py]"]
  node_windows_stt["Windows offline STT<br/>[server.py]"]
  node_pwa_worker["PWA service worker<br/>[sw.js]"]
  node_pwa_install["PWA install support<br/>[manifest.json]"]
end

node_user(("User"))

node_user -->|"sends messages"| node_assistant_ui
node_assistant_ui -.->|"submits chat"| node_assistant_logic
node_assistant_logic -->|"uses built-in"| node_builtin
node_assistant_logic -->|"calls API"| node_gemini
node_user -->|"configures"| node_settings
node_settings -->|"stores API key"| node_browser_storage
node_settings -->|"configures"| node_profile
node_user -->|"speaks"| node_voice_input
node_voice_input -->|"captures audio"| node_browser_audio
node_local_server -->|"transcribes WAV"| node_windows_stt
node_pwa_install -.->|"enables installability"| node_pwa_worker

click node_assistant_ui "https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js"
click node_assistant_logic "https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js"
click node_builtin "https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js"
click node_settings "https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js"
click node_profile "https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js"
click node_voice_input "https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js"
click node_local_server "https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/server.py"
click node_windows_stt "https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/server.py"
click node_pwa_worker "https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/sw.js"
click node_pwa_install "https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/manifest.json"

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_assistant_ui,node_assistant_logic,node_builtin,node_gemini,node_user toneBlue
class node_settings,node_profile,node_browser_storage toneAmber
class node_voice_input,node_browser_audio toneMint
class node_local_server,node_windows_stt,node_pwa_worker,node_pwa_install toneRose
```

## Components

### Assistant

- [Chat & uploads](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js): `app.js`
- [Assistant responses](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js): `app.js`
- [Built-in intelligence](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js): `app.js`
- **Google Gemini**

### Settings & Profile

- [Settings dashboard](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js): `app.js`
- [Profile & appearance](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js): `app.js`
- **Browser localStorage**

### Voice

- [Voice input & wake word](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/app.js): `app.js`
- **Browser audio APIs**

### Local Runtime & PWA

- [Local HTTP server](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/server.py): `server.py`
- [Windows offline STT](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/server.py): `server.py`
- [PWA service worker](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/sw.js): `sw.js`
- [PWA install support](https://github.com/kumarvaibhav23456-sketch/monday-ai/blob/main/manifest.json): `manifest.json`

### Other components

- **User**

## Connections

- User → Chat & uploads: sends messages (evidence: `README.md`)
- Chat & uploads → Assistant responses: submits chat (evidence: `app.js`)
- Assistant responses → Built-in intelligence: uses built-in (evidence: `README.md`)
- Assistant responses → Google Gemini: calls API (evidence: `README.md`)
- User → Settings dashboard: configures (evidence: `README.md`)
- Settings dashboard → Browser localStorage: stores API key (evidence: `README.md`)
- Settings dashboard → Profile & appearance: configures (evidence: `README.md`)
- User → Voice input & wake word: speaks (evidence: `README.md`)
- Voice input & wake word → Browser audio APIs: captures audio (evidence: `app.js`)
- Local HTTP server → Windows offline STT: transcribes WAV (evidence: `server.py`)
- PWA install support → PWA service worker: enables installability
