How joyguey/heyclicky works
Clicky is a macOS menu-bar AI tutor. The user opens its panel, starts push-to-talk, speaks while Clicky captures screen context, then receives a streaming Claude response that can include on-screen pointers; spoken replies use text-to-speech. The graph preserves transcription alternatives, screen/overlay interaction, and the Worker proxy as product capabilities. Several links are documented only in the README; unsampled implementation details are not inferred.
Main entry points: CompanionManager.swift Companion State · BuddyTranscriptionProvider.swift Provider Selection · index.ts Cloudflare Proxy · CompanionPanelView.swift Companion Panel
Components 22
Mac App
- App Lifecycle
leanring-buddy/leanring_buddyApp.swift - Menu Bar Panel
leanring-buddy/MenuBarPanelManager.swift - Companion Panel
leanring-buddy/CompanionPanelView.swift - Companion State
leanring-buddy/CompanionManager.swift - Product Analytics
leanring-buddy/ClickyAnalytics.swift
Voice Input
- Push-to-Talk Shortcut
leanring-buddy/GlobalPushToTalkShortcutMonitor.swift - Audio Capture
leanring-buddy/BuddyDictationManager.swift - Provider Selection
leanring-buddy/BuddyTranscriptionProvider.swift - AssemblyAI Streaming
leanring-buddy/AssemblyAIStreamingTranscriptionProvider.swift - OpenAI Transcription
leanring-buddy/OpenAIAudioTranscriptionProvider.swift - Apple Speech
leanring-buddy/AppleSpeechTranscriptionProvider.swift
AI Response
- Vision Chat
leanring-buddy/ClaudeAPI.swift - OpenAI API
leanring-buddy/OpenAIAPI.swift - Speech Playback
leanring-buddy/ElevenLabsTTSClient.swift
Screen Experience
- Screen Capture
leanring-buddy/CompanionScreenCaptureUtility.swift - Response Overlay
leanring-buddy/CompanionResponseOverlay.swift - Cursor Overlay
leanring-buddy/OverlayWindow.swift - Element Detection
leanring-buddy/ElementLocationDetector.swift - Window Positioning
leanring-buddy/WindowPositionManager.swift
API Proxy
- Cloudflare Proxy
worker/src/index.ts
Other components
- User
- AI and Speech APIs
Connections 24
- User → Menu Bar Panel: opens
README.md - App Lifecycle → Menu Bar Panel: creates
leanring-buddy/leanring_buddyApp.swift - Menu Bar Panel → Companion Panel: hosts
leanring-buddy/MenuBarPanelManager.swift - Companion Panel → Companion State: controls
leanring-buddy/CompanionPanelView.swift - Companion State → Audio Capture: manages
leanring-buddy/CompanionManager.swift - Companion State → Push-to-Talk Shortcut: starts
leanring-buddy/CompanionManager.swift - Audio Capture → Provider Selection: selects provider
leanring-buddy/BuddyDictationManager.swift - Provider Selection → AssemblyAI Streaming: selects
leanring-buddy/BuddyTranscriptionProvider.swift - Provider Selection → OpenAI Transcription: selects
leanring-buddy/BuddyTranscriptionProvider.swift - Provider Selection → Apple Speech: selects
leanring-buddy/BuddyTranscriptionProvider.swift - AssemblyAI Streaming → Cloudflare Proxy: fetches token
README.md - Audio Capture → Companion State: delivers transcript
leanring-buddy/CompanionManager.swift - Companion State → Screen Capture: captures context
leanring-buddy/CompanionManager.swift - Companion State → Vision Chat: sends prompt
leanring-buddy/CompanionManager.swift - Vision Chat → Cloudflare Proxy: proxies chat
README.md - Cloudflare Proxy → AI and Speech APIs: forwards requests
README.md - Companion State → Speech Playback: speaks reply
leanring-buddy/CompanionManager.swift - Speech Playback → Cloudflare Proxy: requests audio
README.md - Companion State → Cursor Overlay: shows overlay
leanring-buddy/CompanionManager.swift - Vision Chat → Cursor Overlay: directs cursor
README.md - Companion State → Product Analytics: tracks events
leanring-buddy/CompanionManager.swift - Companion Panel → Window Positioning: checks permissions
leanring-buddy/CompanionPanelView.swift - Companion State → Response Overlay: displays response
- Cursor Overlay → Element Detection: locates targets