Watch your daily habits bloom into a vibrant digital garden โ powered by real-time AI insights that help you grow personally.
BloomTracker transforms habit tracking into a joyful, visual experience. Log your habits, see your virtual garden thrive with animated plants, flowers, and a fluttering butterfly as you build consistency. AI (powered by Groq's ultra-fast Llama 3.1) analyzes your habits and delivers personalized, motivational insights with a spring/garden theme.
Built for Code Spring 2026 hackathon with comprehensive features and improvements.
๐ Live Demo | โจ Features | ๐ ๏ธ Tech Stack | ๐ฆ Installation
- ๐ Daily Habit Logging: Add habits with dates and descriptions
- ๐ฏ Habit Categories: Organize habits by type (Health ๐ช, Learning ๐, Productivity โก, Mindfulness ๐ง, Social ๐ฅ, Creative ๐จ)
- โ๏ธ Edit Habits: Modify habit descriptions and categories anytime
- ๐๏ธ Delete Habits: Remove habits with confirmation dialogs
- ๐ Date Filtering: View habits from specific dates or all-time logs
- ๐พ Persistent Storage: All data saved locally with localStorage (cross-session)
- ๐ฑ Progressive Growth: Central plant stretches based on consistency
- ๐ฟ Plant Evolution: Leaves sprout at 20% progress, flowers bloom at 60%
- ๐ป Flora Generation: Additional flowers & plants appear at 30%, 45%, 65%
- ๐ฆ Butterfly Animation: Flutters around at 85%+ progress
- โ๏ธ Dynamic Sky: Sun bounces, clouds drift, gradient backgrounds
- ๐พ Wilt Mechanism: Garden fades/grayscales if you miss a day โ log today to revive!
- ๐ฅ Daily Streak Counter: Tracks consecutive days of logging
- ๐ Progress Bar: 15% per unique day (max 100%)
- ๐ Statistics Dashboard: Total habits, unique days, last 7 days, average per day, category breakdown
- ๐ค Real-Time Analysis: Groq's Llama 3.1-8B-Instant processes your habits
- ๐ฌ Personalized Coaching: Motivational, garden-themed insights
- ๐ฑ Contextual Feedback: AI considers all logged habits for better recommendations
- ๐ฅ Export Function: Download all habits as JSON backup
- ๐ Auto-Save: Real-time sync to localStorage
- ๐ก๏ธ Data Validation: Habit validation before saving
- ๐ฒ Installable: "Add to Home Screen" on mobile/desktop
- ๐ Offline Ready: Core functionality works offline (data stored locally)
- ๐จ Custom Icons: Beautiful SVG icons for all devices
- โ๏ธ Web App Manifest: Full PWA support with shortcuts
| Layer | Technology |
|---|---|
| Framework | Next.js 14 (App Router) + TypeScript |
| Styling | Tailwind CSS 4 + PostCSS |
| Animations | Framer Motion |
| AI | Groq SDK (Llama 3.1-8B-Instant) |
| Utilities | date-fns, date calculations |
| State | React Hooks + localStorage |
| Icons | SVG-based, optimized |
| Fonts | Inter (Google Fonts) |
| Deployment | Vercel |
- Node.js 18+
- npm or yarn
- Groq API key (free at console.groq.com)
git clone https://github.com/muturi643/bloomtracker.git
cd bloomtracker
npm installCreate .env.local in the root:
GROQ_API_KEY=gsk_your_free_api_key_herenpm run devnpm run build
npm run start- Navigate to
/dashboard - Write a habit (e.g., "Read 30 pages of a book")
- Select a category (e.g., ๐ Learning)
- Click "Plant ๐ฑ"
- Watch your central plant grow! ๐ฟ
- Log at least one habit every day to maintain your streak
- Miss a day? Your garden wilts ๐พ (visual feedback to motivate you)
- Log today to revive it instantly โจ
- Log multiple habits
- Click "Generate Insight โจ"
- Get personalized, garden-themed motivation from Groq's AI
- Edit (โ๏ธ): Change description or category anytime
- Delete (๐๏ธ): Remove habits with confirmation
- Filter by Date: Pick a date to see only that day's habits
- Export: Download all data as JSON backup
- Push to GitHub
- Connect repo to Vercel
- Add
GROQ_API_KEYenvironment variable - Deploy ๐
- Open in Chrome/Safari
- Tap menu โ "Add to Home Screen"
- Launch as native app
- Open in Chrome/Edge
- Click install icon in address bar
- Launch from applications
โ
Fixed Streak Calculation Bug - Corrected date logic
โ
Full CRUD Operations - Create, Read, Update, Delete habits
โ
Habit Categories - Organized with color-coded UI
โ
Statistics Dashboard - Track progress metrics
โ
Data Export - Download habits as JSON
โ
Better Error Handling - Improved API messages
โ
PWA Icons - SVG custom icons
โ
Enhanced Animations - Clouds, pulsing wilt indicator
interface DatedHabit {
id: string; // Unique identifier
text: string; // Habit description
date: string; // YYYY-MM-DD format
category?: HabitCategory; // health | learning | productivity | etc.
completed?: boolean; // Completion status
}- No offline AI: Insights require internet
- localStorage capacity: ~5-10MB (supports 1000+ habits)
- No cloud sync: Data is local-only
- No authentication: Single-device use
- ๐ User auth & cloud sync
- ๐ Advanced analytics
- ๐ฏ Habit templates
- ๐ฑ Mobile apps
- ๐ฎ Gamification
- ๐ Push notifications
Contributions welcome! Help with:
- UI/UX enhancements
- Feature additions
- Performance optimization
- Testing
MIT License
- Groq - Fast AI inference
- Vercel - Seamless deployment
- Next.js - Amazing framework
- Framer Motion - Smooth animations
- Tailwind CSS - Rapid UI development
Made with ๐ for habit enthusiasts
โญ Star on GitHub | ๐ Deploy Now
Let your habits bloom! ๐ธ