Skip to Content
Introduction

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

ComponentTechnology
RuntimeNode.js 20+
Package Managerpnpm 9.x with workspaces
Build SystemTurborepo 2.x
CMSPayload CMS 3.75+ (Next.js App Router)
DatabaseSupabase PostgreSQL
AuthClerk SSO
AIAnthropic Claude / OpenAI GPT-4
ValidationZod 3.x
API FrameworkHono (Patient Graph), Next.js API Routes
TestingVitest 2.x
Background JobsTrigger.dev
Activity FeedsGetStream