Bridge Mira
Bridge
Pull-model bridge: fetches hormone, cycle, and daily log data from the Mira API into HDS.
Data Synced
Section titled “Data Synced”- Hormone readings (FSH, LH, E3G, PdG)
- Cycle information
- Daily logs (mucus, bleeding, temperature, etc.)
- The user connects through the account app’s
/connect(or the HDS webapp): the bridge runs the Mira OAuth, then returns to HDS’s own pages only, with a CMC offer that the user’s side accepts - Bridge calls Mira API endpoints (cycles, hormones, daily logs) and converts to HDS event types
- Incremental sync using last-synced timestamp; a daily run on the cluster’s scheduler worker
- The connector state (active, needs reauthorization, error, disconnected) is published as a
sync-status/connector-v1event on the user’ssync-status-mirastream - A user whose HDS grant was revoked is disconnected before Mira is called
Status
Section titled “Status”Production (1.10.3 as of 2026-10-05), listed in the HDS app catalog. Deploys carry a /status health check, so
a crash-looping container never replaces a healthy one.
Tech Stack
Section titled “Tech Stack”- Node.js, lib-bridge-js framework
- Mira OAuth2 integration