Build a full production-ready mobile app called “Clarity” from scratch. Objective: Clarity is a premium, AI-driven personal discipline and productivity system focused on: focus health dopamine control (scrolling reduction) self-improvement structured daily systems The app must feel like a high-end, polished product (Notion + Apple Health + Calm hybrid). TECH STACK (STRICT) iOS app using SwiftUI + SwiftData Backend: Supabase (Auth + Postgres) Payments: StoreKit (subscriptions: monthly + yearly) Architecture: clean MVVM or modular SwiftUI Local persistence for fast UI + sync-ready structure CORE FEATURES (REQUIRED) 1. AUTH SYSTEM Email + password auth (Supabase) Sign in / sign up / reset password Persistent session handling App state routing: not signed in → auth signed in but no onboarding → onboarding completed onboarding → main app 2. ONBOARDING SYSTEM (HIGHLY IMPORTANT) Multi-step onboarding that builds a personalized system: Collect: age, height, weight sleep, stress, activity level biggest struggle (focus, discipline, energy, dopamine, etc.) goals (weight loss, mindfulness, discipline, sleep, etc.) commitment level (1–10) Generate: personalized plan focus areas daily targets weekly targets Then: show animated plan reveal screen store onboarding profile mark onboarding complete 3. GOALS SYSTEM (CORE FEATURE) Create a template-driven goal system. Data model: GoalItem (title, category, targetType, targetValue, progress, recurring) Categories: weight loss muscle gain mindfulness focus recovery (dopamine) sleep discipline Template system: large library of predefined templates each template includes: daily actions weekly actions difficulty level User can: pick templates OR create custom goals track progress mark complete view categories UI: modern cards animated progress smooth interactions 4. HEALTH SYSTEM Track: water protein steps sleep duration + quality workouts sunlight notes Features: auto-save logs (no manual save) vitality score calculation (0–100) history screen with detail view ability to tap a log → full breakdown page UI: animated progress bars interactive sliders / steppers clean dashboard 5. RECOVERY SYSTEM (DOPAMINE / SCROLLING CONTROL) Features: urge logging (intensity, trigger, mood, outcome) streak tracking recovery plan trigger insights (most common trigger, mood, etc.) relapse review system Include: “Rescue” screen with: breathing delay techniques reset tools 6. DASHBOARD (MAIN SCREEN) Show: today’s goals health summary streaks quick actions Must feel: fast minimal high signal / low clutter 7. SUBSCRIPTIONS Plans: free (basic access) pro monthly pro yearly Requirements: StoreKit integration free users can still use app premium unlocks advanced features (not onboarding access) DESIGN REQUIREMENTS Dark theme (default) Color palette: deep background blue/green accents Rounded cards, soft shadows Glassmorphism where appropriate Smooth animations everywhere: transitions button presses card reveals scroll-based animations ANIMATION REQUIREMENTS Add: spring animations for navigation fade/slide for onboarding animated progress bars micro-interactions (tap, toggle, increment) subtle pulsing CTA buttons FILE STRUCTURE Organize into modules: Auth/ Onboarding/ Dashboard/ Goals/ Health/ Recovery/ Shared UI/ Models/ Managers/ OUTPUT FORMAT Provide full SwiftUI code Include: models views managers (AuthManager, SubscriptionManager, etc.) Code must compile No placeholders except clearly marked ones (API keys, etc.) QUALITY REQUIREMENTS No broken navigation No missing types No undefined components Consistent naming Clean, production-level structure Goal: Produce a complete, high-quality MVP that feels like a real App Store-ready product, not a prototype.
Sign in to leave a comment

Your AI-driven personal discipline system for focus, health, and self-improvement. Track goals, monitor vitality, and recover stronger — every day.
No comments yet. Be the first!