Skip to main content

🎯 Overview

The goal of TrainIQ was to build a personalized workout generation app that adapts to each user’s inputs and training preferences.
Users can define equipment, muscle groups, goals, and time available, and TrainIQ generates a complete, structured workout including warm-up, main workout, and cool-down sections.
Under the hood, the app uses OpenRouter’s Mixtral and Gemini APIs to generate structured JSON responses via Firebase Functions.
All workouts, preferences, and credit balances are managed through Firebase (Firestore, Auth, and Functions), and the front end is built in SwiftUI with SwiftData persistence and StoreKit for in-app purchases.
👉 Visit trainiq.curata.ai →

🧩 Key Skills & Contributions

  • Full-Stack App Development: Designed and built the entire stack — iOS front end, Firebase backend, and OpenRouter AI integration.
  • AI Integration: Implemented natural language workout generation with OpenRouter (Mixtral, Gemini Flash) using structured JSON schema validation.
  • Architecture & Data Modeling: Built Firestore collections for workouts, settings, and user credits, ensuring data integrity and scalability.
  • Monetization: Integrated StoreKit for one-time credit-based purchases, no subscriptions.
  • User Experience Design: Created a clean, intuitive SwiftUI interface for workout creation, history, and performance tracking.
  • Automation & Validation: Used OpenAI-style tool calling with Zod validation to guarantee consistent workout output format.

🏆 Impact

  • Demonstrated ability to design, build, and ship a complete iOS product from scratch.
  • Built a reliable and low-cost AI backend (~$0.0002 per workout) with predictable output structure.
  • Designed an approachable, modern fitness experience powered by AI but grounded in real-world training principles.
  • Served as the foundation for a scalable platform that can evolve into a broader suite of AI health tools.

🛠️ Tech Stack

LayerTechnologies
Frontend (iOS)SwiftUI, SwiftData, StoreKit
BackendFirebase (Firestore, Functions, Auth)
AI GenerationOpenRouter (Mixtral, Gemini Flash)
ValidationZod schema validation
Hosting & InfraFirebase Hosting, Apple App Store
Design & BrandingCurata brand, custom icons, App Store assets

🔗 Resources

  • Website: trainiq.curata.ai
  • Platform: iOS (App Store)
  • Phase: Active
  • Type: AI & Mobile Development