RepositoryRustCNChina
huangy7

huangy7/lokii

Blazingly fast, native macOS file search powered by Rust and AppKit — like Everything for Mac

222stars
18forks
0issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: file-search

#1 Repository of the week

1
TINIX TRENDING·Topic: everything-alternative

#1 Repository of the week

1
TINIX TRENDING·Topic: everything

#1 Repository of the week

Lokii Icon

Lokii

Ultra-fast, lightweight native macOS instant file search tool — like Everything for Mac

English 简体中文

Download for macOS (Apple Silicon & Intel)

Latest release License Platform CI Downloads Views

Lokii instant search window

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

FeatureDescription
Instant As-You-Type SearchSub-millisecond response latency across 500,000+ files with low memory footprint (< 100MB).
Multi-Mode Query EngineIntelligent mode detection supporting substring, wildcard (*, ?), regular expression (^...$), and fuzzy matching.
Real-Time FSEvents StreamMulti-channel FSEvents event stream with dirty-queue debouncing to keep the index in sync without high CPU overhead.
Native AppKit DensityHigh-density virtualized table view, native macOS file icons, zebra striping, and spring-damped micro-interactions.
Keyboard-First WorkflowGlobal shortcut toggle (⌘⇧Space), arrow navigation, Enter to reveal in Finder, ⌘C to copy path, and Esc to hide.
Persistent Binary CacheBitcode-serialized index cache that survives system restarts for instant hot-start readiness.
Native Settings & FDANative 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

Contributors

License

Released under the MIT License.


Developed and maintained by huangy7

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
alacritty/alacritty

A cross-platform, OpenGL terminal emulator.

66.4k
Dec 1, 2026
RepositoryRust
warpdotdev/warp

Warp is an agentic development environment, born out of the terminal.

66.2k
Dec 1, 2026
RepositoryRust
tw93/Pake

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

64.1k
Nov 28, 2026
RepositoryRust
lencx/ChatGPT

❄️ ChatGPT Desktop Application (Mac, Windows and Linux)

54.7k
Aug 29, 2024
RepositoryRust
sxyazi/yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.

43.8k
Dec 1, 2026
RepositoryRust
GyulyVGC/sniffnet

Comfortably monitor your network traffic 🕵️‍♂️

43.4k
Nov 28, 2026
RepositoryRust
trycua/cua

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

33.8k
Dec 2, 2026
RepositoryRust
cardisoft/cardinal

Fastest file searching tool for macOS

1.8k
Jul 23, 2026
RepositoryRust
skyllc-ai/UltraFastFileSearch

Ultra-fast file search for Windows using NTFS MFT

55
Nov 25, 2026