A comprehensive web-based habit tracker that helps users build and maintain positive habits through intuitive tracking, detailed analytics, and motivational features.
- Custom Habit Creation: Create habits with customizable names, descriptions, categories, and colors
- Frequency Settings: Support for daily, weekly, and monthly habit tracking
- Category Organization: Pre-defined categories (Health, Fitness, Productivity, Learning, Mindfulness, Social, Finance, Custom)
- Quantity Tracking: Track specific quantities (e.g., 8 glasses of water, 30 minutes of exercise)
- One-Click Completion: Quick and satisfying habit completion with visual feedback
- Skip Options: Ability to skip habits on specific days
- Notes & Reflections: Add notes to track progress and thoughts
- Past Day Logging: Log completions for previous days
- Progress Bar: Visual progress indicator showing daily completion percentage
- Interactive Heatmap Calendar: GitHub-style activity calendar showing habit consistency over the year
- Streak Tracking: Current and longest streak counters for each habit
- Habit Strength Score: Composite score (0-100) based on consistency, completion rate, and streaks
- Completion Rate Charts: Daily and weekly trend visualizations
- Top Performers: Dashboard showing your most successful habits
- Achievement System: Unlock badges for milestones
- 🌱 First Step - Create your first habit
- 🔥 Week Warrior - Maintain a 7-day streak
- 💪 Month Master - Maintain a 30-day streak
- ⭐ Perfect Week - Complete all habits for 7 days
- 💯 Century Club - Complete 100 habits
- 📚 Habit Collector - Create 10 habits
- Progress Tracking: Visual progress indicators for locked achievements
- Export Data: Download all your habits, completions, and achievements as JSON
- Import Data: Restore from previous backups
- Local Storage: All data stored locally in your browser (no server required)
Inspired by successful habit tracking apps like Streaks and Pattrn, Momentum Tracker features:
- Clean, minimalist interface
- Satisfying completion animations using Framer Motion
- Color-coded habits for easy visual identification
- Responsive design that works on all devices
- Smooth transitions and micro-interactions
- Frontend Framework: React 18 with TypeScript
- Build Tool: Vite
- State Management: React Hooks (useState, useEffect, useCallback)
- Data Visualization: Recharts
- Animations: Framer Motion
- Icons: Lucide React
- Date Handling: date-fns
- Storage: Browser LocalStorage
- Node.js 16+ and npm
- Clone the repository:
git clone <repository-url>
cd Test- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and navigate to
http://localhost:5173
npm run buildThe built files will be in the dist directory.
- Click the "Add Habit" button on the Today page
- Fill in the habit details:
- Name (required)
- Description (optional)
- Category (required)
- Frequency (daily/weekly/monthly)
- Target count (optional, for quantity-based habits)
- Color (auto-assigned based on category, customizable)
- Click "Create Habit"
- Navigate to the "Today" tab
- Click the green checkmark to complete a habit
- Click the X icon to skip a habit
- Click the message icon to add notes
- Track your progress with the completion percentage bar
- Navigate to the "Analytics" tab
- View your:
- Overall statistics (completions, streaks, habit strength)
- Year-long activity heatmap
- Daily and weekly trend charts
- Top performing habits
- Navigate to the "Achievements" tab
- View unlocked and locked achievements
- Track progress towards new achievements
- Navigate to the "Settings" tab
- Click "Export to JSON" to download your data
- Click "Import from JSON" to restore from a backup
The Habit Strength score (0-100) is a composite metric based on:
- Current Streak (40%): Longer streaks contribute more
- Completion Rate (30%): Overall percentage of completed days
- Consistency (20%): How long you've maintained the habit
- Total Completions (10%): Absolute number of completions
All data is stored locally in your browser using LocalStorage. This means:
- ✅ No server required
- ✅ Complete privacy (data never leaves your device)
- ✅ Works offline
⚠️ Data is tied to your browser (use Export/Import to transfer)⚠️ Clearing browser data will delete your habits
Potential features for future releases:
- Cloud sync and multi-device support
- Habit reminders and notifications
- Social features (share progress, accountability partners)
- Advanced statistics and insights
- Custom achievement creation
- Habit templates
- Dark mode
This project is open source and available under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.
This project was inspired by:
- Streaks: iOS habit tracker known for its clean interface
- Pattrn: Minimalist habit tracking with beautiful visualizations
- GitHub's contribution graph: For the heatmap calendar design
Built with ❤️ for building better habits, one day at a time.