My Warfarin is a lightweight, self-hosted Progressive Web App (PWA) designed to help patients easily track their INR blood test results and manage their daily Warfarin dosages.
| Feature | Description |
|---|---|
| Smart Dashboard | Instant view of today's dose and a 12-point INR trend chart. |
| Visual Calendar | A monthly grid to log, edit, or delete dosages with "Today" highlighting. |
| Family Sharing | Share a unique code with family or carers so they can monitor your data in real-time. |
| PDF Reporting | Generate professional, print-ready INR history and visual monthly calendar reports. |
| Data Sovereignty | Secure backup and restore via JSON files. Your data stays yours. |
| Dark Mode | Context-aware Sun/Moon icons with a UI that's easy on the eyes (day or night). |
This project is built to be fast, private, and easy to deploy:
- Frontend: Vanilla JS, HTML5, CSS3 (Custom Properties/Variables).
- Charts: Chart.js for beautiful trend visualization.
- Reports: jsPDF & AutoTable.
- Backend: PHP 7.4+ (Lightweight API).
- Database: SQLite (No complex SQL setup required; just a single file).
- PWA: Service Workers and
manifest.jsonfor offline capabilities and "Install to Home Screen" support.
- Clone the Repo:
git clone https://github.com/yourusername/my-warfarin.git
-
Upload to Server: Upload all files to your PHP-enabled web server (e.g.,
public_html/inr/). -
Set Permissions:
- Ensure the folder is writable so the app can create
mywarfarin.sqlite. - Ensure
manifest.jsonandWarfarin.pngare publicly readable (Permission644).
- Login:
- Default Username:
admin - Default Password:
admin - Note: Change these immediately in the Settings/Admin panel!
To get the full "App" experience:
- Open the site in Chrome (Android) or Safari (iOS).
- Select "Add to Home Screen".
- The app will now launch without the browser address bar, providing a native look and feel, even when offline.
Distributed under the MIT License. See LICENSE for more information.