Self-hosted health tracking that syncs your devices and keeps the data on your own server.
Website | Live Demo | Documentation | iOS App Store | iOS TestFlight
HealthLog is a health record you run yourself. It collects weight, blood pressure, pulse, glucose, sleep, mood, cycle, labs and medications from the devices and apps you already use, puts them on one timeline, and keeps them in a Postgres database on a NAS, homelab or small VPS of yours. It is a web app you can install on any phone or desktop, with a native iPhone and iPad app beside it.
It is for people who track their health over years, often with a condition and several devices, and who would rather not hand that history to a vendor cloud. One docker compose up starts it, there is no subscription, and you can export everything.
The live demo is a working install with sample data. Sign in with demo / demo123demo123.
| Area | What is there |
|---|---|
| Vitals | Weight, blood pressure, pulse, glucose, body composition, SpO₂, respiratory rate, HRV, sleep with a night timeline, workouts, nutrients and energy balance, and metrics you define yourself. Charts use published reference ranges (ESH 2023, ADA 2024) that you can replace with your clinician's targets. |
| Diaries | Mood, symptoms, illness episodes, a seizure diary, cycle tracking with pregnancy and the weeks after a birth, and validated questionnaires (WHO-5, PHQ-9, GAD-7, Sleep Condition Indicator) in their official wording. |
| Health record | Labs typed in or read from a scanned report (you confirm every value before it is saved), vaccinations, allergies, family history, conditions, visits and an encrypted document vault. |
| Medications | Weekly, weekday, interval, as-needed and cyclic schedules, a dose window per dose, and one answer per dose on every device. The list groups by category. Reminders go out over APNs, Telegram, ntfy, Web Push, email or a webhook, with one snooze setting for all of them. |
| Sync and import | Withings, WHOOP, Oura, Polar and Strava over OAuth, Garmin, Google Health (Fitbit, Pixel Watch), Nightscout, Apple Health live from the iOS app or as export.zip, Health Connect as a file or fetched from a WebDAV or Nextcloud folder, Gadgetbridge, FHIR R4 bundles from patient portals, FIT and CSV. |
| Sharing | A doctor-report PDF rendered on your server, on demand or filed every month, quarter or year. An emergency card with an offline copy and a QR link. Time-limited clinician share links, a calendar feed for visits and check-ups, a read-only FHIR R4 API and an MCP server. |
| Households | Invites, and managed profiles for someone without a login of their own (a child, a parent) that a guardian keeps, including where that profile's AI comes from. |
| Insights | Health scores, trends and correlations computed on your server without a model. Optionally a daily briefing and a coach that read your data against guideline ranges, with your own OpenAI or Anthropic key, a ChatGPT subscription, or a local model (Ollama, LM Studio, vLLM). |
The app speaks English, German, Spanish, French, Italian, Polish, Korean, Dutch, Brazilian Portuguese and Russian. The feature tour and the integration guides have the detail.
HealthLog is not a medical device. It records, charts and exports what you give it, and it does not diagnose, treat or advise treatment; the AI texts say where a value sits, never what you have. It is not a hosted service: there is no HealthLog cloud, no account with us, no ads and no tracking. And it is not built to sell or run a clinic on; the license is noncommercial.
Two containers: the Next.js app, which also runs the background jobs, and Postgres 18. Notes, documents, questionnaire answers, AI texts and every stored credential are encrypted with AES-256-GCM before they reach the database. AI is off until someone configures a provider, and a local endpoint keeps those requests on your network. The iOS app talks to the same API as the browser, and your server stays the only database. The diagrams show the data flow, the self-hosting topology and the security model.
You need Docker with Compose. On the host:
git clone https://github.com/MBombeck/HealthLog.git && cd HealthLog
cp .env.example .env
# Three secrets, each 32 random bytes as hex:
echo "POSTGRES_PASSWORD=$(openssl rand -hex 32)" >> .env
echo "ENCRYPTION_KEY=$(openssl rand -hex 32)" >> .env
echo "API_TOKEN_HMAC_KEY=$(openssl rand -hex 32)" >> .env
# Only if you open it over plain HTTP (LAN, NAS, Tailscale), or login fails:
echo "SESSION_COOKIE_SECURE=false" >> .env
docker compose up -dOpen http://<host>:3000. The first account you register becomes the admin, and onboarding walks you through the rest. The image comes pre-built for amd64 and arm64 from GHCR. curl -s http://localhost:3000/api/version shows which version is running.
Keep a copy of ENCRYPTION_KEY somewhere other than this host. Without it the encrypted data cannot be read, and a database backup does not contain it.
Behind a TLS reverse proxy (Caddy, Traefik, Nginx, Coolify), leave SESSION_COOKIE_SECURE unset and set NEXT_PUBLIC_APP_URL and APP_URL to the public address. The self-hosting guide covers that, and Unraid, Portainer and TrueNAS have their own pages. Every variable is in the environment reference.
Your data lives in the postgres-data volume. The app takes a database dump every night and before every migration into the backups volume, and can also send encrypted backups to an S3-compatible bucket. Backups explains both and how to restore.
From 1.49.0 on, releases follow a calendar: a feature release on the first Saturday of every month, fixes on the other Saturdays when there are any. Only a security problem, data loss or a broken install gets a release in between. :latest is the newest release; :edge is built from every push to main (amd64 only) for anyone who wants a fix before its Saturday.
To update, take a backup, run docker compose pull && docker compose up -d, and check /api/version. Migrations run on start and only go forward. Read the release notes first, and see Updates and deploy for pinning a version and going back. The full rule is in docs/contributing/release-policy.md.
HealthLog sends no telemetry. The server makes three requests on its own (an update check, a password breach check and a geolocation lookup for sign-ins), and each can be switched off. Anything else leaving the host is something you set up: a sync, an AI provider, a weather location, the push relay. Measurement values, lab values, medication names and mood scores are stored unencrypted so the server can chart and search them, so the database volume and its backups need the same care as the host. Sign-in works with passkeys and a second factor or through your own OIDC provider, sessions stay on the server, and you get a notification when a passkey, token or device changes. The security overview has the rest, and SECURITY.md says how to report a vulnerability.
The HealthLog Companion App is on the App Store, built on the same API as the web app: two-way Apple Health sync, medication reminders you can answer from the lock screen, and an on-device coach on iPhones with Apple Intelligence. The source is at MBombeck/healthlog-iOS.
App 1.7 is in TestFlight and moves to the App Store once it has been tested against server 1.49.0. It adds an iPad layout with a sidebar, a timeline with a lane each for medications, symptoms, seizures, labs and measurements, and Spanish. It also works with the optional push relay. Apple only delivers pushes to the App Store app when they are signed with the publisher's key, which a self-hosted server does not have. The relay fills that gap: your server seals each notification for one device, the relay passes it to Apple and cannot read it. It is run by the project on donations, free for private and household use, off until an admin turns it on, and open source at MBombeck/healthlog-push. The push relay guide and the relay's privacy notice list what it sees.
The App Store price is there to cover Apple's yearly developer fee. TestFlight is free and gets new builds first, and you can build the app from source.
Questions go to Discussions, bugs to Issues. Reporting a problem shows how to copy the redacted support info that makes a report useful. Pull requests are welcome; CONTRIBUTING.md covers the setup, the branch model and translations. The API contract for clients is docs/api/openapi.yaml.
Anything that does not fit a public thread can go to hello@healthlog.dev; security problems go to security@healthlog.dev as described in SECURITY.md.
If HealthLog is useful to you, GitHub Sponsors and Buy Me a Coffee pay for the servers, the push relay and the Apple developer account.
HealthLog started as something I built for myself. That it has turned into a project other people use, care about and help shape still surprises me, and I am grateful for every part of it.
Thank you to everyone who sent code that shipped: @TimonBed, @Antiheld86, @BernhardBuckel, @balajiv113, @aucun6352, @mathewcsims, @muhdusama and @ferges123.
Thank you to everyone who opened an issue, asked a question in the discussions or wrote me an email, and especially to @lutzkind, @HercoGC, @mills1975, @sreeramachandramurthy, @CritLoren, @mbreitkreuz, @k-nacion, @NebuPookins, @Nazza01, @Cnote43 and @juliaanvaneijndt, whose reports shaped HealthLog again and again. Most of what got better in the last months started with someone describing what went wrong for them, often with a log, a screenshot and a second try when the first fix was not enough.
And thank you to everyone who supported the project with a coffee or by buying the iPhone app. I don't name anyone here, but I read every message that comes with it. It tells me that HealthLog is worth the evenings.
Every merged pull request keeps its author's name on the commit, so the contributor graph is the full list. Release notes name the people whose work is in that release, including anyone who found the defect without sending the fix.
HealthLog is licensed under the PolyForm Noncommercial License 1.0.0: free to use, self-host and modify for noncommercial purposes. Commercial use needs a separate agreement; open an issue or get in touch through healthlog.dev. Releases up to and including v1.15.18 were published under AGPL-3.0 and remain available under that license. The push relay is a separate project under Apache-2.0.
healthlog.dev | Live Demo | Docs | iOS App Store | iOS TestFlight | GitHub Sponsors | Buy Me a Coffee






