Skip to content
QYChan Qing Yee
CV
← all projects

macOS menu-bar utilities

Personal projects · Swift + AppKit

Three native macOS menu-bar apps written in plain Swift and AppKit — no Electron, no packages, no Dock icon. Each is a single small binary that does one thing and costs the machine almost nothing.

// the apps

01

Claude Usage Bar

Session usage at a glance

Shows Claude.ai session usage as a ring gauge in the menu bar, with live percentage used and a countdown to reset — so you know whether you can keep going without switching tabs.

  • Ring drawn natively in Core Graphics, not text glyphs — monochrome until it matters.
  • Turns orange at 80% and red at 90%, so colour appears exactly when to worry.
  • ~40–50 MB RAM against 150–300 MB for the equivalent browser tab.
SwiftAppKitCore Graphics
view source ↗
02

RAMBar

Memory gauge in ~150 lines

A tiny fill gauge and percentage showing memory in use, reading the same numbers Activity Monitor does — straight from the Mach kernel rather than parsing CLI output.

  • Reads host_statistics64 directly; “Memory Used” = app + wired + compressed.
  • Click through for App Memory, Wired, Compressed, and Swap, fetched on open.
  • Ticks every 30s with a 10s tolerance and skips redrawing when nothing changed.
SwiftAppKitMach kernel APIs
view source ↗
03

wilderfarer-bar

A pixel hiker for your deep work

A tiny hiker who walks a procedurally generated landscape while you work, sets up camp when you step away, and counts 12 active minutes as one kilometre. The Wilderfarer identity, rendered.

  • Terrain seeded from the date — four biomes, one named trail per day.
  • Nightfall after 19:30; a summit flag at a half-marathon of focused work.
  • 100% local and offline — activity never leaves the machine.
SwiftAppKitprocedural generation
view source ↗