All docs
Self-hosting overview
Self-hosting
Keep a copy of your Apple Health data in a database you manage, with a dashboard, exports and an API. The open-source stack runs with Docker Compose on Linux or macOS. You manage the machine, access, updates and backups.
Would rather not run it yourself? The PulsHealth database is the same stack, hosted for you.
Setup
Follow one guide from choosing a network connection to seeing your first synced records. It includes a copyable prompt for an AI coding assistant, the installation commands, iPhone pairing and troubleshooting. The backend is pre-release software.
What comes up
Six services plus a one-shot migrator, all in the same repository as the app, all yours to inspect and change.
PostgreSQL 17 + TimescaleDB
Stores your health records. TimescaleDB organizes time-series data and compresses older records. A migration service prepares the schema.
Ingest API (Go)
Receives authenticated uploads from your phone. Repeated uploads of the same sample are safe.
Product API (Go)
Serves daily metrics, workouts, activity rings and exports to your own projects through a documented read-only API.
Grafana
Includes health-data dashboards and server monitoring, with alert rules you can configure.
Web viewer
Browse activity rings, trends, workouts and individual types. Fresh bootstrap installs generate a login password.
MCP server
Lets compatible AI assistants read your data through the product API. Connecting an assistant is optional and requires separate configuration.
How the phone reaches it
Everything binds to loopback by default, including ingest, the product API, the MCP server, Grafana, the viewer and Postgres. How the phone reaches ingest is up to you.
Same Wi-Fi
The LAN option lets your phone sync on trusted home Wi-Fi. It uses unencrypted HTTP, so it belongs only on a network you control.
From anywhere
Use an HTTPS proxy, optionally over a private VPN. The setup guide explains how to give the phone a reachable URL while keeping the other services private.
Backups are yours
Backups are optional and start only when enabled. Keep a separate copy and test restoration; the database volume alone is not a backup.
Your own backend
Write a receiver
The app also syncs to compatible receivers you build. The protocol specifies uploads, authentication and acknowledgments, with schemas, test fixtures and a complete Python/SQLite example.
Read the specificationEmbed the sync engine
Add HealthKit sync to your own iOS app with PulsHealthSync, the Swift package underneath PulsHealth. It includes queries, aggregation, background scheduling and upload handling.
Read the package docsAccess and maintenance
Keep credentials private and use a separate token for each phone when you need individual revocation. Configure HTTPS for remote access and back up before upgrades. Connecting a cloud AI assistant sends the records it requests to that provider; self-hosting does not keep those responses local.