Lull
How much caffeine might be left at bedtime?
Make the relationship between logged caffeine and a chosen bedtime easier to understand through a simple estimate.




Captured from the development build
How it works
- 01
Log a drink
Choose a preset or enter an amount and consumption time.
- 02
Keep the record
The drink remains a local record that can be reviewed in the ledger.
- 03
Estimate the remainder
The model sums a decay estimate for each drink at the requested time.
- 04
See the evening
Sampled points become a curve with current and bedtime estimates.
The product idea
Make a coffee choice visible at bedtime.
A caffeine estimate becomes easier to interpret when it answers a specific question: what might remain at my chosen bedtime?
- Problem framing
Start from bedtime
Compare the estimate at a chosen time, giving the calculation a moment that matters to the user.
- Clarity
Show the change over time
Combine drink amounts and timing in one curve, making the contribution of several drinks visible.
- Boundaries
Keep the estimate honest
Use an adjustable half-life rather than presenting one model as a personal medical measurement.
Working prototypeWorking prototype with saved drink history and a configurable estimate; not a personal medical measurement.
Stack
SwiftUI · SwiftSwiftDataFoundation Date mathExponential decay modelCustom curve drawingUserDefaults settings
Implementation details
A configurable estimate with a default five-hour half-life, not a personal medical measurement.
- Coffee log
- Enter the drink, caffeine amount and time.
- Daily view
- Keep logging and the evening estimate in one quiet surface.
- Decay model
- Add the estimated remainder from each past drink.
- Evening target
- Compare the estimate against the selected target time.
- Drink history
- Retain logs across app launches.
- Caffeine curve
- Sample the model to draw a curve through the day.