How arahim3/digup works
DigUp is a macOS semantic file-search app: users select folders, wait for local indexing, then describe a file or moment to find and open it. Indexing covers media, documents, and optional isolated code search; search combines multilingual embedding similarity with exact-word matches. The app delegates indexing to a helper and uses a local SQLite index and llama.cpp runtime. Some UI and extraction details are unsampled, so those subsystem links rely on the README’s documented workflow and capabilities.
Main entry points: Indexer.swift Segment indexing · Engine.swift Index and search engine · Searcher.swift Hybrid retrieval · AppSettings.swift Settings and folders
Components 24
Mac App
- App coordinator
Sources/DigUpApp/AppController.swift - Settings and folders
Sources/DigUpApp/AppSettings.swift - Hotkey panel
Sources/DigUpApp/SearchPanel.swift - Search window
Sources/DigUpApp/SearchWindow.swift - Result previews
Sources/DigUpApp/Previews.swift - Index and search engine
Sources/DigUpApp/Engine.swift
Indexing
- Folder watcher
Sources/DigUpApp/FolderWatcher.swift - Index helper
Sources/digup/IndexService.swift - Folder selection
Sources/DigUpKit/FolderSelection.swift - File crawler
Sources/DigUpKit/Crawler.swift - Media and code readers
Sources/DigUpKit - Segment indexing
Sources/DigUpKit/Indexer.swift - SQLite index
Sources/DigUpKit/IndexStore.swift - Code search index
Sources/DigUpKit/CodeExtractor.swift
Search and Results
- Hybrid retrieval
Sources/DigUpKit/Searcher.swift - Multilingual text matching
Sources/DigUpKit/SearchText.swift
Embedding Runtime
- Model download
Sources/DigUpApp/ModelDownload.swift - Model files
Sources/LlamaRuntime/LlamaModels.swift - Multimodal embedder
Sources/LlamaRuntime/LlamaEmbedder.swift - Embedding worker
Sources/DigUpKit/Worker.swift
Command Line
- CLI commands
Sources/digup/main.swift - CLI indexing
Sources/digup/IndexService.swift
Other components
- Mac user
- Chosen local files
Connections 26
- Mac user → Settings and folders: chooses folders
- Mac user → Hotkey panel: opens search
- Settings and folders → App coordinator: configures
Sources/DigUpApp/AppController.swift - Hotkey panel → Index and search engine: submits query
Sources/DigUpApp/SearchPanel.swift - Hotkey panel → Search window: opens larger view
- Search window → Result previews: renders preview
Sources/DigUpApp/SearchWindow.swift - App coordinator → Index and search engine: configures indexing
Sources/DigUpApp/AppController.swift - Index and search engine → Folder watcher: tracks changes
Sources/DigUpApp/Engine.swift - Index and search engine → Index helper: starts helper
Sources/DigUpApp/Engine.swift - Settings and folders → Folder selection: sets roots
- Chosen local files → File crawler: scans chosen folders
- Index helper → File crawler: syncs files
Sources/digup/IndexService.swift - File crawler → Segment indexing: queues changes
Sources/DigUpKit/Indexer.swift - Segment indexing → Media and code readers: extracts content
Sources/DigUpKit/Indexer.swift - Segment indexing → SQLite index: writes segments
Sources/DigUpKit/Indexer.swift - Segment indexing → Embedding worker: requests vectors
- Segment indexing → Code search index: indexes code
Sources/DigUpKit/Indexer.swift - Index and search engine → Hybrid retrieval: searches index
Sources/DigUpApp/Engine.swift - Hybrid retrieval → SQLite index: reads records
Sources/DigUpKit/Searcher.swift - Hybrid retrieval → Multilingual text matching: matches exact text
Sources/DigUpKit/Searcher.swift - Hybrid retrieval → Multimodal embedder: embeds query
- Model download → Model files: installs model files
Sources/DigUpApp/ModelDownload.swift - Embedding worker → Multimodal embedder: computes vectors
Sources/DigUpKit/Worker.swift - Multimodal embedder → Model files: loads model
Sources/LlamaRuntime/LlamaEmbedder.swift - CLI commands → CLI indexing: runs indexing
Sources/digup/main.swift - CLI commands → Hybrid retrieval: runs search
Sources/digup/main.swift