$ show hoochanlon/Free-NTFS-for-Mac
Free-NTFS-for-Mac is a macOS desktop utility that provides read-write access to NTFS-formatted drives using ntfs-3g and MacFUSE. It is implemented as an Electron application with a main process (Node.js) and a renderer (Chromium), offering a graphical interface for device detection, mounting, unmounting, ejecting, and resetting NTFS volumes. The application also includes a system tray mode, automatic mount on device insertion, password management via macOS Keychain, dependency checking (Homebrew, MacFUSE, ntfs-3g, fswatch), and multi-language support (English, Japanese, Chinese, German). The codebase is modular, with separate modules for device detection (event-driven via fswatch with fallback polling), mount operations, sudo execution, caching, and batch command execution. It also provides a set of shell scripts (ninja tools) for building, packaging, and installing dependencies. While the application is functionally complete and actively maintained, it exhibits some technical debt such as duplicate implementations, hardcoded paths, and reliance on system tools that may change across macOS versions.
The LLM identified 2 files worth highlighting for reuse:
Implements zero-latency NTFS device detection using fswatch to monitor /Volumes, with health checks, debounce, periodic verification, and multi-level retries. Falls back to polling if fswatch is unavailable. This pattern is reusable for any macOS application that needs to react to volume changes without polling.
Provides a batch execution layer for system commands (mount, diskutil, etc.) that deduplicates concurrent calls, caches results, and manages parallel execution. This is a reusable utility for any application that needs to run multiple shell commands efficiently while avoiding redundant system calls.