macOS & utilities
Drainlog
A native macOS app that explains overnight battery drain and labels measured, estimated, and unexplained charge loss.

Project overview
A native macOS app that explains overnight battery drain and labels measured, estimated, and unexplained charge loss.
How it works
Open the morning report to see overnight battery loss alongside the time the Mac spent asleep, in DarkWake, or awake. The report separates measured charge loss, estimates for individual intervals, and any unexplained loss.
Under the hood
A Rust background agent records sleep and wake battery readings, uses macOS power logs and IOKit to assemble a timeline, and saves reports locally in SQLite. The SwiftUI app displays the morning report and menu-bar summary.
What to know
The first stage has a working report and fixture-based replay tests. It is awaiting more real overnight measurements, and the project has no published release. The portfolio capture uses the project’s demo data.
Read the repository and source ↗Source reviewed 30 November 2026
Current state
In development
