▶ QUEST IN PROGRESS

Base

A performance coach that reads my WHOOP data alongside my calendar and tells me something useful about tomorrow. It runs entirely on my own machine – my health data never leaves the laptop.

2026 – Present
macOS Python Health Data Local-first

How I made it

Seven modules that each run on their own or together. Here’s the whole thing start to finish, in the order I actually did it.

  1. What I wanted

    WHOOP is really good at telling you about today and the past. What it never does is look forward – it reports, it doesn’t forecast. So the thing I actually wanted didn’t exist: something that knows both how recovered I am and what’s in my diary, and puts those two together.

    The output I was after is stuff like “leg day tomorrow looks good, your HRV is trending up and you slept 8.1 hours”, or “interview Thursday after Wednesday drinks is risky, consider skipping the drinks”, or just telling me I need to be asleep by 10:15pm to hit my sleep need before a 7am meeting.

  2. Keeping it on my own machine

    This was the constraint everything else got built around. It’s my health data – sleep, heart rate, recovery, and my entire calendar. I didn’t want any of that sitting on somebody else’s server.

    So everything is local. Data lives in SQLite at ~/.base/whoop.db. OAuth tokens go in the system keychain, not a config file. Every API binds to 127.0.0.1 only. No cloud services, no telemetry, nothing shared.

    Calendar scanning uses local keyword matching, which means my event titles never leave the machine – that one mattered to me more than the rest of it.

    It’s built to be self-hosted rather than run as a service. Every install is independent and uses its own credentials, so if a friend also wears WHOOP they run their own copy the same way. There’s no shared server for me to accidentally become responsible for.

  3. Breaking it into modules

    I built it as seven modules that each run independently or together, rather than one big program. Each one owns a job and a port, and talks to the others over a local REST API.

    The three at the top pull data in: whoop-core handles OAuth, syncing and the local API, calendar-intel reads Google Calendar and classifies what’s in it, and hevy-intel syncs my actual workouts. Those all feed recovery-forecast, which is the part that does the thinking. Then three things sit on the end and surface it: the menu bar widget, the alerts, and the lights.

  4. The forecast, and being honest about it

    This is the module I’m most careful about describing. Your current recovery, strain, HRV and sleep are real – straight from WHOOP’s own sensors, unmodified.

    Everything about future days is a guess Base makes, not WHOOP. That guess is built from my real training history plus my calendar, using a fitness-versus-fatigue model borrowed from sports science – the same idea tools like TrainingPeaks use.

    It is not machine learning, and it is not validated against my actual outcomes. It’s a model with assumptions in it, and I’d rather say that plainly than let it look more authoritative than it is. There’s a full plain-language breakdown of exactly how the numbers are calculated in the module’s own README.

  5. Making it optional where it needs to be

    hevy-intel syncs my Hevy workouts and derives per-muscle-group fatigue from them, so “can I train legs tomorrow” has an actual answer rather than a general one.

    But it needs Hevy Pro, which not everyone has, so everything upstream and downstream of it works fine without it. Same principle for lights-bridge, which dims my smart lights at wind-down time – it’s deliberately left out of auto-start because it needs a light-control method configured first, and I didn’t want a module that fails on a fresh install.

  6. Getting it in front of me

    A coach you have to remember to open is a coach you stop using. So the last three modules exist purely to put it where I’ll actually see it.

    base-menubar is a macOS menu bar widget, and the one piece written in Swift rather than Python. alerts sends proactive macOS notifications for recovery, risky days and bedtime. And lights-bridge dims the lights when it’s time to wind down, which is the one that works on me whether I like it or not.

  7. Running it, and keeping it running

    setup.sh installs every module, creating a venv per module and building the menu bar app. Then it’s one-time credentials – a WHOOP developer app and Google Calendar OAuth – and an auth command per service that opens a browser.

    The bit that made it a real tool rather than a thing I ran manually was scripts/install-launchd.sh, which makes it survive a reboot or a logout. I can check on it any time with launchctl list | grep com.base, and the logs land in ~/.base/logs/.