{"id":32860012,"url":"https://github.com/nagaoo0/habitgrid","last_synced_at":"2025-11-08T18:02:51.483Z","repository":{"id":318746100,"uuid":"1075453401","full_name":"nagaoo0/HabitGrid","owner":"nagaoo0","description":"Grid based habbit tracker app","archived":false,"fork":false,"pushed_at":"2025-10-15T18:01:14.000Z","size":843,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-16T06:59:35.095Z","etag":null,"topics":["gridview","habbit-tracker","self-hosted","vitejs"],"latest_commit_sha":null,"homepage":"https://habits.mihajlociric.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nagaoo0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-13T14:18:37.000Z","updated_at":"2025-10-15T18:01:18.000Z","dependencies_parsed_at":"2025-10-17T02:43:19.197Z","dependency_job_id":null,"html_url":"https://github.com/nagaoo0/HabitGrid","commit_stats":null,"previous_names":["nagaoo0/habbitgrid","nagaoo0/habitgrid"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nagaoo0/HabitGrid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nagaoo0%2FHabitGrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nagaoo0%2FHabitGrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nagaoo0%2FHabitGrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nagaoo0%2FHabitGrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nagaoo0","download_url":"https://codeload.github.com/nagaoo0/HabitGrid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nagaoo0%2FHabitGrid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283393885,"owners_count":26828705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-08T02:00:06.281Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gridview","habbit-tracker","self-hosted","vitejs"],"created_at":"2025-11-08T18:02:19.406Z","updated_at":"2025-11-08T18:02:51.471Z","avatar_url":"https://github.com/nagaoo0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HabitGrid\n\n\nA modern, grid-based habit tracker app inspired by GitHub contribution graphs. Track your daily habits, visualize progress, and build streaks with a beautiful, responsive UI.\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/nagaoo0/HabitGrid\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/nagaoo0/HabitGrid?style=social\" alt=\"GitHub stars\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/nagaoo0/HabitGrid\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/github/license/nagaoo0/HabitGrid?color=blue\" alt=\"MIT License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://git.mihajlociric.com/count0/HabitGrid\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Mirror-git.mihajlociric.com-orange?logo=gitea\" alt=\"Gitea Mirror\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n**Source code:**\n\n- [GitHub Repository](https://github.com/nagaoo0/HabitGrid)\n- [Self-hosted Mirror (Gitea)](https://git.mihajlociric.com/count0/HabitGrid)\n\n\n\n## Features\n- GitHub-style habit grid (calendar view)\n- Streak tracking and personal bests\n- Custom habit colors\n- Dark mode and light mode\n- Data export/import (JSON backup)\n- Responsive design (desktop \u0026 mobile)\n- **Cross-device sync with Supabase (cloud save)**\n- **Offline-first:** works fully without login, syncs local habits to cloud on login\n- Built with React, Vite, Tailwind CSS, Radix UI, and Framer Motion\n\n---\n\n\n## How Sync Works\n\n- By default, all habits are stored locally and work offline.\n- When you log in (via the call to action button), your local habits are synced to Supabase and available on all devices.\n- Any changes (including categories, order, completions) are automatically pushed to the cloud when logged in.\n\n## Getting Started\n\n### Prerequisites\n- Node.js (v18 or newer recommended)\n- npm\n\n### Installation\n```powershell\n# Clone the repository\ngit clone https://github.com/nagaoo0/habitgrid.git\ncd habitgrid\n\n# Install dependencies\nnpm install\n```\n\n### Development\n```powershell\nnpm run dev\n```\nVisit [http://localhost:3000](http://localhost:3000) in your browser.\n\n### Build for Production\n```powershell\nnpm run build\n```\nThe production build will be in the `dist` folder.\n\n## Project Structure\n```\nsrc/\n  App.jsx\n  main.jsx\n  index.css\n  components/\n  lib/\n  pages/\n```\n\n\n## Cloud Sync Setup\n\nTo enable cross-device sync, you need a free [Supabase](https://supabase.com/) account:\n\n1. Create a Supabase project and set up a `habits` table with the following schema:\n   ```sql\n   create table habits (\n     id uuid primary key default gen_random_uuid(),\n     user_id uuid not null,\n     name text not null,\n     color text,\n     category text,\n     completions jsonb default '[]'::jsonb,\n     current_streak int default 0,\n     longest_streak int default 0,\n     sort_order int default 0,\n     created_at timestamptz default now(),\n     updated_at timestamptz default now()\n   );\n   ```\n2. Add your Supabase project URL and anon key to the app's environment/config.\n3. Deploy as usual (see below).\n\nYou can easily deploy your own instance of HabitGrid using [Cloudflare Pages](https://pages.cloudflare.com/):\n\n1. Fork or clone this repository to your GitHub account.\n2. Go to Cloudflare Pages and create a new project, connecting your GitHub repo.\n3. Use the **Vite** preset when prompted for the build configuration.\n4. Set the build command to:\n   ```sh\n   npm run build\n   ```\n   and the output directory to:\n   ```sh\n   dist\n   ```\n5. Deploy and enjoy your own habit tracker online!\n\n\n## Offline-First Guarantee\n\n- You can use HabitGrid without ever logging in everything works locally.\n- If you decide to log in later, all your local habits (including categories and order) will be synced to the cloud and available on all devices.\n\n---\n\n**Project Links:**\n\n- [Live Demo](https://myhabitgrid.com/)\n- [GitHub](https://github.com/nagaoo0/HabitGrid)\n- [Mirror (Gitea)](https://git.mihajlociric.com/count0/HabitGrid)\n\n---\n\n*Built with ❤️ by [Mihajlo Ciric](https://mihajlociric.com/)*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnagaoo0%2Fhabitgrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnagaoo0%2Fhabitgrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnagaoo0%2Fhabitgrid/lists"}