Skip to content
ayush1920Public

About

Offline-first habit tracker PWA with cross-device synchronization powered by Supabase. Track habits anywhere, with automatic syncing when connectivity is restored.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

HabitNook Logo

HabitNook

Premium offline-first habit tracker with cloud sync.

Vite React TailwindCSS Supabase PWA


🚀 Overview

HabitNook is a beautifully designed, local-first habit tracking application that helps you build and maintain habits with intention. It features a premium, dynamic interface, rich data visualization, offline-first capabilities as a Progressive Web App (PWA), and seamless background synchronization with Supabase.

✨ Key Features

  • 📱 Progressive Web App (PWA): Install HabitNook directly to your home screen on mobile and desktop. It works completely offline with smart asset caching, allowing you to view and log habits without an internet connection.
  • ⚡ Offline-First Architecture: Your data is immediately saved locally using IndexedDB (Dexie.js), providing zero-latency interactions. Cloud synchronization with Supabase happens quietly in the background when an internet connection is restored.
  • 🎨 Premium Aesthetics: Crafted with a modern dark-mode color palette, smooth gradients, glassmorphism, and micro-animations for an exceptional user experience.
  • 📊 Advanced Analytics: Gain deep insights into your progress with rich trend visualization, moving averages, and historical heatmaps.
  • 🎯 Flexible Tracking: Supports multiple habit frequencies (Daily, Weekly, Monthly) and different target types (Simple Completion or Numeric Targets).

🛠 Tech Stack

📦 Installation & Setup

Prerequisites

  • Node.js (v18 or higher recommended)
  • npm or pnpm

Getting Started

  1. Clone the repository:

    git clone <repository-url>
    cd habbit_tracker
  2. Install dependencies:

    npm install
  3. Configure Environment Variables: Rename .env.example to .env and add your Supabase credentials:

    VITE_SUPABASE_URL=your-supabase-url
    VITE_SUPABASE_ANON_KEY=your-supabase-anon-key
  4. Start the development server:

    npm run dev
  5. Build for production:

    npm run build

💡 Design Philosophy

HabitNook is built on the principle that habit tracking should feel rewarding and frictionless:

  • Visual Feedback: Immediate visual confirmation of actions through smooth animations and color state changes.
  • Data Clarity: Complex data is distilled into easy-to-read sparklines and trend indicators.
  • Frictionless Interaction: Logging a habit takes as few clicks as possible, with smart defaults based on the current date and frequency.

📄 License

This project is licensed under the MIT License.

About

Offline-first habit tracker PWA with cross-device synchronization powered by Supabase. Track habits anywhere, with automatic syncing when connectivity is restored.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages