confidente

External Integrations

Food Data

Open Food Facts

Spoonacular / Edamam

Meal Plan Generation

Meal plan scheduling (Latin square-inspired design, washout window enforcement, ingredient exposure balancing) is built in-app. This is core IP and is not outsourced.

Health & Biometrics

Apple HealthKit

Google Health Connect

Clue API

Symptom & Cycle Tracking

Cronometer (potential)

Integration Architecture

All integrations write into the same daily_controls and meals tables as manual entry — they’re just another write path. The connected_integrations table tracks OAuth tokens, scopes, and sync state per provider.

Background jobs handle polling and webhook processing. Solid Queue (already in the stack) handles this.

External sources          App tables
─────────────────         ──────────────────
Apple Health        →     daily_controls (sleep, activity)
Google Health       →     daily_controls (sleep, activity)
Open Food Facts     →     ingredients, foods
Spoonacular/Edamam  →     meal_plan_slots (recipe pool)
Clue                →     daily_control_flags (menstrual_phase)
Cronometer          →     meals, meal_ingredients

Future: Lab Integration

At-home biomarker testing (DAO enzyme, IgG food antibodies, oxalate markers, calprotectin) via companies like Vibrant America or Genova.

Lab results feed into lab_result_markers with a sensitivity_category_id join — directly influencing hypothesis engine confidence.

Requires: HIPAA compliance, HL7/FHIR data standards, lab partner agreements. Explicitly out of scope for MVP.