Skip to content

maliha63/HabitFlow

Repository files navigation

HabitFlow 🌱

A smart web app / PWA that helps you track habits, maintain streaks, and build a consistent daily routine

Mobile Mockup Mobile Mockup Left


Table of Contents


Demo

Live version: HabitFlow


Features

  • Daily Habit Tracking: Add, complete, edit and remove habits
  • Streak System: Auto-calculated streaks based on daily activity
  • Progress Charts: Visual graphs using Recharts
  • Dark Mode: Smooth theme switching with persistence
  • PWA Ready: Installable app with manifest + service worker
  • Local Storage: Saves habits and streaks automatically
  • Responsive UI: Works perfectly on mobile and desktop
  • Favicon: Clean app icon for browser and PWA

Tech Stack

  • Vite — Modern build tool
  • React / TypeScript — User interface
  • Recharts — Progress visualization
  • Tailwind CSS — Styling
  • Lucide Icons — Icons
  • Vercel — Deployment

Project Structure

├── index.html               # Main HTML file
├── package.json             # Dependencies and scripts
├── vite.config.ts           # Vite configuration
├── public/
│   ├── manifest.json        # PWA manifest
│   ├── sw.js                # Service worker
│   └── icon.svg             # App icon / favicon
├── src/
│   ├── main.tsx             # Entry point
│   ├── App.tsx              # Main App component
│   ├── index.css            # Global styles
│   ├── components/          # Reusable components
│   ├── screens/             # Screens (Today, Stats, etc.)
│   ├── context/             # Habit context provider
│   └── utils/               # Helper functions
└── .env.local               # Environment variables (if needed)

Installation

  1. Clone the repository
git clone https://github.com/maliha63/habitflow.git
cd habitflow
  1. Install dependencies
npm install
  1. Run development server
npm run dev
  1. Build for production
npm run build

Usage

  1. Open the app in your browser (http://localhost:5173)
  2. Add your daily habits
  3. Mark habits as done
  4. Track streaks and view charts
  5. Switch themes when needed
  6. Install as a PWA if desired

Scripts

  • npm run dev — Start development server
  • npm run build — Build production-ready app
  • npm run preview — Preview production build

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Make changes and test locally
  4. Commit (git commit -m "Add feature")
  5. Push (git push origin feature/my-feature)
  6. Open a Pull Request

Tips:

  • Follow existing code style
  • Test changes before submitting
  • Document new features / changes in the README

License

This project is licensed under the MIT License.


Contact


Built with ❤️ using Vite, React, and TypeScript

About

HabitFlow helps you build better routines with simple daily tracking. It keeps your habits organized, visual, and easy to follow. The app motivates consistent progress so you stay on track every day.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors