我正在打造 Paceline:讓跑步訓練計劃能應對錯過訓練的週數
I'm building a running coach whose plans survive the weeks you actually miss
開發者兼跑者正在打造 Paceline,讓訓練計劃可按錯過訓練、患病或體能變化重新計算,而非沿用固定時間表。每次調整都會列明原因,交由用戶接受或拒絕,應用程式不會默默改寫計劃。計劃生成器採用確定性程式碼,AI 負責對話及解釋;Android 版本已推出。
Every training plan I've ever followed died the same death. Not on race day. Somewhere around week six, when work got heavy or a kid got sick or a knee grumbled, and I missed a few runs. The plan — a fixed grid of weeks, exported from somewhere — had no opinion about what to do next. It just kept pointing at a schedule I was no longer on.
So I'd improvise: skip ahead, repeat a week, cram. Usually cram. Cramming is how runners get hurt.
I'm a developer and a runner, so I did the predictable thing: I started building the app I wanted. It's called Paceline, it's Flutter + Supabase, and this post is about the one design decision everything else hangs on — the plan is not a document. It's a computation.
A plan is an answer to "where am I now?"
Most plan apps generate a schedule once, at signup: goal race, date, current fitness, days per week. Out comes twelve or sixteen weeks of workouts. From then on, you're on rails.
Paceline generates the plan the same way — counting back from race day, building the phases a real coach would build, fitting them to the days you actually run. The difference is what happens next. The generator isn't a one-time step. It's a function the app can call again whenever the inputs change.
And the inputs always change. You miss three runs. You catch a cold. You nail a workout that says your fitness moved. A static plan treats all of that as damage. A generator treats it as new input.
So when you come back from a rough week, the app doesn't show you red missed checkboxes and a schedule that's quietly wrong. It works out where you are, and it proposes what the plan should become from here.
Proposes, not imposes
That word — proposes — is the other half of the design, and the part I care about most as AI features get layered on top.
Every adaptation lands as a proposal you can accept or reject. The app never silently rewrites your training. You'll see what changed and why: this week got easier because you missed time; this workout moved because your long run went long. You can take the suggestion or keep your original plan. The judgment call stays visibly yours.
I think this is the only honest way to build coaching software. A plan you can't interrogate is just an algorithm's opinion dressed up as authority, and runners — correctly — stop trusting those. The fastest way to ruin a coaching product is to make its changes indistinguishable from its mistakes.
The stack, briefly
For the devs here, since this is dev.to:
- Flutter because I wanted one codebase doing real UI work on Android and iOS, and because the plan screens are exactly the kind of dense, stateful interface Flutter is good at.
- Supabase as the backend — auth, Postgres, row-level security per athlete. The plan state lives in Postgres; the generator runs against it.
- The generator itself is deterministic code. Given the same runner state, it produces the same plan. That's a feature: adaptations can be explained, tested, and diffed. AI sits on top for the conversational layer — asking about your training, explaining the why — but the decision about what you run next goes through the same engine, and through you.
No venture story here, no growth hacks. It's an indie app, built in public, by a runner who got tired of improvising around spreadsheets.
Where it's at
It's early. The Android app is live, the plan engine works end to end, and I'm now in the least glamorous phase: finding real runners, watching where the product confuses them, and fixing it.
If you've ever come back from a missed week and stared at a plan that pretended nothing happened — I'd genuinely like to hear what you did instead. That's the conversation that shapes the next iteration.
Disclosure: this post was drafted with AI assistance and reviewed and edited by me. Paceline is my own app, and everything technical above describes how it's actually built.
來源:DEV Community · dev.to