Skip to content

Manojsuthar2000/HabitHero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

HabitHero ๐Ÿฆธโ€โ™‚๏ธ - AI-Powered Productivity App

iOS Swift UIKit License

An intelligent habit tracking iOS app that uses AI to suggest personalized habits and helps users build lasting positive routines.

โœจ Features

Core Functionality

  • โœ… Smart Habit Tracking - Track daily, weekly, or custom habits
  • ๐Ÿค– AI Habit Suggestions - Get personalized habit recommendations powered by OpenAI
  • ๐Ÿ“Š Beautiful Analytics - Visualize progress with custom charts and rings
  • ๐Ÿ”” Smart Notifications - Never miss a habit with intelligent reminders
  • ๐ŸŒ™ Dark Mode Support - Beautiful UI in both light and dark themes
  • ๐Ÿ’พ Offline Mode - All data stored locally with CoreData
  • ๐Ÿ”„ Background Sync - Automatic habit reset and streak updates

Technical Features

  • Clean MVVM + Coordinator architecture
  • Protocol-oriented programming
  • Dependency injection
  • Async/await networking
  • Custom CAShapeLayer animations
  • CoreData persistence
  • Background task scheduling

๐Ÿ— Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚            Coordinators                  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                          โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚   View   โ”‚โ”€โ”€โ”‚ViewModel โ”‚โ”€โ”€โ”‚Model โ”‚  โ”‚
โ”‚  โ”‚Controllerโ”‚  โ”‚          โ”‚  โ”‚      โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                      โ”‚                   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                  Services                โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚    AI    โ”‚  โ”‚ CoreData โ”‚  โ”‚Notif.โ”‚  โ”‚
โ”‚  โ”‚  Service โ”‚  โ”‚  Service โ”‚  โ”‚Serviceโ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿš€ Getting Started

Prerequisites

  • Xcode 14.0+
  • iOS 14.0+
  • OpenAI API Key

Installation

  1. Clone the repository
git clone https://github.com/yourusername/HabitHero.git
cd HabitHero
  1. Install dependencies (if using CocoaPods/SPM)
pod install  # or
swift package resolve
  1. Add your OpenAI API key
// In APIKeys.swift
struct APIKeys {
    static let openAIKey = "YOUR_API_KEY_HERE"
}
  1. Open HabitHero.xcworkspace and run

๐Ÿ“ฑ App Screens

Dashboard Add Habit Analytics Settings
Dashboard Add Analytics Settings

๐Ÿ›  Tech Stack

  • Language: Swift 5+
  • UI Framework: UIKit (Programmatic)
  • Architecture: MVVM + Coordinator
  • Database: CoreData
  • Networking: URLSession + async/await
  • AI Integration: OpenAI API
  • Notifications: UserNotifications Framework
  • Design Patterns:
    • Dependency Injection
    • Protocol-Oriented Programming
    • Repository Pattern
    • Observer Pattern

๐Ÿ“‚ Project Structure

HabitHero/
โ”œโ”€โ”€ App/                    # App lifecycle & coordinators
โ”œโ”€โ”€ Modules/                # Feature modules (MVVM)
โ”‚   โ”œโ”€โ”€ HabitList/
โ”‚   โ”œโ”€โ”€ AddHabit/
โ”‚   โ”œโ”€โ”€ Analytics/
โ”‚   โ””โ”€โ”€ Settings/
โ”œโ”€โ”€ Services/               # Business logic & APIs
โ”‚   โ”œโ”€โ”€ AIService/
โ”‚   โ”œโ”€โ”€ CoreDataService/
โ”‚   โ””โ”€โ”€ NotificationService/
โ”œโ”€โ”€ Models/                 # Data models
โ”œโ”€โ”€ Utilities/              # Extensions & helpers
โ””โ”€โ”€ Resources/              # Assets & configs

๐Ÿ”ฎ Future Improvements

  • iOS Widgets - Quick habit check from home screen
  • iCloud Sync - Sync habits across devices
  • Siri Shortcuts - Voice control for habits
  • Apple Watch App - Track habits from your wrist
  • Social Features - Share progress with friends
  • Gamification - Achievements and rewards
  • Advanced Analytics - ML-powered insights
  • Export Data - PDF reports and CSV export

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘ค Author

Your Name

๐Ÿ™ Acknowledgments

  • OpenAI for the GPT API
  • Apple Developer Documentation
  • The iOS Developer Community

Made with โค๏ธ and โ˜• by an iOS Developer

About

๐Ÿฆธโ€โ™‚๏ธ AI-powered iOS habit tracking app built with UIKit, MVVM, CoreData, and OpenAI integration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages