API Reference
The complete GlucoseIQ public API, generated from source TSDoc — 93 functions, 74 interfaces, 13 type aliases, 44 constants, and 5 classes.
The public functions and contracts exported by @glucoseiq/core, generated directly from source declarations and TSDoc.
Reports
One-call clinical reports composed from the whole engine. — 1 function.
AGP & Metrics Aggregate
The Ambulatory Glucose Profile series and the all-in-one metrics call. — 2 functions.
Time in Range
Enhanced 5-range TIR, pregnancy TIR, and Time in Tight Range. — 7 functions.
Glucose IQ Score
A single 0–100 wellness score derived from the peer-reviewed GRI. — 1 function.
Variability & Risk Metrics
Cited variability and risk indices — every formula golden-tested. — 19 functions.
Meals & AUC
Postprandial meal response and area-under-the-curve. — 3 functions.
Episodes
Consensus ≥15-minute hypo/hyper event detection. — 1 function.
Live Model
Rate-of-change, trend derivation, and sensor staleness. — 4 functions.
Time-Series Primitives
Gap detection, day/night split, and uniform-grid resampling. — 3 functions.
Cohort
Population metric distributions across many patients. — 1 function.
Rendering (SVG)
Zero-dependency SVG-string renderers for any surface. — 3 functions.
Connectors
Dexcom, Libre, and Nightscout normalization, capabilities, and safe variants. — 13 functions.
Ingestion
Parse any Dexcom/Libre/Nightscout/Tidepool CSV export. — 1 function.
Interoperability
FHIR CGM IG and Open mHealth payload builders. — 6 functions.
Conversions, A1C & GMI
Unit conversions and A1C / eAG / GMI estimation. — 15 functions.
Glucose Values & Formatting
Labeling, validation, parsing, and formatting helpers. — 13 functions.
Types & Interfaces
The public contracts that connect ingestion, analytics, rendering, and integrations. — 87 exports.
Constants
Exported thresholds, goals, conversion factors, colors, and connector capabilities. — 44 exports.
Error Classes
Typed failures with stable machine-readable error codes. — 5 exports.