How thejaytea/writingtools works
High-Level Components
a) Create three main container blocks:
• Windows/Linux Implementation (Python-based)
• macOS Implementation (Swift-based)
• External Services/APIs
For the Windows/Linux Implementation, include these components
a) Core Components:
• Main Application (main.py)
• Writing Tool App (WritingToolApp.py)
• AI Provider Interface (aiprovider.py)
• Update Checker (update_checker.py)
b) UI Layer (show as a separate container):
• Response Window
• Settings Window
• Onboarding Window
• About Window
• Custom Popup Window
• Autostart Manager
For the macOS Implementation, include
a) Core Components:
• App Delegate
• App State Manager
• Update Checker
• Window Manager
b) Models Layer:
• AI Providers (OpenAI, Gemini)
• App Settings
• Custom Commands
c) UI Layer:
• Content View
• Response View
• Settings View
• Onboarding View
• Custom Modifiers
External Services (show as cloud components)
• OpenAI API
• Google Gemini API
• Local LLM Services (Ollama)
• Update Check Server
• Text input from system-wide selection to application
• Communication between UI and core components
• API calls to external services
• Response flow back to UI
• Update check communications
Important technical details
• Hotkey listener system (ctrl+space)
• Text selection mechanism
• API communication protocols
• Local configuration storage
• Cross-platform compatibility layers