Project Overview & Architecture
Byakugan Scan is a native macOS menu bar utility for instant, in-memory screen OCR, QR code, and barcode recognition. Unlike conventional screenshot OCR tools that write temporary image files to disk and trigger Spotlight or media analysis daemons, Byakugan Scan captures selected screen regions directly into NSPasteboard memory as a CGImage buffer and processes them on the Apple Neural Engine in under 50ms—with zero temporary files, zero network calls, and zero external Swift package dependencies.
Core Features & Capabilities
Zero-Disk In-Memory Pipeline
Captures screen selections straight into RAM via NSPasteboard and runs Apple Vision requests (VNRecognizeTextRequest and VNDetectBarcodesRequest) on the Neural Engine in under 50ms.
60/120Hz Custom AppKit Overlay
Smooth multi-display selection reticle with customizable theme accents (Byakugan Violet, Tenseigan Cyan, Sharingan Crimson, Sage Emerald, Nine-Tails Amber) and adjustable backdrop dimming.
Multi-Language OCR & Barcode Decoding
Supports automatic language detection across 13+ languages alongside QR, MicroQR, EAN-8/13, UPC-E, Code 128/39/93, PDF417, Aztec, and Data Matrix symbologies.
Floating HUD & Contextual Actions
Frosted-glass HUD toast displaying character/word counts and one-click actions to open URLs, compose emails, or dial phone numbers without cluttering Notification Center.
URL Scheme Automation & Local History
Deep-link automation via byakugan:// for Raycast, Alfred, and Shortcuts, plus a searchable local scan history with category filters and pinning.
Technical Specifications & Engineering
Engineering Tech Stack
- Swift 6.0
- AppKit
- SwiftUI
- Apple Vision Framework
- Neural Engine
- macOS 14+
- Homebrew Cask
Dedicated Webpages & Official Resources
- Dedicated Official Webpage: https://byakugan-scan.aritro.cloud
- Architectural Engineering Deep-Dive: https://www.aritro.cloud/blog/swift-vision-ocr-apple-neural-engine
- Source Code Repository: https://github.com/halcyon-past/byakugan-scan
- Technical Documentation: https://byakugan-scan.aritro.cloud/support