Touch Bar app (MacBook Pro M1) showing CPU, GPU, RAM, temperatures, fan speed and Claude usage. It lives in the Control Strip; tapping its icon opens the detail bar.
⏲ icon in the menu bar → Settings… (or open the app again from Applications).
Everything applies instantly and is saved to ~/Library/Application Support/TouchBarStats/settings.json:
- Detail bar: checkboxes to show/hide each item and arrows to reorder them.
- Control Strip icon: image, GIF or video (looping, muted).
- Animation in the bar: a GIF or video as one more item, with adjustable width.
- General: sampling interval, menu bar icon, restore defaults, quit.
Chosen files are copied to .../TouchBarStats/Media/, so the original can be moved or deleted.
| Folder | What it does |
|---|---|
Sources/App |
Composition root (main.swift), AppDelegate and the menu bar menu |
Sources/Metrics |
CPU/GPU/RAM/temperature/fan readers (Readers, SMC), data (Model), texts and colors (Presentation), Touch Bar badge |
Sources/FanControl |
Root helper client (Client) and its slider bar (TouchBar) |
Sources/ClaudeUsage |
Claude usage polling (Model) and its badge/ring (TouchBar) |
Sources/Settings |
Settings model + JSON storage (Model) and SwiftUI window (Window) |
Sources/Media |
Frame-by-frame playback of images, GIFs and video (MediaView) |
Sources/TouchBar |
Control Strip, detail bar, bridge to the private APIs and coordinator |
Tools/FanHelper |
Root fan helper (install.sh / uninstall.sh) |
Tools/FanBoost |
Manual test: fan at maximum for 10 s (run.sh) |
Tests |
Logic tests without XCTest |
Measured on a MacBook Pro M1 (8 GB, macOS 27) on battery, with an animated GIF in the Control Strip and in the bar:
- CPU: ~3–5 % (sampling every 1 s and drawing the GIF frames).
- RAM: ~80 MB after launch; GIF frames are decoded once at display size. After 13 days of uptime it was seen at ~200 MB.
- Battery: quitting it made no measurable difference to the Mac's total draw (below the ~0.5 W noise of the battery sensor).
Requires only the Xcode Command Line Tools (swiftc), no Xcode.
./build.sh— builds, installs in /Applications and opens the app../test.sh— runs the tests.Tools/FanHelper/install.sh— installs the fan helper (once, asks for sudo).
- Uses private Touch Bar APIs (the same ones MTMR and Pock use), so it cannot ship on the App Store.
- Claude usage refreshes every minute, on wake, and when opening its detail bar. Requests bypass the cache, time out and recover automatically; stale percentages show an orange
!and “Sin actualizar”. - Claude usage reads Claude Code's own OAuth credentials (read-only) and only lets the
claudeCLI renew its token.

