https://github.com/adityash8/lifedelta
π°οΈ 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.
https://github.com/adityash8/lifedelta
ar-scanning coreml habit-tracking health healthkit ios longevity on-device-ml privacy stripe subscription survival-analysis swift swiftui
Last synced: 13 days ago
JSON representation
π°οΈ 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.
- Host: GitHub
- URL: https://github.com/adityash8/lifedelta
- Owner: adityash8
- License: mit
- Created: 2025-09-28T19:27:01.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2026-06-16T06:18:57.000Z (15 days ago)
- Last Synced: 2026-06-16T08:16:27.983Z (15 days ago)
- Topics: ar-scanning, coreml, habit-tracking, health, healthkit, ios, longevity, on-device-ml, privacy, stripe, subscription, survival-analysis, swift, swiftui
- Language: Swift
- Homepage: https://lifedelta.app
- Size: 43 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# π°οΈ LifeDelta
> **Gain days you can see** β an on-device longevity dashboard that turns your health data into real-time life-expectancy deltas.
## β¨ 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
- **π 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:**
```bash
git clone https://github.com/yourusername/lifedelta.git
cd lifedelta
```
2. **Open in Xcode:**
```bash
open LifeDelta.xcodeproj
```
3. **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
```
ββββββββββββββ
β 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)
- [x] Project setup and basic structure
- [x] HealthKit integration
- [x] Core ML model integration
- [x] Basic UI components
- [x] Onboarding flow
### π§ Phase 2: Core Features (Weeks 3-4)
- [x] Habit simulator with real-time updates
- [x] AR food scanning implementation
- [x] Shareable OG-card generation
- [x] 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](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](https://github.com/yourusername/lifedelta/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