ML Lab — 08
Habit Forge
Habit Forge Tracking & Google Sheets Sync
Interactive Habit Tracking Dashboard with Real-Time Firestore Sync & Tab-Separated Data Export.
Habit Forge is a fully featured, elegant, and lightweight behavior tracking system. It allows users to check off daily habits with multi-state logging (Completed, Partial, Skipped), dynamically calculate streaks, measure daily star ratings, and export formatted entries to paste directly into Google Sheets.
⭐ Star Metric Calculation
Evaluates daily productivity using fractional score values: Completed tasks earn +1.0 star, Partial logs earn +0.5 star, and Skipped items add 0.0 stars.
📈 Streak Progression Engine
Features a robust backward-looking streak algorithm that checks consecutive active days (starting from today or yesterday) and breaks on skipped or empty logs.
📊 Google Sheets Integration
Copies a single formatted, tab-separated row to the clipboard (Date \t Habit1 \t Habit2 \t Stars) for instant pasting into tracking spreadsheets.
🔥 Firebase Real-Time Sync
Uses Firestore reactive listeners (onSnapshot) to sync habits and daily progress securely across multiple client devices.