A Progressive Web App (PWA) for tracking fetal movements with adaptive timing. Perfect for expecting parents who want to monitor their baby's movements without needing developer accounts.
- Adaptive Timing: Starts with 20 minutes, extends to 40 minutes if less than 3 movement episodes, then to 60 minutes if still insufficient
- Movement Clustering: Movements within 3 minutes are grouped into episodes (individual movement periods)
- Episode Counting: The 3-movement requirement is based on individual episodes, not total movements
- Cross-Platform: Works on iOS Safari, WeChat browser, and Feishu browser
- PWA Support: Can be installed on mobile home screens
- Data Export: Export session data to CSV or JSON format
- Offline Support: Works without internet connection
- Local Storage: All data stored locally on your device
- Start Session: Begin a 20-minute tracking session
- Record Movements: Tap the "Record Movement" button each time you feel the baby move
- Movement Clustering: Movements within 3 minutes are automatically grouped into episodes
- Adaptive Extension:
- If less than 3 movement episodes in 20 minutes → extends to 40 minutes
- If still less than 3 movement episodes in 40 minutes → extends to 60 minutes
- Export Data: Download your tracking history as CSV or JSON files
- Go to GitHub and create a new repository
- Name it something like
fetal-movement-tracker
- Clone your repository locally
- Copy all the files from this project to your repository folder
- Commit and push to GitHub:
git add .
git commit -m "Initial commit"
git push origin main- Go to your repository on GitHub
- Click "Settings" tab
- Scroll down to "Pages" section
- Under "Source", select "Deploy from a branch"
- Choose "main" branch and "/ (root)" folder
- Click "Save"
Your app will be available at: https://yourusername.github.io/repository-name
- Open the app in Safari
- Tap the share button (square with arrow)
- Select "Add to Home Screen"
- The app will now appear on your home screen like a native app
- Open WeChat
- Go to "Discover" → "Mini Programs"
- Search for your app URL or scan a QR code
- The app will work within WeChat's browser
- Open Feishu
- Navigate to the app URL
- The app will work within Feishu's browser
fetal-movement-tracker/
├── index.html # Main HTML file
├── app.js # JavaScript logic
├── manifest.json # PWA manifest
├── sw.js # Service worker
└── README.md # This file
- Framework: Vanilla JavaScript (no dependencies)
- Storage: LocalStorage for session data
- PWA Features: Service worker, manifest, offline support
- Responsive Design: Works on all mobile devices
- Export Formats: CSV and JSON
All data is stored locally on your device. No data is sent to any servers or third parties.
- ✅ iOS Safari 11+
- ✅ Chrome 67+
- ✅ Firefox 67+
- ✅ WeChat Browser
- ✅ Feishu Browser
- ✅ Samsung Internet
- Make sure you're using Safari (not Chrome or other browsers)
- Try refreshing the page before adding to home screen
- Check that your browser supports LocalStorage
- Try clearing browser cache and refreshing
- Make sure you have some session data to export
- Try using a different browser
This is a simple, self-contained app designed for personal use. All data is stored locally on your device for privacy.