Skip to content

muturi643/bloomtracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

alt text

BloomTracker: Habit Garden with AI ๐ŸŒฑ

Vercel Next.js Tailwind CSS Groq AI PWA

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


โœจ Features

Core Habit Tracking

  • ๐Ÿ“ 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)

Dynamic Garden Visualization

  • ๐ŸŒฑ 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!

Streak & Progress Tracking

  • ๐Ÿ”ฅ 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

AI-Powered Insights

  • ๐Ÿค– 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

Data Management

  • ๐Ÿ“ฅ Export Function: Download all habits as JSON backup
  • ๐Ÿ”„ Auto-Save: Real-time sync to localStorage
  • ๐Ÿ›ก๏ธ Data Validation: Habit validation before saving

Progressive Web App (PWA)

  • ๐Ÿ“ฒ 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

๐Ÿ› ๏ธ Tech Stack

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

๐Ÿ“ฆ Installation

Prerequisites

Step 1: Clone & Install

git clone https://github.com/muturi643/bloomtracker.git
cd bloomtracker
npm install

Step 2: Configure Environment

Create .env.local in the root:

GROQ_API_KEY=gsk_your_free_api_key_here

Step 3: Run Development Server

npm run dev

Step 4: Build for Production

npm run build
npm run start

๐ŸŽฎ How to Use

Day 1: Plant Your First Habit

  1. Navigate to /dashboard
  2. Write a habit (e.g., "Read 30 pages of a book")
  3. Select a category (e.g., ๐Ÿ“š Learning)
  4. Click "Plant ๐ŸŒฑ"
  5. Watch your central plant grow! ๐ŸŒฟ

Build Your Streak

  • 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 โœจ

Get AI Insights

  1. Log multiple habits
  2. Click "Generate Insight โœจ"
  3. Get personalized, garden-themed motivation from Groq's AI

Manage Habits

  • 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

๐Ÿš€ Deployment

Deploy to Vercel (Recommended)

  1. Push to GitHub
  2. Connect repo to Vercel
  3. Add GROQ_API_KEY environment variable
  4. Deploy ๐Ÿš€

๐Ÿ“ฑ PWA Installation

On Mobile

  1. Open in Chrome/Safari
  2. Tap menu โ†’ "Add to Home Screen"
  3. Launch as native app

On Desktop

  1. Open in Chrome/Edge
  2. Click install icon in address bar
  3. Launch from applications

๐Ÿ”ง Recent Improvements (v1.1.0)

โœ… 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


๐Ÿ“Š Data Structure

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
}

๐Ÿ› Known Limitations

  • 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

Future Improvements

  • ๐Ÿ”“ User auth & cloud sync
  • ๐Ÿ“Š Advanced analytics
  • ๐ŸŽฏ Habit templates
  • ๐Ÿ“ฑ Mobile apps
  • ๐ŸŽฎ Gamification
  • ๐Ÿ”” Push notifications

๐Ÿค Contributing

Contributions welcome! Help with:

  • UI/UX enhancements
  • Feature additions
  • Performance optimization
  • Testing

๐Ÿ“„ License

MIT License


๐Ÿ™ Thanks

  • 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! ๐ŸŒธ

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors