How nbonamy/witsy works
Main System Components
a) User Interface Layer
• Main Window (src/screens/Main.vue)
• Multiple specialized windows (Prompt Anywhere, Commands, Settings, etc.)
• Components (src/components/)
• Themes and styling (css/)
b) Core Application Layer
• Main Process (src/main/)
• Renderer Process (src/renderer.ts)
• IPC Communication Layer
c) Service Layer
• LLM Services (src/llms/)
• Voice Services (src/voice/)
• RAG System (src/rag/)
• Automation Services (src/automations/)
• Plugin System (src/plugins/)
d) External Integrations
• AI Providers (OpenAI, Anthropic, Ollama, etc.)
• External Services (Tavily, YouTube, etc.)
• File System Integration
• System Integration (OS-level features)
Component Relationships
a) Data Flow
• User Input → UI Components → Core Services
• LLM Services → Message Processing → UI Updates
• File System → RAG System → LLM Integration
• Voice Input → STT Services → Text Processing
• Text Output → TTS Services → Audio Playback
b) Integration Points
• Plugin System ↔ External Services
• Automation System ↔ OS Integration
• LLM Services ↔ AI Providers
• RAG System ↔ Document Storage
Architectural Patterns
Patterns:
a) Event-Driven Architecture
• Event Bus (src/composables/event_bus.ts)
• Message Processing Pipeline
b) Plugin Architecture
• Plugin System (src/plugins/)
• Service Extensions
c) Model-View Architecture
• Vue.js Components
• State Management