How balla-hemanth-srinivas/recovery-tracker works
Recovery Tracker is a local-first habit recovery PWA. Users register or sign in, create habits with daily thresholds, record occurrences, and review calendar, streak, heatmap, and trend views; settings provide theme and data controls. Browser storage is the local source of truth, with optional GitHub Gist synchronization. The graph reflects sampled calls and README capabilities; some view dispatch and visualization wiring is not shown, so those links are omitted or marked unverified.
Main entry points: app.js App shell and routing · storage.js Browser data store · sync.js Gist sync engine · settings.js Settings and data tools
Components 15
App experience
- App shell and routing
js/app.js - Shared utilities
js/utils.js - Offline service worker
sw.js
Habit tracking
- Habit management
js/habits.js - Occurrence entry
js/entries.js - Monthly calendar
js/calendar.js
Progress insights
- Streak statistics
js/stats.js - Yearly heatmap
js/heatmap.js - Trend charts
js/charts.js
Account and data
- Authentication
js/auth.js - Settings and data tools
js/settings.js - Browser data store
js/storage.js - Gist sync engine
js/sync.js
Other components
- Tracker user
- GitHub Gist API
Connections 26
- Tracker user → App shell and routing: uses
README.md - App shell and routing → Gist sync engine: initializes
js/app.js - App shell and routing → Browser data store: observes changes
js/app.js - App shell and routing → Monthly calendar: renders calendar
js/app.js - App shell and routing → Occurrence entry: renders entries
js/app.js - App shell and routing → Streak statistics: shows insights
- App shell and routing → Habit management: opens habit tools
- App shell and routing → Settings and data tools: opens settings
- Authentication → Browser data store: stores account
js/auth.js - Authentication → Gist sync engine: restores Gist
js/auth.js - Authentication → Shared utilities: hashes password
js/auth.js - Habit management → Browser data store: updates habits
js/habits.js - Occurrence entry → Browser data store: updates entries
js/entries.js - Occurrence entry → App shell and routing: refreshes view
js/entries.js - Monthly calendar → Browser data store: reads occurrences
js/calendar.js - Streak statistics → Browser data store: reads occurrences
js/stats.js - Yearly heatmap → Browser data store: reads occurrences
js/heatmap.js - Yearly heatmap → Monthly calendar: uses color scale
js/heatmap.js - Trend charts → Browser data store: reads occurrences
js/charts.js - Settings and data tools → Browser data store: manages data
js/settings.js - Settings and data tools → App shell and routing: applies theme
js/settings.js - Settings and data tools → Authentication: logs out
js/settings.js - Browser data store → Gist sync engine: schedules sync
js/storage.js - Gist sync engine → Browser data store: reads and writes
js/sync.js - Gist sync engine → GitHub Gist API: syncs data
js/sync.js - Offline service worker → GitHub Gist API: bypasses cache
sw.js