Skip to content

haseebno1/HabitSeed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

49 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

🌱 HabitSeed

HabitSeed Logo

Build better habits, one seed at a time

Build and Test GitHub release (latest by tag) Download APK License: MIT GitHub issues

HabitSeed is a beautiful, intuitive habit tracking app designed to help you build consistent routinesβ€”one day at a time. With a focus on simplicity and meaningful visual feedback, HabitSeed helps you cultivate positive habits that grow with consistency.

✨ Features

  • πŸ“ Create and track daily, weekly, and monthly habits with custom templates
  • πŸ”„ Track streaks and visualize your consistency with beautiful growth-themed UI
  • πŸŒ“ Dark/light theme to match your preferences
  • πŸ’Ύ Private and secure - all data stays on your device
  • πŸ“± Works on web and Android
  • 🚫 No account required - get started in seconds
  • 🎯 Multiple tracking types: checkbox, quantity, and duration
  • πŸ“Š Statistics to monitor your habit consistency

πŸ–₯️ Screenshots

HabitSeed Screenshot

πŸš€ Getting Started

Prerequisites

  • Node.js (v20+)
  • npm or yarn
  • For Android builds:
    • Android Studio
    • JDK 11+
    • Android SDK

Installation

  1. Clone the repository:
git clone https://github.com/haseebno1/HabitSeed.git
cd HabitSeed
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev

Visit http://localhost:5173 in your browser to start using the app.

Building for Production

To build the web application:

npm run build

The built files will be in the dist directory and can be deployed to any static hosting service.

πŸ“± Mobile Development

Setting Up for Android

  1. Build the web app and set up Android platform:
npm run build
npx cap add android
npx cap sync android
  1. Open in Android Studio:
npx cap open android
  1. Run on a device or emulator through Android Studio

Automated Builds

HabitSeed uses GitHub Actions to automate both web and Android builds:

  • Every push to main and pull request triggers a build workflow
  • Web artifacts are built and stored as GitHub artifacts
  • Android APK is automatically built and available as an artifact
  • Download the latest build artifacts from the Actions tab in the GitHub repository

Live Development for Android

For faster development with live-reload:

npm run dev
npx cap run android

This will start a development server and open the app on your connected Android device with live reload enabled.

πŸ› οΈ Tech Stack

  • React 18 with TypeScript
  • Vite for fast builds and development
  • TailwindCSS with shadcn/ui components
  • Lucide for beautiful icons
  • IndexedDB for robust data storage
  • Capacitor for mobile platform compatibility

πŸ“‚ Project Structure

HabitSeed/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/       # UI components (HabitButton, HabitList, etc.)
β”‚   β”œβ”€β”€ hooks/            # Custom React hooks (useHabits, useSettings)
β”‚   β”œβ”€β”€ lib/              # Utilities and services (storage, haptics)
β”‚   β”œβ”€β”€ pages/            # App pages (Index, Journal, Settings)
β”‚   └── App.tsx           # Main component with routing
β”œβ”€β”€ public/               # Static assets
β”œβ”€β”€ android/              # Android platform code
β”œβ”€β”€ index.html            # Entry HTML file
β”œβ”€β”€ package.json          # Dependencies and scripts
└── vite.config.ts        # Vite configuration

πŸ’Ύ Data Privacy

HabitSeed stores all your data locally:

  • Uses IndexedDB for primary storage
  • Provides localStorage fallback for older browsers
  • Ensures your habit data remains private and secure
  • Enables data backup and restore via JSON export/import

🀝 Contributing

Contributions are welcome! Please check out our Contributing Guide for details on:

  • How to set up the development environment
  • The submission process for pull requests
  • Our code of conduct

πŸ“„ License

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

πŸ”’ Security

For information about our security practices and how to report security issues, please see our Security Policy.

πŸ‘ Acknowledgments

πŸ“¬ Contact & Support


About

🌱 HabitSeed is a simple and elegant habit tracking app that helps you build better habits with visual growth feedback and privacy-first design.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Contributors

Languages