How agevine/agevine works
Agevine is an eldercare monitoring platform: wearable, voice, and smart-home integrations push health events to an API gateway, which stores them in PostgreSQL for family-dashboard monitoring and alert management. The gateway source excerpt confirms webhook ingestion and database use; the README documents the broader SDK-to-gateway-to-dashboard architecture and capabilities. Some dashboard and SDK internals were not sampled, so those documented branches are shown without inferred internal call paths.
Main entry points: src/index.ts API gateway · src/index.ts Wearables SDK · src/index.ts Voice SDK · src/index.ts IoT SDK
Components 20
Device Integrations
- Wearables SDK
packages/wearables/src/index.ts - HealthKit adapter
packages/wearables/ios/AgevineHealthKit.swift - Health Connect adapter
packages/wearables/android/AgevineHealthConnect.kt - Voice SDK
packages/voice/src/index.ts - IoT SDK
packages/iot/src/index.ts
API Gateway
- API gateway
apps/api-gateway/src/index.ts
Health Data
- PostgreSQL
- Health data schema
apps/api-gateway/src/db/schema.ts
Family Dashboard
- Health dashboard
apps/ui-core/src/app/(main)/dashboard/page.tsx - Patient profiles
apps/ui-core/src/app/(main)/patients/page.tsx - Alert management
apps/ui-core/src/app/(main)/alerts/page.tsx - Device monitoring
apps/ui-core/src/app/(main)/devices/page.tsx - Voice sentiment trends
apps/ui-core/src/components/SentimentChart.tsx - Voice logs
apps/ui-core/src/app/(main)/voice-logs/page.tsx - Account settings
apps/ui-core/src/app/(main)/settings/page.tsx - Dashboard authentication
apps/ui-core/src/app/api/auth/route.ts
Other components
- Family caregiver
- Wearable devices
- Voice AI platforms
- Smart sensors
Connections 20
- Wearable devices → Wearables SDK: provides health data
README.md - Wearables SDK → API gateway: pushes vitals
README.md - HealthKit adapter → Wearables SDK: adapts HealthKit
- Health Connect adapter → Wearables SDK: adapts Health Connect
- Voice AI platforms → Voice SDK: provides call data
README.md - Voice SDK → API gateway: pushes call logs
README.md - Smart sensors → IoT SDK: provides sensor events
README.md - IoT SDK → API gateway: pushes events
README.md - API gateway → PostgreSQL: stores and queries
README.md - API gateway → Health data schema: uses table definitions
apps/api-gateway/src/index.ts - Family caregiver → Health dashboard: views health data
README.md - PostgreSQL → Health dashboard: supplies dashboard data
README.md - Patient profiles → API gateway: requests patient data
apps/ui-core/src/app/(main)/patients/page.tsx - Alert management → API gateway: manages alert rules
apps/ui-core/src/app/(main)/alerts/page.tsx - Family caregiver → Alert management: configures notifications
README.md - PostgreSQL → Voice sentiment trends: supplies sentiment history
README.md - PostgreSQL → Voice logs: supplies call history
README.md - PostgreSQL → Device monitoring: supplies device status
- Family caregiver → Account settings: manages account
- Family caregiver → Dashboard authentication: submits password
apps/ui-core/src/app/api/auth/route.ts