Skip to content

πŸ•°οΈ LifeDelta - Dynamic Longevity Coach. Gain days you can see with on-device ML survival analysis, habit impact tracking, and AR food scanning. Privacy-first iOS app with HealthKit integration.

License

Notifications You must be signed in to change notification settings

adityash8/lifedelta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

iOS Version Swift Version License Privacy First

πŸ•°οΈ LifeDelta

Gain days you can see β€” an on-device longevity dashboard that turns your health data into real-time life-expectancy deltas.

LifeDelta App Preview

✨ What is LifeDelta?

LifeDelta is a revolutionary iOS app that transforms passive health metrics into an engaging, privacy-first longevity dashboard. By combining actuarial life tables with on-device machine learning, it displays your remaining life expectancy and quantifies the impact of daily habits in concrete days gained or lost.

🎯 Core Value Proposition

  • Instant Meaning: A live countdown that moves when you walk, sleep, or quit vaping
  • Actionable Clarity: Every habit shows a concrete "+ / – days" impact, not abstract scores
  • Privacy by Default: All modeling happens on-device; no health data leaves your phone
  • Built-in Virality: Shareable "+73 days gained" cards drive organic growth loops

πŸš€ Features

πŸ†“ Free Features

  • Life Countdown: Real-time countdown of remaining life days with live updates
  • HealthKit Integration: Syncs steps, resting heart rate, sleep, and VOβ‚‚ max data
  • Basic Dashboard: LifeScore overview with weekly deltas and top risk factors
  • Weekly Digest: Email summaries of your progress and insights

πŸ‘‘ Pro Features ($19/year)

  • Habit Simulator: See how lifestyle changes impact life expectancy in real-time
  • AR Food Scanner: Scan food to estimate nutritional impact on longevity
  • Advanced Analytics: Detailed insights and trend analysis with SHAP explanations
  • Shareable Cards: Generate viral "gains" cards with referral codes
  • Streak Insurance: Protect your progress with gamified streak protection
  • Data Export: Full GDPR-compliant data export and deletion

πŸ›‘οΈ Privacy & Security

Privacy First AES-256 Encryption GDPR Compliant
  • πŸ”’ 100% On-Device Processing: All health data processing happens locally
  • πŸ” AES-256 Encryption: Device-key encryption for cached data
  • ☁️ No Cloud Storage: Raw health data never leaves your device
  • πŸ“‹ GDPR Compliant: Full data export and deletion capabilities
  • πŸ›‘οΈ No Data Sharing: We never share your health data with third parties

πŸ’° Monetization

Plan Price Features
Free $0 Life countdown, basic dashboard, weekly email
Pro $19/year Full HealthKit sync, habit simulator, AR scanning, advanced analytics, data export

πŸ—οΈ Tech Stack

Layer Technology Purpose
Frontend SwiftUI + Combine Modern iOS development
ML Core ML + scikit-survival On-device survival analysis
Backend FastAPI + Supabase Micro-coach & auth
Automation n8n + Resend Email digests
Payments Stripe Subscription management
Analytics PostHog User behavior tracking

πŸš€ Getting Started

Prerequisites

  • Xcode 15.0+ with iOS 17.0+ SDK
  • iOS 17.0+ device or simulator
  • HealthKit enabled device for full functionality

πŸ“± Installation

  1. Clone the repository:
git clone https://github.com/yourusername/lifedelta.git
cd lifedelta
  1. Open in Xcode:
open LifeDelta.xcodeproj
  1. Build and run:
    • Select your target device
    • Press Cmd + R to build and run

πŸ”§ HealthKit Setup

The app requires HealthKit permissions for optimal functionality:

Data Type Purpose Required
Step Count Activity tracking βœ… Yes
Heart Rate Cardiovascular health βœ… Yes
Sleep Analysis Sleep quality metrics βœ… Yes
VOβ‚‚ Max Fitness level assessment βœ… Yes
Body Mass BMI calculations βœ… Yes
Height BMI calculations βœ… Yes

πŸ“ Project Structure

LifeDelta/
β”œβ”€β”€ πŸ“± LifeDeltaApp.swift          # Main app entry point
β”œβ”€β”€ 🏠 ContentView.swift           # Root view with tab navigation
β”œβ”€β”€ πŸ“Š Models/
β”‚   └── HealthData.swift           # Data models and structures
β”œβ”€β”€ βš™οΈ Managers/
β”‚   β”œβ”€β”€ HealthManager.swift        # HealthKit integration
β”‚   β”œβ”€β”€ LifeDeltaModel.swift       # ML model and calculations
β”‚   └── SubscriptionManager.swift  # In-app purchases
β”œβ”€β”€ 🎨 Views/
β”‚   β”œβ”€β”€ OnboardingView.swift       # User onboarding flow
β”‚   β”œβ”€β”€ DashboardView.swift        # Main dashboard
β”‚   β”œβ”€β”€ HabitSimulatorView.swift   # Habit impact simulator
β”‚   β”œβ”€β”€ ARScannerView.swift        # Food scanning interface
β”‚   β”œβ”€β”€ ProfileView.swift          # User profile and settings
β”‚   └── PaywallView.swift          # Subscription paywall
└── 🎨 Assets.xcassets/            # App icons and colors

πŸ—οΈ Architecture

Architecture Diagram
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ SwiftUI Appβ”‚
β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
      β”‚ Core ML .mlmodel (on-device)
      β”‚
β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Local Cache│◄──RLS──►│ Supabase     β”‚ (auth, anon telemetry)
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
      β”‚                         β–²
      β”‚ POST /micro-coach        β”‚ Webhook
      β–Ό                         β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                 β”‚
β”‚ FastAPI    │──► GPT-4o β—„β”€β”€β”€β”€β”€β”˜
β”‚ (Fly.io)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ—ΊοΈ Development Roadmap

βœ… Phase 1: Foundation (Weeks 1-2)

  • Project setup and basic structure
  • HealthKit integration
  • Core ML model integration
  • Basic UI components
  • Onboarding flow

🚧 Phase 2: Core Features (Weeks 3-4)

  • Habit simulator with real-time updates
  • AR food scanning implementation
  • Shareable OG-card generation
  • Stripe paywall integration
  • Advanced analytics dashboard

πŸ“§ Phase 3: Automation (Weeks 5-6)

  • Weekly digest email system (n8n + Resend)
  • Beta testing with TestFlight (100 users)
  • PostHog analytics integration
  • Performance optimization

πŸš€ Phase 4: Launch (Weeks 7-8)

  • App Store submission
  • Product Hunt launch
  • Social media marketing
  • User feedback integration

πŸ“Š Success Metrics

Metric Target Current
Activation Rate β‰₯70% TBD
WAU/MAU β‰₯50% TBD
Freeβ†’Pro Conversion β‰₯3% TBD
K-factor (Referrals) β‰₯0.25 TBD
Model MAE ≀7 years TBD

🀝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow Swift style guidelines
  • Add tests for new features
  • Update documentation as needed
  • Ensure privacy-first principles

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ†˜ Support

Channel Contact
πŸ“§ Email support@lifedelta.app
🌐 Website https://lifedelta.app
❓ Help Center https://lifedelta.app/help
πŸ› Bug Reports GitHub Issues

πŸ™ Acknowledgments

  • HealthKit framework for health data integration
  • Core ML for on-device machine learning
  • SwiftUI for modern iOS development
  • The longevity research community for data and insights
  • EZ MONEY for the vision and execution

Made with ❀️ by the EZ MONEY team
Gain days you can see

About

πŸ•°οΈ LifeDelta - Dynamic Longevity Coach. Gain days you can see with on-device ML survival analysis, habit impact tracking, and AR food scanning. Privacy-first iOS app with HealthKit integration.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages