Milesto

I built an AI coaching app for iPhone with another developer, from the SwiftUI app to the NestJS API and the admin dashboard. You set one big goal, pick a coach, and Milesto turns the goal into milestones and weekly tasks. The app shipped on the App Store with a paid subscription before we took it down.
One goal, broken down week by week
Milesto starts with a short interview about the goal and why it matters, then asks you to choose one of four coaches, from encouraging to demanding. From those answers, the API generates a roadmap of weekly milestones, up to a year long, and a short list of tasks for each week.
The coach stays available in a chat that knows the roadmap and your progress. You can type or speak: voice notes are transcribed with ElevenLabs Scribe before they reach the model.
Three codebases, one release
The iPhone app is written in SwiftUI and talks to a NestJS API backed by Supabase for Postgres, Sign in with Apple, and row-level security, so each user's rows are protected by the database itself and not only by the API. A Next.js dashboard lets us follow users, conversations, subscriptions, and AI costs.
Merging into the main branch shipped all three at once: Dokploy deployed the API and the dashboard to our server, and Xcode Cloud built the app for TestFlight and the App Store. That's how we released versions 1.10.4 to 1.10.7 in two days.
Making long AI generations hold
A full roadmap is one long model call, and it was the first thing to break in production. The timeout went from 30 to 240 seconds, the JSON response is streamed so the request no longer stalls, and a lock with an attempt counter stops two generations from running for the same goal while still letting a failed one retry.
Every call records its model and token usage, so the dashboard can estimate what each user costs.
Subscriptions verified on the server
Milesto Pro was an App Store subscription with a one-week free trial. The app never decides on its own whether you've paid: the API checks each purchase with Apple's App Store Server API and verifies the signed data against Apple's root certificates.
Apple also sends a notification for every renewal, refund, or cancellation. The API stores the ID of each one it has processed, so a notification Apple sends twice is only applied once.
- Year
- 2026
- Duration
- March to May 2026
- Built with
- SwiftUINestJSSupabaseNext.jsOpenRouter