# vignesh170000/majorproject_vignesh architecture

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

- Interactive diagram: https://gitdiagram.com/vignesh170000/majorproject_vignesh
- Repository: https://github.com/vignesh170000/majorproject_vignesh

## Overview

ARIA is a browser-based voice-assistant application backed by a Flask service. The primary workflow is a user entering or speaking a command in the web interface, which sends it to Flask for assistant processing and returns a response; the interface also provides local assistant tools and session features. Flask exposes authentication and chat-history APIs backed by SQLite. The source excerpts show the main command path, but do not reveal all client event wiring or assistant dispatch branches, so those relationships are omitted where unverified.

Main entry points: [`voice_assistant.py`](https://github.com/vignesh170000/majorproject_vignesh/blob/main/voice_assistant.py) (Command processing), [`static/js/app.js`](https://github.com/vignesh170000/majorproject_vignesh/blob/main/static/js/app.js) (Assistant interface), [`app.py`](https://github.com/vignesh170000/majorproject_vignesh/blob/main/app.py) (HTTP routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_web_ui["Assistant interface<br/>[app.js]"]
  node_browser_speech["Browser speech and voice<br/>[app.js]"]
  node_local_tools["Local tools and commands<br/>[app.js]"]
  node_sessions["Conversation sessions<br/>[app.js]"]
end

subgraph group_service["Assistant service"]
  node_flask["HTTP routes<br/>[app.py]"]
  node_assistant["Command processing<br/>[voice_assistant.py]"]
  node_speech_engine["Server speech I/O<br/>[voice_assistant.py]"]
  node_system_info["System information<br/>[voice_assistant.py]"]
  node_search["Search and knowledge<br/>[voice_assistant.py]"]
end

subgraph group_identity["Identity and history"]
  node_auth["Account authentication<br/>[app.py]"]
  node_history["Chat history API<br/>[app.py]"]
  node_sqlite[("SQLite database<br/>[app.py]")]
end

subgraph group_integrations["External capabilities"]
  node_speech_provider["Google speech recognition"]
  node_web_services["Search and knowledge services"]
  node_google_identity["Google identity"]
end

node_user(("Assistant user"))

node_user -->|"enters commands"| node_web_ui
node_web_ui -->|"sends commands"| node_flask
node_flask -->|"processes commands"| node_assistant
node_assistant -->|"returns response"| node_flask
node_user -.->|"speaks commands"| node_browser_speech
node_browser_speech -.->|"provides input"| node_web_ui
node_web_ui -->|"opens tools"| node_local_tools
node_web_ui -->|"stores sessions"| node_sessions
node_flask -->|"routes authentication"| node_auth
node_auth -->|"reads and writes users"| node_sqlite
node_flask -->|"routes history"| node_history
node_history -->|"reads and writes history"| node_sqlite
node_assistant -->|"speaks responses"| node_speech_engine
node_assistant -.->|"searches information"| node_search
node_assistant -.->|"reads system stats"| node_system_info
node_speech_engine -->|"recognizes speech"| node_speech_provider
node_search -->|"queries sources"| node_web_services
node_user -.->|"signs in"| node_google_identity
node_google_identity -.->|"supplies identity"| node_auth

click node_web_ui "https://github.com/vignesh170000/majorproject_vignesh/blob/main/static/js/app.js"
click node_browser_speech "https://github.com/vignesh170000/majorproject_vignesh/blob/main/static/js/app.js"
click node_local_tools "https://github.com/vignesh170000/majorproject_vignesh/blob/main/static/js/app.js"
click node_sessions "https://github.com/vignesh170000/majorproject_vignesh/blob/main/static/js/app.js"
click node_flask "https://github.com/vignesh170000/majorproject_vignesh/blob/main/app.py"
click node_assistant "https://github.com/vignesh170000/majorproject_vignesh/blob/main/voice_assistant.py"
click node_speech_engine "https://github.com/vignesh170000/majorproject_vignesh/blob/main/voice_assistant.py"
click node_system_info "https://github.com/vignesh170000/majorproject_vignesh/blob/main/voice_assistant.py"
click node_search "https://github.com/vignesh170000/majorproject_vignesh/blob/main/voice_assistant.py"
click node_auth "https://github.com/vignesh170000/majorproject_vignesh/blob/main/app.py"
click node_history "https://github.com/vignesh170000/majorproject_vignesh/blob/main/app.py"
click node_sqlite "https://github.com/vignesh170000/majorproject_vignesh/blob/main/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_web_ui,node_browser_speech,node_local_tools,node_sessions,node_user toneBlue
class node_flask,node_assistant,node_speech_engine,node_system_info,node_search toneAmber
class node_auth,node_history,node_sqlite toneMint
class node_speech_provider,node_web_services,node_google_identity toneRose
```

## Components

### User interaction

- [Assistant interface](https://github.com/vignesh170000/majorproject_vignesh/blob/main/static/js/app.js): `static/js/app.js`
- [Browser speech and voice](https://github.com/vignesh170000/majorproject_vignesh/blob/main/static/js/app.js): `static/js/app.js`
- [Local tools and commands](https://github.com/vignesh170000/majorproject_vignesh/blob/main/static/js/app.js): `static/js/app.js`
- [Conversation sessions](https://github.com/vignesh170000/majorproject_vignesh/blob/main/static/js/app.js): `static/js/app.js`

### Assistant service

- [HTTP routes](https://github.com/vignesh170000/majorproject_vignesh/blob/main/app.py): `app.py`
- [Command processing](https://github.com/vignesh170000/majorproject_vignesh/blob/main/voice_assistant.py): `voice_assistant.py`
- [Server speech I/O](https://github.com/vignesh170000/majorproject_vignesh/blob/main/voice_assistant.py): `voice_assistant.py`
- [System information](https://github.com/vignesh170000/majorproject_vignesh/blob/main/voice_assistant.py): `voice_assistant.py`
- [Search and knowledge](https://github.com/vignesh170000/majorproject_vignesh/blob/main/voice_assistant.py): `voice_assistant.py`

### Identity and history

- [Account authentication](https://github.com/vignesh170000/majorproject_vignesh/blob/main/app.py): `app.py`
- [Chat history API](https://github.com/vignesh170000/majorproject_vignesh/blob/main/app.py): `app.py`
- [SQLite database](https://github.com/vignesh170000/majorproject_vignesh/blob/main/app.py): `app.py`

### External capabilities

- **Google speech recognition**
- **Search and knowledge services**
- **Google identity**

### Other components

- **Assistant user**

## Connections

- Assistant user → Assistant interface: enters commands (evidence: `static/js/app.js`)
- Assistant interface → HTTP routes: sends commands (evidence: `static/js/app.js`)
- HTTP routes → Command processing: processes commands (evidence: `app.py`)
- Command processing → HTTP routes: returns response (evidence: `app.py`)
- Assistant user → Browser speech and voice: speaks commands
- Browser speech and voice → Assistant interface: provides input (evidence: `static/js/app.js`)
- Assistant interface → Local tools and commands: opens tools (evidence: `static/js/app.js`)
- Assistant interface → Conversation sessions: stores sessions (evidence: `static/js/app.js`)
- HTTP routes → Account authentication: routes authentication (evidence: `app.py`)
- Account authentication → SQLite database: reads and writes users (evidence: `app.py`)
- HTTP routes → Chat history API: routes history (evidence: `app.py`)
- Chat history API → SQLite database: reads and writes history (evidence: `app.py`)
- Command processing → Server speech I/O: speaks responses (evidence: `app.py`)
- Command processing → Search and knowledge: searches information (evidence: `voice_assistant.py`)
- Command processing → System information: reads system stats (evidence: `voice_assistant.py`)
- Server speech I/O → Google speech recognition: recognizes speech (evidence: `voice_assistant.py`)
- Search and knowledge → Search and knowledge services: queries sources (evidence: `voice_assistant.py`)
- Assistant user → Google identity: signs in
- Google identity → Account authentication: supplies identity
