Loop Health Documentation
Welcome to the Loop Health platform documentation — the comprehensive reference for the Loop ecosystem of health optimization tools, APIs, and services.
What is Loop Health?
Loop Health is a membership collective for self-directed health optimization. The platform provides:
- Patient Graph — Unified health data API with RBAC, audit logging, and clinical-grade security
- Luna AI — Intelligent health advisor with 13 specialized tools, guardrails, and compliance logging
- Lab Analysis — PDF parsing, biomarker extraction, and health scoring with reference ranges
- Wearable Integrations — Oura, Whoop, Dexcom, and Libre data aggregation
- Protocol Engine — Peptide dosing, cycle management, and adherence tracking
- Health Engine — Qualification assessment, contraindication checking, and risk flagging
- CMS Admin — Payload CMS for content management across all Loop brands
Documentation Sections
Getting Started
Introduction to the platform, quick start guide, and architecture overview.
API Reference
Complete API documentation for all endpoints with curl examples, request/response schemas, and authentication details.
Patient Graph
Unified patient health data system — data model, RBAC permissions, audit logging, and API endpoints.
Health Data
Biomarker parser, health engine, health scoring, contraindication checking, and reference data packages.
Wearables
OAuth integration guides for Oura Ring, Whoop, Dexcom CGM, and Libre CGM including data sync and metrics.
Luna AI
AI health advisor documentation — all tools, guardrails, system prompt, emergency handling, and compliance.
Packages
Reference documentation for all @loop/* packages in the monorepo.
Applications
Complete application documentation for all Loop apps — admin CMS, customer portals, mobile apps, and microservices.
Deployment
Docker, Fly.io, CI/CD, and environment variable configuration guides.
User Guides
Guides for patients, providers, developers, and CMS administrators.
Tech Stack
| Component | Technology |
|---|---|
| Runtime | Node.js 20+ |
| Package Manager | pnpm 9.x with workspaces |
| Build System | Turborepo 2.x |
| CMS | Payload CMS 3.75+ (Next.js App Router) |
| Database | Supabase PostgreSQL |
| Auth | Clerk SSO |
| AI | Anthropic Claude / OpenAI GPT-4 |
| Validation | Zod 3.x |
| API Framework | Hono (Patient Graph), Next.js API Routes |
| Testing | Vitest 2.x |
| Background Jobs | Trigger.dev |
| Activity Feeds | GetStream |