Your Fitbit data, read properly.
Your health data is fetched straight from Google to this device and analysed here. It is never stored on a server — this app has no database and no account. The only thing that touches the server is the login handshake, because Google requires a client secret that a browser can't safely hold.
Fitbit’s developer portal has closed. The Fitbit Web API is now the Google Health API, and apps are registered through Google Cloud.
Open developers.google.com/health/setup and use the Enable the API and get an OAuth 2.0 Client ID button. When it asks:
Must match exactly, including the trailing slash. Google’s own instructions suggest google.com here — use this instead.At the end you are given an OAuth 2.0 Client ID and a Client Secret. Keep that tab open — you'll need both in step 3.
A new OAuth client starts locked down. Three things to set, all in the Google Cloud console for that project:
googlehealth.activity_and_fitness.readonly — steps, zone minutes, VO₂ maxgooglehealth.health_metrics_and_measurements.readonly — HRV, resting HR, SpO₂, weightgooglehealth.sleep.readonly — sleep stages and timinggooglehealth.profile.readonly — your age, for reference ranges
Run these two commands, from the folder this app lives in. Each one prompts you to paste a value — the Client ID for the first, the Client Secret for the second.
npx wrangler pages secret put GOOGLE_CLIENT_ID --project-name resting-signal
npx wrangler pages secret put GOOGLE_CLIENT_SECRET --project-name resting-signal
These are stored as encrypted Cloudflare secrets on your own account. The secret is only ever read server-side by the login endpoint — it is never sent to the browser, and it is not in the source code.
After setting them, redeploy once so the new values take effect, then reload this page.
Google will ask which data to share. Anything you decline simply leaves the matching section of the app empty.
You will see an “unverified app” warning. That is expected — it is your own app, registered to your own account, and it only ever asks for read access.
In Safari, tap the Share button, then Add to Home Screen. It then opens full-screen with no browser chrome, like any other app. Do this after connecting, so your login carries over.