The Coffee Cup That Outlived Its Maker: Inside Caffeine

A 2006 macOS utility passed through three stewards, survived its original company, and still does its entire job with a single held-open power assertion.

7 min read • View on GitHub • More from domzilla

A wide overhead editorial illustration of a dark office desk at night. An unlit laptop sits open beside a wall clock, and a single coffee cup rests in a pool of lamplight. A thin taut wire runs from the cup's handle to the clock's second hand, holding it frozen mid-tick. The image illustrates how a small keep-awake utility holds time still by preventing the machine from drifting into sleep.
The cup holds the clock hand still. That is the whole product, drawn in one image.
Key Takeaways

The Cup That Outlived Its Maker

In 2006, Tomas Franzén of Lighthead Software built a tiny menu-bar utility that kept a Mac from falling asleep. He called it Caffeine and gave it a cup for an icon. A full cup meant awake. An empty one meant the usual drift toward dark.

Most utilities like this die young. The developer moves on, the operating system updates, the binary rots in a downloads folder. Caffeine did something else. In 2018, Michael Jones of IntelliScape Computer Solutions obtained permission to continue development under an open-source license. Later a third steward, the GitHub user domzilla, forked it and modernized the build for macOS 11 and Apple Silicon.

Don't let your Mac fall asleep.

domzilla/Caffeine project, Project README · domzilla/Caffeine README

The lineage is the story. A small tool, three stewards, two decades. The question worth asking is why this one survived when so many menu-bar toys do not. The answer starts with how little it actually does.

One Assertion, Held Open

The mental model most people carry is wrong. Sleep is not a setting you flip. It is a live negotiation. macOS watches a ledger of power assertions held by running processes. A backup, a video, a file transfer: each can raise a hand and say "not yet." When no hand is up, the machine drifts toward sleep.

Caffeine's entire job is to keep one hand raised. For as long as it is active, it holds a power assertion open, telling macOS not to idle-sleep the system or dim the display. That is the whole trick. The cup is a stand-in for an open claim.

Timed activation is the same claim with a clock attached. You are not scheduling a sleep. You are scheduling the release of the assertion. Preferences, launch-at-login, activation-on-start: all of it is plumbing around that one held hand.

Sleep is a negotiation, not a switch. Caffeine's only move is to keep one hand raised on the ledger.

What a New Maintainer Actually Has to Do

Keeping a 2006 app alive in 2026 is mostly unglamorous. The interesting work is not new features. It is making an old idea compile and run on hardware that did not exist when it was written.

A tight close-up editorial illustration of two hands on a workbench. One hand holds a small gleaming brass clock movement while the other guides it into an old, worn enameled alarm-clock case. Tiny springs and screws are scattered across the bench. The image illustrates the unglamorous work of fitting a modern build into an old, familiar shell.
A new movement in an old case. The fork's real labor is fitting a modern build into a familiar shell.

The Homebrew Cask pull request that added domzilla-caffeine 1.4.1 in January 2024 made the packaging case plainly.

This is a fork of cask `caffeine` with a universal binary that runs natively on Apple Silicon. Its last commit was about three months ago.

toobuntu, Homebrew Cask pull request author · Homebrew/homebrew-cask pull request #164588

Four Ways to Keep a Mac Awake

Caffeine is not the only option, and its README says so, naming Amphetamine and KeepingYouAwake. Pick by workflow, not by feature count. Where this research could not verify a cell, the table says so rather than guessing.

Caffeine (domzilla)AmphetamineKeepingYouAwakecaffeinate
DistributionHomebrew CaskMac App StoreGitHubBuilt into macOS
Open source + licenseMITNot verifiedOpen source, license not verifiedBuilt-in
InterfaceMenu bar toggleMenu barMenu barCommand line
Platform supportmacOS 11+Not verifiedNot verifiedBuilt-in
Timed activationYesNot verifiedNot verifiedNot verified

Why the Small Ones Survive

Tiny, single-purpose tools survive handoffs because their scope is small enough to be fully understood by the next steward. There is no maze of features to reverse-engineer, no roadmap to reconcile. Caffeine does one thing, and that one thing fits in a paragraph. Maintainability by subtraction. The cup outlived its maker because it never grew too big to carry.