Skip to content
leehomycPublic

About

A personal AI health companion for iOS. Features conversational meal scanning, sleep & activity tracking, proactive guidance, and empathetic emotional support.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

OnlyYou

OnlyYou is a SwiftUI iPhone app for health tracking, AI-assisted analysis, and conversational logging. It combines HealthKit data, a structured daily log, photo and text capture, personalized AI chat, and multi-provider model support into one personal health companion.

This repository is source-available for noncommercial use. See LICENSE.

Key Features

  • AI-powered nutrition analysis from text or food photos
  • Automatic sleep tracking and detailed stage breakdowns
  • Personalized real-time reminders and context-aware guidance
  • Daily rating and trend views for tracking your long-term progress
  • Always-on emotional support through natural wellness chat with selectable virtual humans and tailored conversation tones
  • Record and track everything: from meals, moods, and daily routines to medical records, health reports, and nutritional supplements. The AI gathers context and knows you better the more you chat
  • All-in-one health dashboard with collapsible sections combining HealthKit metrics and all your deeply personal logged data
  • AI health report with iterative follow-up chat
  • Nested daily logging for meals, foods, and supplements, featuring AI-analyzed nutrition and ingredients
  • Quick Log shortcuts for repeated items
  • Gemini, OpenAI, and Anthropic model support

What OnlyYou Does

  • Dashboard
    • Reads HealthKit data into a compact, section-based health dashboard.
    • Shows AI-generated daily tips informed by current metrics, time, and weather.
    • Tracks overall and section health scores with history views.
  • AI Report
    • Generates a structured health report with section-level scoring and narrative analysis.
    • Supports follow-up report chat grounded in the current report and the latest user context.
  • Scan & Log
    • Lets you describe meals, supplements, symptoms, activities, emotions, or events in natural language.
    • Supports photo input for food, supplements, labels, and other health-related images.
    • Proposes structured log changes with confirmation before saving.
    • Keeps day-specific logs separate from longer-term personal context.
  • Personalization
    • Supports English and Simplified Chinese.
    • Supports different AI avatars, conversation tones, themes, and AI providers.
    • Persists user profile details and durable context for future chats.

Screenshots

Image
Dashboard
HealthKit metrics grouped into sections such as activity, heart, body, sleep, nutrition, and mindfulness, with an AI tip header and overall score.
Image
AI Report
A structured AI health report with per-section scores, narrative analysis, and personalized recommendations.
Image
Report Chat
Follow-up conversation on top of the current report, with suggested questions and provider-backed AI responses.
Image
Scan & Log
A natural chat interface for logging meals, supplements, activities, symptoms, and other health context with confirmation before saving.
Image
Food Photo Analysis
Food recognition with estimated nutrition and ingredient breakdown before the app proposes log updates.
Image
Supplement Photo Analysis
Reads supplement names, dosage, and ingredient details from labels and can turn them into structured daily log entries.
Image
Today's Log
A structured daily log that keeps confirmed entries visible and traceable, including nested food and nutrient details.
Image
Quick Log
Frequently used shortcuts for rapid re-logging of common items and actions.
Image
Theme and Personality
Theme color, dark mode, language, avatar, and conversation tone settings for the AI companion.
Image
AI Provider Setup
Switch between Gemini, OpenAI, and Anthropic, and choose the model used by the app.
Image
Personal Profile
Stores name, age, background, and durable user context so AI conversations stay grounded in who the user is.
Image
Wellness Conversation
The AI can respond conversationally to stress, fatigue, or mood in addition to structured health logging.

Architecture Overview

  • OnlyYou/OnlyYouApp.swift
    • App entry point and tab wiring.
  • OnlyYou/ContentView.swift
    • Main health dashboard.
  • OnlyYou/HealthDashboardViewModel.swift
    • Dashboard orchestration and refresh flow.
  • OnlyYou/HealthKitService.swift
    • HealthKit reads and metric mapping.
  • OnlyYou/ReportView.swift
    • AI report UI and report chat.
  • OnlyYou/ReportViewModel.swift
    • Report generation, caching, and follow-up chat state.
  • OnlyYou/PhotoAnalysisView.swift
    • Scan & Log chat UI.
  • OnlyYou/PhotoAnalysisViewModel.swift
    • Scan & Log conversation, confirmation, and mutation logic.
  • OnlyYou/GeminiService.swift
    • Shared prompt building, provider transport, parsing, and structured AI output handling.
  • OnlyYou/CustomHealthStore.swift
    • Storage for user-created and AI-created log entries.
  • OnlyYou/DailyChatStore.swift
    • Daily log persistence and prompt-ready formatting.
  • OnlyYou/HealthMemoryStore.swift
    • Historical health snapshots for longitudinal context.
  • OnlyYou/HealthScoreStore.swift
    • Overall and section score history.
  • OnlyYou/UserProfile.swift
    • User profile and persistent personal context.
  • OnlyYou/SettingsView.swift
    • Theme, language, provider, model, profile, avatar, and tone settings.

Requirements

  • Xcode 15 or later
  • iOS 17.0 deployment target
  • iPhone or iOS Simulator
  • HealthKit access for dashboard metrics
  • At least one supported AI provider API key for AI features

Setup

  1. Open OnlyYou.xcodeproj in Xcode.
  2. Set your signing team and bundle identifier.
  3. Build and run on an iPhone or simulator.
  4. Grant HealthKit permissions when prompted.
  5. Open Settings and add an API key for Gemini, OpenAI, or Anthropic.
  6. Choose the active provider, model, language, avatar, and tone.

AI Providers

The app currently supports:

  • Gemini
  • OpenAI
  • Anthropic

Prompt logic is shared at the app layer, while transport and response parsing are provider-specific.

Data and Privacy

  • HealthKit data is read only after user authorization.
  • Daily logs, profile data, and app preferences are stored locally on device.
  • AI provider API keys are stored locally in the iOS keychain.
  • Depending on the feature, prompts may include:
    • current dashboard metrics
    • today's log
    • recent health history
    • persistent user context
    • current local time and weather

If you plan to ship this app or adapt it for real users, review the prompt payloads, retention behavior, and privacy posture for your own compliance requirements.

Product Notes

  • OnlyYou is not a medical device.
  • It is not a substitute for professional medical advice, diagnosis, or treatment.
  • AI-generated suggestions and analyses should be treated as informational only.

License

This repository is available under a noncommercial source-available license. Commercial use is not permitted without separate written permission from the copyright holder.

See LICENSE for the full terms.

About

A personal AI health companion for iOS. Features conversational meal scanning, sleep & activity tracking, proactive guidance, and empathetic emotional support.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages