Skip to content
killernayPublic

About

Heart-rate-capped running for people with heart conditions (built by a runner with AF). Syncs Garmin & Apple Watch, sends HR-capped run/walk plans to your Garmin, AI coach, and a report for your doctor. macOS · Windows · Linux

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

Pulse Run

A macOS desktop app for runners who train by heart rate. It syncs your Garmin Connect data, shows recovery and readiness, keeps an HR-capped base-building plan, sends the plan's workouts to your Garmin calendar, and builds a printable report for your doctor. It was built around a safe base plan for runners with atrial fibrillation (AF).

Download

Download for Mac (Apple Silicon, M1 or newer) Download for Mac (Intel)

Download for Windows Download for Linux (.deb)

Click the button for your computer; the file downloads straight away. Version 0.3.1 · all files and older versions

กดปุ่มตามเครื่องของคุณ ไฟล์จะดาวน์โหลดทันที

  • ไม่แน่ใจว่า Mac เป็นรุ่นไหน: กดโลโก้ Apple มุมซ้ายบน → เกี่ยวกับ Mac เครื่องนี้ (About This Mac) ถ้าบรรทัด "ชิป" เขียนว่า Apple M (M1, M2, M3, M4, M5 หรือใหม่กว่า) ให้กดปุ่มสีส้ม ถ้าเขียนว่า Intel ให้กดปุ่มสีเทา
  • เปิดครั้งแรกบน Mac จะขึ้นว่า "Apple could not verify…" เพราะแอปยังไม่ผ่านการรับรองจาก Apple ให้กด Done แล้วไปที่ ตั้งค่าระบบ (System Settings) → ความเป็นส่วนตัวและความปลอดภัย (Privacy & Security) → เลื่อนลงไปกด Open Anyway ใส่รหัส Mac แล้วกด Open Anyway อีกครั้ง ทำครั้งเดียว ครั้งต่อไปเปิดได้ปกติ (รายละเอียด)
  • บน Windows ถ้าขึ้น "Windows protected your PC" ให้กด More info → Run anyway
  • ตัว Windows และ Linux เป็นรุ่นทดลอง ยังไม่ได้ทดสอบบนเครื่องจริง

Today

Highlights

HR at the same pace: are you getting fitter?

Every run-walk session races on a 3D track at its real pace, with a heart that beats at the session's real average HR (green ≤ Easy cap, yellow near it, red over it). Same speed with fewer heartbeats means your aerobic base is improving. That is the progress signal that matters when your heart rate is capped and pace alone tells you little.

HR at the same pace

Running form from Garmin running dynamics

A 3D runner replays your cadence, stride, vertical oscillation (the hip-wave height), vertical ratio, ground-contact time and left/right balance. A plain-language summary says what is good and what to work on, and 120-day trends show each metric against Garmin's colour bands.

Running form

Running form trends

Every lap checked against your HR cap

Workout laps vs HR cap

More screens

Recovery Training plan
Recovery Plan
Doctor report First-run setup
Doctor report Setup

Screenshots use a demo copy of the developer's data with names, places and lab results removed.

ที่มา

ผมเป็นคนพัฒนาแอปนี้เอง และผมมีภาวะหัวใจห้องบนสั่นพลิ้ว (AF) ผมอยากกลับมาออกกำลังกาย แต่โปรแกรมวิ่งที่มีอยู่ทั่วไปออกแบบมาสำหรับนักวิ่งทั่วไป ไม่ได้คิดถึงคนที่มีโรคประจำตัว ทั้งเพดานอัตราการเต้นหัวใจ การดูอาการหลังซ้อม และความเสี่ยงที่ต้องระวัง

ผมเลยดึงข้อมูลของตัวเองออกมาจาก Garmin และ Apple Health เพื่อนำมาวิเคราะห์ แล้วตั้งโปรแกรมวิ่งโดยให้ AI ช่วยประเมินจากความเสี่ยงต่าง ๆ เช่น ค่า HR ระหว่างวิ่ง, HRV, การนอน, ความพร้อมของร่างกาย และผล ECG ก่อนตัดสินใจว่าวันนี้ควรซ้อมแค่ไหน

สิ่งที่สำคัญที่สุดคือ ตารางวิ่งและผลการซ้อมทั้งหมดส่งออกเป็นรายงานให้คุณหมอช่วยประเมินความเสี่ยงได้ การเล่าให้หมอฟังด้วยปากเปล่าว่า "สัปดาห์นี้วิ่งไปเท่าไหร่" ไม่ละเอียดพอ เพราะมีค่าอีกหลายสิบค่าที่เราเองก็ไม่รู้ว่ามี เช่น HR เฉลี่ยและ HR สูงสุดของแต่ละครั้ง, ผล ECG ที่วัดได้, AF burden หรือจังหวะที่ HR พุ่งเกินเพดานระหว่างซ้อม

ผมหวังว่าวันหนึ่งคนที่มีโรคประจำตัวจะกลับมาออกกำลังกายได้อย่างปลอดภัย เหมือนที่ผมทำ

Why this exists

I built Pulse Run for myself. I have atrial fibrillation and wanted to exercise again, but running apps are designed for healthy runners: they don't account for a heart-rate ceiling, post-run checks, or the risks someone with a heart condition has to watch. So I exported my own data from Garmin and Apple Health, analysed it, and set up a run-walk plan with an AI coach that weighs those risks (in-run HR, HRV, sleep, readiness, ECG results) before deciding how hard to train.

Most importantly, the plan and every session it produced can be exported as a report for your doctor. Telling your cardiologist "I ran about this much" is not enough: there are dozens of values you don't even know you have, such as average and peak HR per session, ECG classifications, AF burden, and HR spikes above your stop alert during exercise. I hope people with chronic conditions can get back to exercising safely, the way I did.

ภาษาไทย

  • Pulse Run เป็นแอป macOS สำหรับซ้อมวิ่งแบบคุมอัตราการเต้นหัวใจ ออกแบบมาสำหรับผู้ที่มีภาวะหัวใจห้องบนสั่นพลิ้ว (AF)
  • ดึงข้อมูลจาก Garmin Connect อัตโนมัติ (ตอนเปิดแอปและทุก 2 ชั่วโมง) แสดง Readiness, HRV, การนอน และ Body Battery
  • มีแผนซ้อม AF Base และส่ง workouts เข้าปฏิทิน Garmin ได้ (ต้องล็อกอินด้วยอีเมล + รหัสผ่าน เพราะ Personal API key อ่านได้อย่างเดียว)
  • เลือกกีฬาหลักเป็นวิ่งหรือปั่นได้ (ตอนตั้งค่าครั้งแรก หรือ ตั้งค่า → กีฬา) แผนปั่นต้องมีโซน HR สำหรับการปั่นในโปรไฟล์ก่อน การปั่นยังเป็นรุ่นทดลอง จนกว่าจะได้ทดสอบกับข้อมูลการปั่นจริงจาก Garmin และ Garmin Edge ไม่มีเซนเซอร์ HR ในตัว ต้องใส่สายคาดอกหรือนาฬิกาที่ส่งค่า HR
  • สร้างรายงานสำหรับแพทย์ (พิมพ์หรือบันทึกเป็น PDF) และมี AI โค้ชแบบไม่บังคับ ใช้ OpenRouter key ของคุณเอง ที่หน้า AI โค้ช แชทและสรุปรายสัปดาห์ถูกเก็บใน pulse.db ในเครื่องนี้ (ส่งข้อความเก่าที่ปลอดภัยไปเป็นบริบทได้ไม่เกิน 6 ข้อความล่าสุด) ลบได้ที่หน้า AI โค้ช
  • นำเข้าข้อมูล Apple Health ด้วยมือได้ (ไฟล์ export.zip จากแอปสุขภาพบน iPhone) ที่ ตั้งค่า → นำเข้าข้อมูล ส่วนการซิงก์อัตโนมัติจาก iPhone ยังไม่เปิดให้ใช้
  • ข้อมูลทั้งหมดเก็บในเครื่องนี้เท่านั้น สลับภาษาไทย/อังกฤษได้ที่ ตั้งค่า → การแสดงผล
  • ไม่ใช่อุปกรณ์การแพทย์และไม่ใช่คำแนะนำทางการแพทย์ ปรึกษาแพทย์โรคหัวใจของคุณก่อนเริ่มหรือปรับการซ้อม
  • ติดตั้ง: ดาวน์โหลดจากหน้า Releases มีไฟล์สำหรับ Mac (ชิป Apple Silicon และ Intel), Windows และ Linux แอปยังไม่ผ่านการรับรอง: บน Mac ครั้งแรกให้กด Done แล้วไปที่ System Settings → Privacy & Security → Open Anyway ส่วนบน Windows ให้กด More info → Run anyway ตัว Windows และ Linux เป็นรุ่นทดลอง ยังไม่ได้ทดสอบบนเครื่องจริง
  • อุปกรณ์ที่รองรับตอนนี้: Garmin และ Apple Watch เพราะเป็นอุปกรณ์ที่ผมใช้เอง ยินดีรองรับทุกยี่ห้อ แต่ต้องส่งอุปกรณ์มาให้ผมทดสอบ ติดต่อ [email protected]

ตั้งค่าบัญชีและคีย์

1. Garmin Connect (ตอนเปิดแอปครั้งแรก หรือ ตั้งค่า → Garmin → Connect)

  • แบบอีเมล + รหัสผ่าน (แนะนำ): ใช้บัญชีเดียวกับแอป Garmin Connect บนมือถือ ถ้าเปิดยืนยันตัวตน 2 ขั้น Garmin จะส่งรหัส 6 หลักมาทางอีเมล ให้กรอกในช่อง Verification code (MFA) แอปไม่เก็บรหัสผ่าน เก็บแค่ token ไว้ในเครื่อง แบบนี้จำเป็นถ้าจะส่ง workout เข้านาฬิกา
  • แบบ Personal API key (อ่านอย่างเดียว): ล็อกอิน Garmin Connect บนเว็บ แล้วเข้า connect.garmin.com/app/settings/personalApiToken สร้าง token แล้วคัดลอกมาวางในแอป ดึงได้แค่ข้อมูลรายวัน, HRV, การนอน, Body Battery ส่ง workout เข้านาฬิกาไม่ได้
  • ระวัง: ถ้าล็อกอินผิดหลายครั้ง Garmin จะล็อกบัญชีชั่วคราว

2. AI โค้ช ผ่าน OpenRouter (ไม่บังคับ)

  • แอปรับเฉพาะคีย์ของ OpenRouter เท่านั้น ใช้ subscription ของ ChatGPT, Claude, Gemini หรือคีย์ที่ได้จาก OpenAI, Anthropic, Google โดยตรงไม่ได้ OpenRouter เป็นตัวกลางที่ใช้คีย์เดียวเรียกโมเดลได้หลายเจ้า
  • ถ้าไม่มีคีย์ จะคุยกับ AI ไม่ได้ (ไม่มีรีวิวรายสัปดาห์, ถามโค้ช, ให้ AI ปรับแผน) แต่ส่วนอื่นของแอปใช้ได้ครบ
  • ⚠️ สิ่งที่ AI คิดหรือแนะนำ ไม่ใช่คำปรึกษาหรือคำแนะนำทางการแพทย์ AI ไม่ได้ตรวจร่างกายคุณ อาจผิดพลาดได้ ทุกการปรับแผนต้องผ่านการยืนยันของคุณเอง และควรให้แพทย์ที่ดูแลคุณเห็นชอบก่อน เราทำส่วนนี้ขึ้นมาเพราะหวังว่าโปรแกรมซ้อมที่ระบบจัดให้ จะอ้างอิงถึงข้อจำกัดทางกายภาพและโรคประจำตัวของผู้ออกกำลังกายแต่ละคน ไม่ใช่โปรแกรมรวมที่ทำมาสำหรับคนทั่วไป
  • วิธีตั้งค่า:
    1. สมัครที่ openrouter.ai แล้วเติมเครดิต (จ่ายตามการใช้งาน ทุกคำตอบในแอปบอกค่าใช้จ่ายโดยประมาณ)
    2. แนะนำให้เปิด Zero Data Retention ที่ openrouter.ai/settings/privacy
    3. สร้างคีย์ที่ openrouter.ai/keys (ตั้งวงเงินสูงสุดของคีย์ได้) คีย์จะขึ้นต้นด้วย sk-or-v1-
    4. ในแอป ไปที่ ตั้งค่า → AI coach (OpenRouter) วางคีย์ แล้วกด Check & save key
    5. อ่านว่าข้อมูลอะไรจะถูกส่งไป แล้วติ๊กยินยอม (ก่อนติ๊ก จะยังไม่มีข้อมูลถูกส่งออกไป)
    6. เลือกโมเดลได้ (ค่าเริ่มต้น anthropic/claude-haiku-4.5) แล้วกด Test connection

3. นำเข้าข้อมูล Apple Watch (ทำเองด้วยมือ)

อยู่ที่ ตั้งค่า → นำเข้าข้อมูล → Apple Health export ในแอปมีขั้นตอนเขียนไว้ให้ทำตามด้วย

  1. บน iPhone เปิดแอปสุขภาพ (Health) → แตะรูปโปรไฟล์มุมขวาบน → ส่งออกข้อมูลสุขภาพทั้งหมด → ส่งออก (อาจใช้เวลาหลายนาที)
  2. ส่งไฟล์ export.zip มาที่ Mac ผ่าน AirDrop หรือบันทึกลงแอปไฟล์ (iCloud Drive) แล้วเปิดจาก Mac
  3. ในแอป Pulse Run กด เลือกไฟล์… แล้วเลือก export.zip ไม่ต้องแตกไฟล์
  4. นำเข้าซ้ำได้ทุกเมื่อ ข้อมูลวันเดิมจะถูกอัปเดต ไม่ซ้ำซ้อน การซิงก์อัตโนมัติจาก iPhone จะตามมาภายหลัง

Medical disclaimer

Pulse Run is not a medical device and does not give medical advice. It shows data from consumer wearables, which are not diagnostic. Follow your cardiologist's instructions. The heart-rate targets and limits in the built-in plan and the default profile (for example Easy 115–128 bpm, a watch alert at 133 bpm, "stop, walk, take an ECG" above 150 bpm) are examples only. Set your own zones with your doctor in Settings → Profile before you rely on any of them.

AI output is not medical advice or a medical consultation. The AI coach has never examined you, can be wrong, and does not replace your doctor. Treat every review, answer and proposed plan change as a suggestion to discuss with your physician; nothing is applied until you confirm it. The reason the AI coach exists is so that the training plan takes each person's physical limits and medical conditions into account, instead of being one generic program for healthy runners.

Features

  • Garmin Connect sync: on launch and every 2 hours in the background, plus "Sync now" in the app and in the menu-bar tray. The first sync pulls 120 days of activities and 60 days of daily data; later syncs fetch the last few days.
  • Today: Training Readiness, recovery time, Body Battery, resting HR, HRV, last sleep, today's planned session, this week's planned runs, an optional AI weekly review, the latest workout with laps checked against your HR cap and time in HR zones, running form from Garmin running dynamics (with a 3D view), HR at the same pace over time, daily trends, weekly WHO exercise minutes, weekly totals and plan adherence.
  • Recovery: resting HR, HRV, sleep score, sleep stages, Training Readiness and Body Battery over 30 or 90 days.
  • Plan: the AF Base training plan (run/walk intervals with HR kept in the Easy zone), with a workout library showing the exact steps and HR targets that go to the watch. One button uploads the workouts and schedules them on your Garmin Training Calendar.
  • Cycling (experimental): choose running or cycling as your primary Sport (onboarding or Settings → Sport). A Ride plan has the same 30-day structure with Ride Easy (30 → 55 min), Long Ride (45 → 90 min) and a 20-minute Ride Test, HR targets from your own ride HR zones; these durations are starting values a clinician still has to review. Garmin rides get the same lap check against the ride HR cap; Apple Health rides only count as exercise minutes and in the doctor report. Cycling stays experimental until real Garmin ride data has been tested.
  • Doctor report: a 30- or 90-day summary (exercise dose, sessions, rhythm, vitals, lab results, proposed adjustments, questions, space for clinician notes) to print or save as PDF.
  • AI coach (optional): weekly review, questions, and proposed plan changes through OpenRouter with your own API key, on its own page with saved chats and past reviews. The app works fully without it.
  • Menu-bar tray: today's readiness, "Sync now", "Open Pulse Run", "Quit". Closing the window keeps the app running in the menu bar.
  • Low-readiness notification: at most once a day, when today's Garmin Training Readiness is LOW or POOR.
  • Apple Health import (manual): import the export.zip from the iPhone Health app to add Apple Watch data such as ECG classifications, AF burden, walking HR, weight, SpO₂, sleep and workouts. Automatic sync from the iPhone is not released yet.
  • Lab results import: a JSON file of check-up results (Settings → Import data), shown in the doctor report.
  • Check-up report upload: a photo (JPEG, PNG; HEIC on macOS) or PDF of a check-up report is read on your computer (the PDF's text, or bundled Thai/English OCR for photos and scans). With the AI coach set up, only the results table (name, HN, VN, hospital, address, phone and birth date lines removed on the device; Show what will be sent to AI shows exactly that text) is sent to extract the values; without AI you type them into a form beside the text read locally. You confirm every value, and each one the AI is unsure of, before it is saved.
  • Thai and English UI, dark and light themes.

Install

Download the file for your system from the Releases page. None of the builds are code-signed yet.

System File Status
macOS, Apple Silicon (M1 and later) …_aarch64.dmg Tested daily by the developer
macOS, Intel …_x64.dmg Built by CI, not tested on hardware
Windows 10/11 (64-bit) …_x64-setup.exe or …_x64_en-US.msi Experimental: built by CI, not tested on hardware
Linux (64-bit) …_amd64.deb or ….x86_64.rpm Experimental: built by CI, not tested on hardware

macOS (11 or later)

  1. Open the DMG and drag Pulse Run to Applications.

  2. The app is not notarized by Apple yet, so the first launch shows "Apple could not verify 'Pulse Run.app' is free of malware…". Click Done (not Move to Trash), then:

    1. Open System Settings → Privacy & Security and scroll down to Security.
    2. Next to "Pulse Run" was blocked to protect your Mac, click Open Anyway (the button appears for about an hour after the blocked launch).
    3. Enter your Mac password, then click Open Anyway once more.

    macOS remembers the choice; later launches open normally. On macOS 15 (Sequoia) and newer, right-click → Open no longer skips this check.

    Or, in Terminal:

    xattr -dr com.apple.quarantine "/Applications/Pulse Run.app"

Windows (experimental)

Run the -setup.exe (or the .msi). Windows SmartScreen warns about an unknown publisher because the installer is unsigned: click More info → Run anyway. The app needs the Microsoft Edge WebView2 runtime, which Windows 10/11 normally already has; the installer adds it if missing.

Linux (experimental)

  • Debian/Ubuntu: sudo apt install ./Pulse*.deb
  • Fedora/openSUSE: sudo dnf install ./Pulse*.rpm

It needs Ubuntu 24.04 or newer (or another distribution with glibc 2.39+ and WebKitGTK 4.1). The tray icon needs an AppIndicator-capable panel; on GNOME install the AppIndicator extension.

On Windows and Linux, closing the window keeps the app running in the system tray, like on macOS. Please report what works and what doesn't on these systems by email (see Supported devices).

Getting started

On first launch a setup wizard runs in four steps: Connect Garmin → Profile → Training plan → First sync. You can switch the language (ไทย / English) at the top of the wizard; the choice also applies to the tray menu, notifications and AI replies. Everything can be changed later in Settings.

What you need

Account / key Where to get it Needed for Without it
Garmin Connect account (email + password) The account you use in the Garmin Connect app Syncing everything, sending workouts to the watch No Garmin data; plan can't go to the watch
Garmin Personal API key (optional alternative) connect.garmin.com/app/settings/personalApiToken Read-only daily data —
OpenRouter API key (optional) openrouter.ai/keys, paid with OpenRouter credits AI coach: weekly review, Ask, Adjust plan You cannot talk to the AI; the rest of the app works

Step 1: Connect Garmin

In the wizard (or later Settings → Garmin → Connect) choose one method.

A. Email + password (recommended). Required to send workouts to the watch, and for Training Readiness, activities, laps and running dynamics.

  1. Choose the Email + password tab.
  2. Enter your Garmin email and Password (the same login as the Garmin Connect app) and click Sign in.
  3. If your account has two-step verification, Garmin sends a 6-digit code by email (or use your authenticator app). Enter it under Verification code (MFA) and click Verify.
  4. The status shows Signed in with email. Your password is not stored; only a token is saved on this Mac (garmin_tokens.json, readable only by your user).

Garmin locks sign-in for a while after several failed attempts. Sign in once and let the app keep the token; if Garmin later asks you to sign in again, use Settings → Garmin → Reconnect.

B. Personal API key (read-only). For daily summaries, HRV, sleep and Body Battery only. It cannot read Training Readiness or activities and cannot send workouts.

  1. In a browser, sign in to Garmin Connect and open Settings → Personal API Token (the app has an Open Personal API Token page button).
  2. Create a token and copy it. Garmin sets its validity (30–365 days).
  3. In Pulse Run choose the Personal API key tab, paste it and click Save key.

You can use both: add the email sign-in later in Settings and the status shows API key + email sign-in. You can also skip this step and connect later.

Step 2: Profile

Name, date of birth, medical conditions, regular medications and your heart-rate zones (Easy lower and upper bound, talk-test break, watch alert, stop alert). These drive the plan, the watch alerts and the doctor report. The defaults are examples; set them with your doctor. Nothing here leaves your Mac unless you turn on the AI coach and allow it (see below).

Choose your primary Sport (running or cycling) at the top of this step. Cycling has its own HR zones: enter the four values with the test, its date and the medication you took at the time, or tick that your doctor confirmed the running values apply (they are copied). Without ride zones the app creates no Ride plan.

Step 3: Training plan

A preview of the 30-day AF Base plan, starting on the next Saturday. If you signed in with email you can Send to Garmin now, or later from the Plan page. With cycling as the primary Sport this is the Ride version of the plan.

Step 4: First sync

Pulls 120 days of activities and 60 days of daily data from Garmin. It can take a few minutes; you can open the app and let it continue in the background. After that the app syncs on launch and every 2 hours.

Step 5 (optional): Set up the AI coach with OpenRouter

The AI coach runs through OpenRouter, a service that gives one API key access to many AI models (Anthropic Claude, OpenAI, Google Gemini and others). Pulse Run only accepts an OpenRouter key. A ChatGPT, Claude or Gemini subscription, or a key from OpenAI, Anthropic or Google directly, does not work. Without an OpenRouter key the AI cards show Set up AI coach and you cannot chat with the AI; every other feature works.

Warning: what the AI says is not medical advice or a medical consultation. It may be wrong. Check every suggestion with your doctor before you change how you train. The goal is a plan that respects your own physical limits and conditions, not a generic plan for everyone.

  1. Create an account at openrouter.ai.
  2. Buy credits in your OpenRouter account (the coach is pay-per-use; each answer in the app shows an estimated cost).
  3. Recommended: turn on Zero Data Retention for your account at openrouter.ai/settings/privacy. The app also requests ZDR on every call.
  4. Create a key at openrouter.ai/keys. You can set a credit limit on the key to cap spending. Copy it (it starts with sk-or-v1-).
  5. In Pulse Run open Settings → AI coach (OpenRouter), paste the key into OpenRouter API key and click Check & save key. The app checks the key and shows Key works with the limit left.
  6. Read Before you enable: what gets sent to OpenRouter and tick Allow sending summary data to AI. Nothing is sent until you do. The AI coach page shows the same box when consent is missing. Consent is remembered per destination (OpenRouter or a custom host): switching provider and back does not ask again; a host you never allowed does.
  7. Optionally pick a Model (only models with a Zero Data Retention endpoint are listed, with their price per million tokens; the default is anthropic/claude-haiku-4.5) and click Test connection.

Remove key in the same section deletes the key from this Mac.

Using Pulse Run

The sidebar has six pages; ⌘1 to ⌘6 switch between them. The sync status is at the bottom of the sidebar.

Today

Readiness, today's mission from the plan, this week's runs and the details of your latest workout. Pick a workout to see its laps: run laps whose average HR is over your cap are marked yellow, and laps whose max HR is over the stop limit are marked red. The running-form card compares your form with your previous chest-strap run (GCT, VO, VR and L/R balance are accurate only with an HRM-Pro or HRM 600 strap). "HR at the same pace" shows whether you need fewer heartbeats for the same speed over time.

Recovery

Resting HR, HRV, sleep and Body Battery for the last 30 or 90 days, each with the average of the 7 days before. Lower resting HR and higher HRV mean better recovery; HRV swings a lot during AF. A Training Readiness below 50 means take it easy.

Plan

  • The current and upcoming weeks are on top; past weeks are collapsed under Past weeks (N).
  • The workout library at the bottom lists the steps each workout sends to the watch (the number after @ is the target HR).
  • Send N workouts to Garmin uploads the workouts and schedules them on your Garmin calendar. It reuses workouts that are unchanged, replaces ones that changed, and removes plan entries that are no longer in the plan (only workouts the app scheduled, never completed activities). Then sync your watch in Garmin Connect and open Training Calendar on the watch.
  • This needs an email sign-in. With only a Personal API key the button says Sign in to Garmin to send and opens Settings.
  • Ride workouts upload with Garmin's cycling sport type and land on the same calendar. Garmin Edge has no heart-rate sensor: wear a chest strap or a watch that broadcasts HR, or the Ride HR alerts won't work.
  • Changing the primary Sport in Settings asks whether to replace the remaining plan days with the new Sport's base plan; past days never change.

Doctor report

Choose 30 or 90 days, then click Print / Save PDF and choose "Save as PDF" in the macOS print dialog. The report covers exercise dose and sessions, rhythm (ECG classifications and AF burden, from an imported Apple Health export), vitals compared with the previous 90 days, imported lab results, findings, proposed plan adjustments for the clinician to approve, questions for the visit, and blank fields for clinician notes.

AI coach (optional)

Needs an OpenRouter key; see Step 5: Set up the AI coach.

The AI coach page (sidebar, between Plan and Doctor report) has two views:

  • Chat: your saved conversations on the left (New chat starts one; the trash icon deletes one) and the selected conversation on the right. Enter sends, Shift+Enter adds a line.
    • Ask: questions about training, recovery or running form. Questions about chest pain, fainting or palpitations at rest get a fixed safety message; questions about ECGs, medication, diagnosis or lab results are refused.
    • Adjust plan: the coach proposes changes; the app checks every proposal (HR cap, workouts from the library, dates within the next 28 days, at most 7 changes) before you can apply it. Proposals are never applied or sent to the watch automatically: you click Apply changes, and then Send to Garmin separately. A saved proposal keeps whether you applied or cancelled it.
  • Weekly reviews: Generate review (or Regenerate) and every review generated so far, newest first. Reopening a day's review with the same model costs nothing.

The Today page shows the latest review's highlights and Open AI coach.

Chats and reviews are saved in pulse.db on this computer and stay there when you remove the key. With each question, at most the last 6 messages of that conversation are sent as context, leaving out refused and safety-message turns. Delete AI history on the AI coach page deletes every chat and review.

The coach explains and suggests; every safety number (HR caps, readiness gating, plan values) comes from the app's own code. The AI's reviews, answers and proposals are not medical advice. Discuss them with your doctor before acting on them.

Apple Watch / Apple Health

Apple Watch data reaches Pulse Run through a manual import of the Health app's full export.

  1. On the iPhone, open the Health app, tap your profile picture, then Export All Health Data. This creates export.zip (it can take a while).
  2. Send export.zip to the Mac, for example with AirDrop or the Files app.
  3. In Pulse Run, open Settings → Import data → Apple Health export, click Choose file… and select export.zip (an export.xml from an unzipped export also works). The same steps are listed in the app next to the button.

Apple Health import in Settings

What is imported:

  • daily metrics: resting HR, HRV, walking HR, heart rate, HR recovery, VO2 max, weight, SpO₂, respiratory rate, steps, active energy, exercise minutes, wrist temperature, AF burden, walking steadiness and stand hours;
  • sleep nights and sleep stages;
  • workouts;
  • ECG recordings (date, classification and device) from the electrocardiograms/*.csv files in the export. Only the header of each file is read, not the waveform.

Re-importing is safe. Rows are keyed by day, workout start time and ECG recording time, so a newer export updates the existing rows instead of adding duplicates, and a stored sleep night is never replaced by a shorter one. Where Garmin and Apple overlap, the Today page and the doctor report drop an Apple workout that starts within 10 minutes of a Garmin workout, and the Today page uses Apple's sleep duration with Garmin's sleep score.

Coming soon: automatic sync from the iPhone (a companion app) has not been released yet. Until then, repeat the export and import whenever you want fresh Apple data.

Supported devices

Pulse Run focuses on Garmin watches (synced from Garmin Connect) and Apple Watch (via the Apple Health export), because those are the devices I use and can test every day. Cycling with a Garmin watch or Edge is experimental until real Garmin ride data has been tested; an Edge needs a chest strap or a watch broadcasting HR.

Other brands (Polar, Coros, Suunto, Huawei, Samsung, Fitbit, Wahoo and others) are welcome. To add one I need the device itself to develop and test against its real data, so please send me one. Contact: [email protected]

อุปกรณ์ที่รองรับตอนนี้คือ Garmin และ Apple Watch เพราะเป็นอุปกรณ์ที่ผมใช้เองทุกวัน ยินดีรองรับทุกยี่ห้อ แต่ต้องส่งอุปกรณ์มาให้ผมพัฒนาและทดสอบกับข้อมูลจริง ติดต่อได้ที่ [email protected]

Privacy and security

  • All data stays on your computer, in the app data folder:

    System Folder
    macOS ~/Library/Application Support/th.pulserun.desktop/
    Windows %APPDATA%\th.pulserun.desktop\
    Linux ~/.local/share/th.pulserun.desktop/

    It holds:

    File Contents
    pulse.db SQLite database: synced Garmin data, imported Apple Health data, profile, plan, lab results, settings, AI coach chats and weekly reviews
    garmin_tokens.json Garmin sign-in tokens and Personal API key (mode 0600 on macOS/Linux)
    openrouter_key OpenRouter API key, only if you set up the AI coach (mode 0600 on macOS/Linux)
  • Your Garmin password is never stored. Tokens and keys are never logged.

  • The app talks only to Garmin Connect (to sync and to send workouts) and, if you enable the AI coach, to OpenRouter. There is no analytics or telemetry.

  • What the AI coach sends (only after you allow it): computed readiness, recovery, resting HR, HRV and sleep for the last 7 days; a summary of your last 3 runs and weekly exercise minutes; your plan for the next 7 days and your HR zones; and the questions you type, with at most the last 6 messages of that conversation as context (refused and safety-message turns are never resent). It never sends your name, birth date, condition or medication names, lab results, ECG results, GPS location or activity names. The one exception is Check-up report upload: when you press Read the values with AI, the results table of that report (without its header) is sent once to extract the values. With Share general health context turned on (off by default), it also sends three yes/no flags: AF, beta blocker, anticoagulant. Every request asks OpenRouter for Zero Data Retention; you can also turn ZDR on for your account at openrouter.ai/settings/privacy.

  • Disconnect Garmin (Settings → Garmin) deletes the token file; synced data stays. Remove key (Settings → AI coach) deletes the OpenRouter key; saved AI chats and reviews stay until you press Delete AI history on the AI coach page.

Delete all data

  1. Quit Pulse Run from the tray menu (Quit); closing the window is not enough.

  2. Delete the app data folder for your system (see the table above), for example on macOS:

    rm -rf ~/Library/Application\ Support/th.pulserun.desktop
  3. Uninstall the app if you also want to remove it (macOS: drag Pulse Run from Applications to the Trash; Windows: Settings → Apps; Linux: your package manager).

Workouts already sent to Garmin stay in your Garmin account; delete them in Garmin Connect.

Build from source

Prerequisites:

  • macOS, Windows or Linux. Releases are built for all three by GitHub Actions (.github/workflows/release.yml) when a v* tag is pushed.
  • Linux (Ubuntu 24.04+): libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf (Debian/Ubuntu names).
  • Windows: Visual Studio Build Tools (C++), CMake, NASM and LLVM (BoringSSL is compiled for the Garmin sign-in).
  • Rust stable, 1.88 or newer (the workspace uses edition 2024 and let-chains): rustup.rs
  • Node.js and npm
  • Tauri CLI 2: cargo install tauri-cli --version "^2" --locked
git clone https://github.com/killernay/Pulse-Run.git
cd Pulse-Run

# UI dependencies
cd app && npm ci && cd ..

# Run in development (starts the Vite dev server on port 1420 via beforeDevCommand)
cd src-tauri && cargo tauri dev

# Release build: Pulse Run.app and the DMG (runs `npm run build` in app/ first)
cd src-tauri && cargo tauri build

The bundles are written to target/release/bundle/ (on macOS: macos/Pulse Run.app and dmg/).

Tests:

cargo test --workspace          # all Rust crates; Garmin and OpenRouter are faked with wiremock
cd app && npm test              # vitest: locale checks and UI logic

Other useful commands:

  • cd app && npm run build type-checks and builds the UI.
  • cd app && npm run dev runs the UI alone in a browser at http://localhost:1420. Outside Tauri, setup, sync and AI commands answer with mock data.
  • PULSE_IMPORT_TOKENS=/path/to/garmin_tokens.json cargo tauri dev copies an existing python-garminconnect token file into the app data dir when none is saved yet.
  • The Garmin and sync crates have read-only live tests; see crates/garmin/README.md and crates/sync/README.md.

Project layout

Path What it is
crates/garmin Garmin Connect sign-in (with MFA), token refresh, Personal API key, rate-limited API client, workout upload and scheduling
crates/store Local SQLite storage (bundled SQLite, migrations, typed queries)
crates/core Domain logic with no network calls: training plan and Garmin workout payloads, Today dashboard, doctor report, labs, Health data parsing (library name pulse_core)
crates/sync Garmin JSON to store rows, incremental and backfill sync, pushing the plan to the Garmin calendar
crates/ai Optional OpenRouter coach: context builder, safety guard, prompts, proposal validation, key file, lab-report value extraction
crates/labscan Reads check-up reports on the device: PDF text (PDFium), Thai PUA tone-mark repair, OpenThai OCR on ONNX Runtime, header stripping before AI
crates/assets Pinned, checksummed downloads of the bundled OCR models and native libraries, staged by src-tauri/build.rs
src-tauri Tauri 2 desktop app: commands, background sync scheduler, tray, notifications
app React + Vite UI (TypeScript), Thai and English locales in app/src/locales
docs/DESIGN.md Visual identity and language rules

Each crate has its own README with details.

Credits and licence

  • The Garmin Connect sign-in flow in crates/garmin is a Rust port of the behaviour of python-garminconnect (MIT License). See NOTICE for the full notice.
  • The Personal API key paths follow the documentation of gconnect (MIT License).
  • Garmin's sign-in API is private and can change without notice. Use the app for your own data.

Copyright © 2026 Chanon Ngernthongdee. All rights reserved (no open-source licence yet). Third-party notices, including the python-garminconnect copyright, are in NOTICE.

Pulse Run is not affiliated with or endorsed by Garmin or Apple. Garmin and Garmin Connect are trademarks of Garmin Ltd. Apple, Apple Watch and Apple Health are trademarks of Apple Inc.

About

Heart-rate-capped running for people with heart conditions (built by a runner with AF). Syncs Garmin & Apple Watch, sends HR-capped run/walk plans to your Garmin, AI coach, and a report for your doctor. macOS · Windows · Linux

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages