Chinahuangy7/lokii
Blazingly fast, native macOS file search powered by Rust and AppKit — like Everything for Mac
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
Lokii
Ultra-fast, lightweight native macOS instant file search tool — like Everything for Mac
Download for macOS (Apple Silicon & Intel)
Lokii is a native macOS instant file search tool engineered for developer-grade speed and desktop ergonomics — bringing the beloved, lightning-fast "Everything" file search experience to macOS. Powered by a high-performance in-memory index engine in Rust (lokii-core) bridged to a native Swift/AppKit user interface via UniFFI, Lokii delivers sub-millisecond query latency across hundreds of thousands of files with real-time FSEvents filesystem synchronization.
Features
| Feature | Description |
|---|---|
| Instant As-You-Type Search | Sub-millisecond response latency across 500,000+ files with low memory footprint (< 100MB). |
| Multi-Mode Query Engine | Intelligent mode detection supporting substring, wildcard (*, ?), regular expression (^...$), and fuzzy matching. |
| Real-Time FSEvents Stream | Multi-channel FSEvents event stream with dirty-queue debouncing to keep the index in sync without high CPU overhead. |
| Native AppKit Density | High-density virtualized table view, native macOS file icons, zebra striping, and spring-damped micro-interactions. |
| Keyboard-First Workflow | Global shortcut toggle (⌘⇧Space), arrow navigation, Enter to reveal in Finder, ⌘C to copy path, and Esc to hide. |
| Persistent Binary Cache | Bitcode-serialized index cache that survives system restarts for instant hot-start readiness. |
| Native Settings & FDA | Native Preferences window with custom search roots, exclusion rules, theme switching (Light/Dark/System), and interactive Full Disk Access setup. |
Privacy
Lokii runs 100% locally on your Mac. There are no user accounts, no telemetry, no tracking, and zero outbound network connections. Your filenames, directory structures, and search queries never leave your device.
Architecture
lokii-core/ Rust library — in-memory inverted index, parallel scanner, FSEvents watcher, bitcode cache
Lokii/ macOS Swift/AppKit application — virtualized table, settings, tray integration
scripts/ Build and packaging automation (UniFFI bindings generation, DMG creation)
Build from Source
Prerequisites
- macOS 13.0+
- Rust stable (2021 edition)
- Xcode 15+ (Swift 5.9+)
Compiling and Running
# 1. Clone the repository
git clone https://github.com/huangy7/lokii.git
cd lokii
# 2. Build the app (generates UniFFI bindings & compiles Swift app)
make
# 3. Launch debug app
cd Lokii && .build/debug/Lokii
Packaging DMG
To create a distributable .app and .dmg:
# Build for Apple Silicon (arm64)
make package ARCH=arm64
# Build for Intel (x86_64)
make package ARCH=x86_64
Output disk images will be generated in output/Lokii-<arch>.dmg.
Contributors
License
Released under the MIT License.
Developed and maintained by huangy7
Similar Projects
Discover other similar projects and AI models.
Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.