opal
An iOS app for money, movement and daily rituals, with Pal, an LLM assistant that logs what I tell it, plans my day and finds the patterns between them.
- Role
- Solo, personal project
- When
- June 2026 – now
- Stack
- Flutter, Riverpod, Drift; a Cloudflare Worker and D1 backend in TypeScript; an LLM through OpenRouter

What it is
An iOS app that keeps spending, workouts, nutrition, mood, sleep and daily rituals in one place, with Pal, an assistant that reads across them.
A small Cloudflare Worker holds what the phone cannot: the model API key and a little server-side state for the widget, the Health shortcut and Pal’s memory.
Why I built it
I tracked spending in one app, workouts in another and habits in a third, and none of them knew about the others. The interesting questions sit between them: whether a rainy day should move leg day, or what a heavy week did to sleep.
One app with one assistant that can read across all of it was the simplest way to ask those questions.
Pal, the assistant
Pal is an LLM behind the Worker, reached through OpenRouter. A line like “12k coffee, then a 40 minute run” becomes an expense and a workout: the model answers with tool calls, and each call is checked against a schema before anything is saved, so a malformed one is dropped rather than written. The same calls log meals with a calorie estimate, set goals and build a workout routine from my own exercise library.
It plans as well as logs: the day’s agenda, the next workout, a new routine. Code checks what the model claims against the data before it shows. A workout suggestion that says I skipped legs when I trained them yesterday is drawn again, then replaced by a computed reason; a routine whose rationale names muscles its exercises do not work loses the rationale; a reply that thinks aloud is asked for again.
Patterns follow one rule: code finds them, the model narrates them. A correlation engine on the phone tests every pair of areas against a strict statistical bar, and only the strongest relationship that clears it reaches Pal, with a computed sentence as the fallback. It replaced earlier pattern notes that cited counts the data did not hold.
Pal keeps up to 20 lasting facts about me, which it remembers and forgets through the same tool calls. Spending also arrives from receipt emails, with card numbers, phone numbers and addresses masked before the text reaches the model.
How it works
opal is local-first: everything lives on the phone in SQLite through Drift and works offline. The Worker only holds what the phone cannot, so it stays small and the app still runs against a mock backend.
Live Activities, Siri shortcuts and notifications are native iOS. The app is sideloaded with a free Apple ID, which rules out HealthKit, so health features degrade gracefully without it.
The design follows Oura’s approach rather than a dashboard: Today leads with the one thing that matters right now, and detail is always one tap away.
What I learned
Designing for one user, me, made the trade-offs honest. Every feature had to earn a place on a screen I open every morning, and most of the work turned out to be cutting things.