builtbyashish
AwakeBar official icon

AwakeBar

v1.0.1macOS 12+

MENU BAR UTILITY • FAIL-SAFE IOKIT ENGINE • MIT LICENSE

A macOS menu bar app that keeps your Mac awake — built with a fail-safe native IOKit C assertion helper, zero windows, and zero telemetry. It lives exclusively in the menu bar: no Dock icon, no window clutter.

How it looks in your macOS Menu Bar

Click the mug in your top-right menu bar to toggle it instantly. Both states share the exact same silhouette dimensions so your menu bar icons never jitter or resize when toggled.

FinderFileEditViewGoWindowHelp
AwakeBar MugAwake
98%Thu 10:42 PM
Awake State
Solid Mug • ONNoIdleSleepAssertion active

Your Mac stays awake. Perfect for long file transfers, builds, AI model inference, terminal scripts, and cloud uploads. Screen still turns off naturally.

Idle State
Slashed Mug • OFFAll sleep assertions dropped

AwakeBar releases the kernel power assertion. Your Mac obeys its standard macOS Energy Saver timers and sleeps normally on idle.

Hardened Systems Architecture

IOKIT NATIVE • PIPED STDIN HEARTBEAT

Most sleep-blocker utilities rely on default electron APIs or bulky menus that leave dangling sleep blocks if killed. AwakeBar compiles a ~50 KB native C binary directly calling Apple's IOKit.framework, governed by a strict pipe heartbeat.

AUDITABLE KERNEL ASSERTION
Native C IOKit Subprocess

Uses IOPMAssertionCreateWithName to claim NoIdleSleepAssertion labeled explicitly as "AwakeBar" in macOS power management logs.

FAIL-SAFE STDIN HEARTBEAT
Zero Stuck Sleep Locks

The app holds the helper's stdin stream open. When keep-awake is toggled off, or if the process exits, crashes, or is force-killed, the OS kernel drops the assertion immediately.

AUTOMATIC FALLBACK
powerSaveBlocker Resiliency

If the compiled helper cannot spawn due to restricted permissions or architecture mismatch, AwakeBar automatically falls back to Electron's powerSaveBlocker rather than silently letting your Mac sleep.

SDF ICON GENERATOR
Mathematical Precision

Tray icons are generated with analytical signed distance functions (SDF) rendered into macOS Template images at 1x, 2x, and 3x with zero external image dependencies.

Verifying via macOS Terminal

AUDIT POWER MANAGEMENT

You can independently verify that the sleep assertion is registered cleanly under AwakeBar's name with macOS's native pmset utility:

TERMINAL COMMAND:
pmset -g assertions
KERNEL AUDIT LOG OUTPUT:
Assertion status system-wide:
   PreventUserIdleSystemSleep    1
   PreventUserIdleDisplaySleep   0

Listed by owning process:
   pid 40666(AwakeBar-sleep): NoIdleSleepAssertion named: "AwakeBar"

First Launch & Gatekeeper Notice

AwakeBar is 100% free, open-source software and is not signed with a paid Apple Developer certificate. On first launch, macOS Gatekeeper may flag it as an unverified application.

To open it, move AwakeBar.app to /Applications, then either right-click and choose Open, or run:

xattr -dr com.apple.quarantine /Applications/AwakeBar.appRemoves macOS quarantine flag

Building from Source

Requires Node.js and the Xcode Command Line Tools for clang (xcode-select --install):

git clone https://github.com/builtbyashish/awakebar.git
cd awakebar
npm install
npm run make        # Compiles native C helper and packages AwakeBar.app