{"id":50953667,"url":"https://github.com/adityash8/lifedelta","last_synced_at":"2026-06-18T04:30:41.605Z","repository":{"id":365170019,"uuid":"1065962416","full_name":"adityash8/lifedelta","owner":"adityash8","description":"🕰️ 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.","archived":false,"fork":false,"pushed_at":"2026-06-16T06:18:57.000Z","size":44,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-16T08:16:27.983Z","etag":null,"topics":["ar-scanning","coreml","habit-tracking","health","healthkit","ios","longevity","on-device-ml","privacy","stripe","subscription","survival-analysis","swift","swiftui"],"latest_commit_sha":null,"homepage":"https://lifedelta.app","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adityash8.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-28T19:27:01.000Z","updated_at":"2026-06-16T06:19:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/adityash8/lifedelta","commit_stats":null,"previous_names":["adityash8/lifedelta"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/adityash8/lifedelta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityash8%2Flifedelta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityash8%2Flifedelta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityash8%2Flifedelta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityash8%2Flifedelta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adityash8","download_url":"https://codeload.github.com/adityash8/lifedelta/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityash8%2Flifedelta/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34476727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ar-scanning","coreml","habit-tracking","health","healthkit","ios","longevity","on-device-ml","privacy","stripe","subscription","survival-analysis","swift","swiftui"],"created_at":"2026-06-18T04:30:39.951Z","updated_at":"2026-06-18T04:30:41.592Z","avatar_url":"https://github.com/adityash8.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/iOS-17.0+-blue.svg\" alt=\"iOS Version\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Swift-5.0-orange.svg\" alt=\"Swift Version\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg\" alt=\"License\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Privacy-First-red.svg\" alt=\"Privacy First\"\u003e\n\u003c/div\u003e\n\n# 🕰️ LifeDelta\n\n\u003e **Gain days you can see** — an on-device longevity dashboard that turns your health data into real-time life-expectancy deltas.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://via.placeholder.com/300x200/00C851/FFFFFF?text=LifeDelta+App\" alt=\"LifeDelta App Preview\" width=\"300\"\u003e\n\u003c/div\u003e\n\n## ✨ What is LifeDelta?\n\nLifeDelta 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**.\n\n### 🎯 Core Value Proposition\n\n- **Instant Meaning**: A live countdown that moves when you walk, sleep, or quit vaping\n- **Actionable Clarity**: Every habit shows a concrete \"+ / – days\" impact, not abstract scores  \n- **Privacy by Default**: All modeling happens on-device; no health data leaves your phone\n- **Built-in Virality**: Shareable \"+73 days gained\" cards drive organic growth loops\n\n## 🚀 Features\n\n### 🆓 Free Features\n- **Life Countdown**: Real-time countdown of remaining life days with live updates\n- **HealthKit Integration**: Syncs steps, resting heart rate, sleep, and VO₂ max data\n- **Basic Dashboard**: LifeScore overview with weekly deltas and top risk factors\n- **Weekly Digest**: Email summaries of your progress and insights\n\n### 👑 Pro Features ($19/year)\n- **Habit Simulator**: See how lifestyle changes impact life expectancy in real-time\n- **AR Food Scanner**: Scan food to estimate nutritional impact on longevity\n- **Advanced Analytics**: Detailed insights and trend analysis with SHAP explanations\n- **Shareable Cards**: Generate viral \"gains\" cards with referral codes\n- **Streak Insurance**: Protect your progress with gamified streak protection\n- **Data Export**: Full GDPR-compliant data export and deletion\n\n## 🛡️ Privacy \u0026 Security\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Privacy-100%25_On--Device-brightgreen.svg\" alt=\"Privacy First\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Encryption-AES--256-blue.svg\" alt=\"AES-256 Encryption\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/GDPR-Compliant-red.svg\" alt=\"GDPR Compliant\"\u003e\n\u003c/div\u003e\n\n- **🔒 100% On-Device Processing**: All health data processing happens locally\n- **🔐 AES-256 Encryption**: Device-key encryption for cached data\n- **☁️ No Cloud Storage**: Raw health data never leaves your device\n- **📋 GDPR Compliant**: Full data export and deletion capabilities\n- **🛡️ No Data Sharing**: We never share your health data with third parties\n\n## 💰 Monetization\n\n| Plan | Price | Features |\n|------|-------|----------|\n| **Free** | $0 | Life countdown, basic dashboard, weekly email |\n| **Pro** | $19/year | Full HealthKit sync, habit simulator, AR scanning, advanced analytics, data export |\n\n## 🏗️ Tech Stack\n\n\u003cdiv align=\"center\"\u003e\n\n| Layer | Technology | Purpose |\n|-------|------------|---------|\n| **Frontend** | SwiftUI + Combine | Modern iOS development |\n| **ML** | Core ML + scikit-survival | On-device survival analysis |\n| **Backend** | FastAPI + Supabase | Micro-coach \u0026 auth |\n| **Automation** | n8n + Resend | Email digests |\n| **Payments** | Stripe | Subscription management |\n| **Analytics** | PostHog | User behavior tracking |\n\n\u003c/div\u003e\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- **Xcode 15.0+** with iOS 17.0+ SDK\n- **iOS 17.0+** device or simulator\n- **HealthKit enabled** device for full functionality\n\n### 📱 Installation\n\n1. **Clone the repository:**\n```bash\ngit clone https://github.com/yourusername/lifedelta.git\ncd lifedelta\n```\n\n2. **Open in Xcode:**\n```bash\nopen LifeDelta.xcodeproj\n```\n\n3. **Build and run:**\n   - Select your target device\n   - Press `Cmd + R` to build and run\n\n### 🔧 HealthKit Setup\n\nThe app requires HealthKit permissions for optimal functionality:\n\n| Data Type | Purpose | Required |\n|-----------|---------|----------|\n| **Step Count** | Activity tracking | ✅ Yes |\n| **Heart Rate** | Cardiovascular health | ✅ Yes |\n| **Sleep Analysis** | Sleep quality metrics | ✅ Yes |\n| **VO₂ Max** | Fitness level assessment | ✅ Yes |\n| **Body Mass** | BMI calculations | ✅ Yes |\n| **Height** | BMI calculations | ✅ Yes |\n\n## 📁 Project Structure\n\n```\nLifeDelta/\n├── 📱 LifeDeltaApp.swift          # Main app entry point\n├── 🏠 ContentView.swift           # Root view with tab navigation\n├── 📊 Models/\n│   └── HealthData.swift           # Data models and structures\n├── ⚙️ Managers/\n│   ├── HealthManager.swift        # HealthKit integration\n│   ├── LifeDeltaModel.swift       # ML model and calculations\n│   └── SubscriptionManager.swift  # In-app purchases\n├── 🎨 Views/\n│   ├── OnboardingView.swift       # User onboarding flow\n│   ├── DashboardView.swift        # Main dashboard\n│   ├── HabitSimulatorView.swift   # Habit impact simulator\n│   ├── ARScannerView.swift        # Food scanning interface\n│   ├── ProfileView.swift          # User profile and settings\n│   └── PaywallView.swift          # Subscription paywall\n└── 🎨 Assets.xcassets/            # App icons and colors\n```\n\n## 🏗️ Architecture\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://via.placeholder.com/600x400/2C3E50/FFFFFF?text=LifeDelta+Architecture\" alt=\"Architecture Diagram\" width=\"600\"\u003e\n\u003c/div\u003e\n\n```\n┌────────────┐\n│ SwiftUI App│\n└─────┬──────┘\n      │ Core ML .mlmodel (on-device)\n      │\n┌─────▼──────┐           ┌─────────────┐\n│ Local Cache│◄──RLS──►│ Supabase     │ (auth, anon telemetry)\n└────────────┘           └─────────────┘\n      │                         ▲\n      │ POST /micro-coach        │ Webhook\n      ▼                         │\n┌────────────┐                 │\n│ FastAPI    │──► GPT-4o ◄─────┘\n│ (Fly.io)   │\n└────────────┘\n```\n\n## 🗺️ Development Roadmap\n\n### ✅ Phase 1: Foundation (Weeks 1-2)\n- [x] Project setup and basic structure\n- [x] HealthKit integration\n- [x] Core ML model integration\n- [x] Basic UI components\n- [x] Onboarding flow\n\n### 🚧 Phase 2: Core Features (Weeks 3-4)\n- [x] Habit simulator with real-time updates\n- [x] AR food scanning implementation\n- [x] Shareable OG-card generation\n- [x] Stripe paywall integration\n- [ ] Advanced analytics dashboard\n\n### 📧 Phase 3: Automation (Weeks 5-6)\n- [ ] Weekly digest email system (n8n + Resend)\n- [ ] Beta testing with TestFlight (100 users)\n- [ ] PostHog analytics integration\n- [ ] Performance optimization\n\n### 🚀 Phase 4: Launch (Weeks 7-8)\n- [ ] App Store submission\n- [ ] Product Hunt launch\n- [ ] Social media marketing\n- [ ] User feedback integration\n\n## 📊 Success Metrics\n\n| Metric | Target | Current |\n|--------|--------|---------|\n| **Activation Rate** | ≥70% | TBD |\n| **WAU/MAU** | ≥50% | TBD |\n| **Free→Pro Conversion** | ≥3% | TBD |\n| **K-factor (Referrals)** | ≥0.25 | TBD |\n| **Model MAE** | ≤7 years | TBD |\n\n## 🤝 Contributing\n\nWe welcome contributions! Please follow these steps:\n\n1. **Fork** the repository\n2. **Create** a feature branch (`git checkout -b feature/amazing-feature`)\n3. **Commit** your changes (`git commit -m 'Add some amazing feature'`)\n4. **Push** to the branch (`git push origin feature/amazing-feature`)\n5. **Open** a Pull Request\n\n### Development Guidelines\n\n- Follow Swift style guidelines\n- Add tests for new features\n- Update documentation as needed\n- Ensure privacy-first principles\n\n## 📄 License\n\nThis project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.\n\n## 🆘 Support\n\n\u003cdiv align=\"center\"\u003e\n\n| Channel | Contact |\n|---------|---------|\n| 📧 **Email** | support@lifedelta.app |\n| 🌐 **Website** | https://lifedelta.app |\n| ❓ **Help Center** | https://lifedelta.app/help |\n| 🐛 **Bug Reports** | [GitHub Issues](https://github.com/yourusername/lifedelta/issues) |\n\n\u003c/div\u003e\n\n## 🙏 Acknowledgments\n\n- **HealthKit** framework for health data integration\n- **Core ML** for on-device machine learning\n- **SwiftUI** for modern iOS development\n- **The longevity research community** for data and insights\n- **EZ MONEY** for the vision and execution\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003eMade with ❤️ by the EZ MONEY team\u003c/strong\u003e\n  \u003cbr\u003e\n  \u003cem\u003eGain days you can see\u003c/em\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityash8%2Flifedelta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityash8%2Flifedelta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityash8%2Flifedelta/lists"}