← All projects

macOS & utilities

Drainlog

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

AUDIENCEPeople exploring this public project.
MEDIUM / TOOLSRust / SwiftUI / IOKit
CURRENT STATEIn development
Drainlog morning battery report with demo data
Verified project screenshot
01 / THE IDEA

Project overview

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

06 / WALKTHROUGH

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.

07 / IMPLEMENTATION

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.

08 / SCOPE

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

09 / NOW

Current state

In development