How hdcola/lexiai works
Main System Components
a) Frontend Layer (Vue.js Application):
• User Interface Components
• State Management (Stores)
• Router
• Asset Management
b) Gemini AI Integration Layer:
• WebSocket Client
• Audio Processing System
• Tools Integration
• Configuration Management
c) External Services:
• Authentication System
• AI Services
• Tool Services (Weather, Google Search)
Detailed Component Breakdown
Frontend Architecture:
• Vue 3 component hierarchy
• Main views (Home, Login, Register, Settings, Gemini)
• Stores (auth, jwt, user) and their interactions
• Routing system
Gemini Integration:
• Audio Processing Pipeline
• Audio Recorder
• Audio Streamer
• Audio Worklets
• WebSocket Communication
• Tool Management System
┌─ User Interface Layer ─────────────────────┐
• ┌─ Views ─┐ ┌─ Components ─┐ ┌─ Stores ─┐ │
• Home │ │ GeminiChat │ │ Auth │ │
• Login │ │ AudioUI │ │ JWT │ │
• Settings│ │ Selection │ │ User │ │
• ┘ └─────────────┘ └─────────┘ │
• Gemini Integration Layer ───────────────┤
• ┌─ Audio ─┐ ┌─ Tools ───┐ ┌─ Utils ──┐ │
• Recorder│ │ Search │ │ Logger │ │
• Streamer│ │ Weather │ │ ErrorMgmt│ │
• Worklets│ │ Manager │ │ Registry │ │
• ┘ └───────────┘ └──────────┘ │
• External Services ────────────────────┤
• ┌─ Auth ──┐ ┌─ AI ─────┐ ┌─ APIs ───┐ │
• JWT │ │ Gemini │ │ Weather │ │
• Session │ │ Speech │ │ Search │ │
• ┘ └──────────┘ └─────────┘ │
• ┘
Implementation Details
• Vue 3 + TypeScript stack
• Vite as build tool
• Pinia for state management
• WebSocket for real-time communication
• Audio Worklet architecture
• External API integrations