Repository navigation
Architecture Overview
Mohammed Gaber edited this page Oct 11, 2026
·
1 revision
Look combines a native macOS user interface with an ultra-fast compiled Rust core.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β macOS UI Shell (SwiftUI / AppKit) β
β apps/macos/LauncherApp/look-app β
βββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββ
β C FFI Bridge (C ABI)
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β bridge/ffi β
β Memory buffer management, JSON serialization, C ABI β
βββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββ
β Native Rust calls
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Core Rust Crates β
β core/engine - Query parsing, indexing orchestration β
β core/calc - Math, units, timestamps, currency β
β core/qactions - Super actions grid and status tiles β
β core/storage - SQLite database persistence β
β core/ranking - Frecency scoring & fuzzy matching β
β core/netspeed - Multi-stream speed test engine β
β core/todo - Daily Kanban task database β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
-
core/engine: Primary coordinator. Oversees query normalization, scanner threads, candidate caching, and search dispatch. -
core/calc: Parses mathematical queries, unit conversions, currency exchange, and Unix timestamp parsing without external scripting interpreters. -
core/qactions: Resolves layout grids for the Super Actions launchpad from~/.look/super-actions.toml. -
core/storage: Manages the SQLite database located at~/Library/Application Support/look/look.db. Handles candidates, usage frequency, and migration schemas. -
core/ranking: Frecency (frequency + recency) ranking model that dynamically promotes frequently selected results. -
bridge/ffi: Exports C-compatible functions (look_search,look_execute_action,look_get_super_actions) consumed by Swift viaEngineBridge.swift.
-
Keystroke Capture: Swift captures input in
SmoothCaretTextFieldwith zero UI debounce lag. -
FFI Call: Swift invokes
look_search_json(query)across the C FFI boundary. -
Core Matching & Scoring:
-
core/enginechecks active prefixes (a",f",c",ps",/,~). -
core/rankingcomputes fuzzy alignment scores. - Top-K results are returned as a compacted binary payload.
-
- Native Render: SwiftUI renders the candidate rows, previews, and icons seamlessly at 120Hz ProMotion refresh rates.
User Documentation
- Getting Started
- User Workflow & Shortcuts
- Commands & System Actions
- Super Actions & Launchpad
- AI & Intelligence
- Configuration Reference
- Custom Sources & Extensibility
Technical & Architecture