How ah23333/starmarkdesktop works
StarMarkDesktop is a Windows desktop hub for searching and managing locally stored items gathered from several sources. The principal workflow is a user search in the main window, coordinated across SQLite full-text search and available live sources, then merged and shown as results. Separate branches cover source synchronization, desktop widgets, capture/OCR, and supporting capabilities such as feeds, AI classification, and backup. Edges rely on the README’s architecture and capability descriptions or shown source references; unsampled implementation details are not inferred.
Main entry points: SyncCoordinator.cs Source synchronization · ItemRepository.Search.cs Item repository · WidgetManager.cs Widget manager · SearchService.cs Search orchestration
Components 24
Desktop interface
- Main window
src/StarMark.UI/MainWindow.xaml.cs - Search page
src/StarMark.UI/Views/SearchPage.xaml.cs - Result cards
src/StarMark.UI/Controls/ItemCard.xaml.cs
Search and storage
- Search orchestration
src/StarMark.Core/Search/SearchService.cs - Item repository
src/StarMark.Data/ItemRepository.Search.cs - SQLite and FTS5
src/StarMark.Data/DbConnectionFactory.cs - Source synchronization
src/StarMark.Core/Sync/SyncCoordinator.cs
Sources and integrations
- GitHub Stars
src/StarMark.Integrations/GitHub/GitHubSource.cs - Browser bookmarks
src/StarMark.Integrations/Bookmarks/BrowserBookmarksSource.cs - Local file search
src/StarMark.Integrations/Everything/EverythingQueryQueue.cs - Clipboard history
src/StarMark.Integrations/Clipboard/ClipboardWatcher.cs - Ditto import
src/StarMark.Integrations/Ditto/DittoSource.cs
Desktop features
- Widget manager
src/StarMark.UI/Services/WidgetManager.cs - Widget persistence
src/StarMark.Core/Widgets/WidgetStorage.cs - Weather widget
src/StarMark.Integrations/Weather/OpenMeteoClient.cs - Media controls
src/StarMark.UI/Services/MediaSessionService.cs - Screen capture
src/StarMark.UI/Services/ScreenshotService.cs - OCR pipeline
src/StarMark.Core/Ocr/OcrPipeline.cs - Screen OCR reader
src/StarMark.Integrations/Ocr/ScreenOcrReader.cs
Supporting services
- RSS feeds
src/StarMark.Core/Feed/RssAggregator.cs - Trending repositories
src/StarMark.Core/Trending/TrendingService.cs - AI classification
src/StarMark.UI/Services/AiClassifyService.cs - Backup and restore
src/StarMark.Core/Backup/BackupService.cs
Other components
- User
Connections 17
- User → Main window: uses
- Main window → Search page: opens
- Search page → Search orchestration: searches
- Search orchestration → Item repository: queries
src/StarMark.Core/Search/SearchService.cs - Search orchestration → Local file search: dispatches
src/StarMark.Core/Search/SearchService.cs - Item repository → SQLite and FTS5: reads and writes
- Item repository → Result cards: returns items
- Source synchronization → Item repository: upserts
- Source synchronization → GitHub Stars: syncs stars
- Source synchronization → Browser bookmarks: reads sources
- Source synchronization → Clipboard history: imports history
- Source synchronization → Ditto import: reads history
- Widget manager → Widget persistence: persists layout
- Widget manager → Weather widget: shows weather
- Widget manager → Media controls: controls playback
- OCR pipeline → Screen OCR reader: recognizes text
src/StarMark.Core/Ocr/OcrPipeline.cs - Screen capture → OCR pipeline: supplies pixels