{"id":31891987,"url":"https://github.com/rusticflare/random-hour","last_synced_at":"2025-10-13T08:23:22.571Z","repository":{"id":314343270,"uuid":"1055152168","full_name":"RusticFlare/random-hour","owner":"RusticFlare","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-11T22:10:34.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-12T00:10:47.916Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://random-hour.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RusticFlare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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},"funding":{"github":"RusticFlare","ko_fi":"jamesbaker"}},"created_at":"2025-09-11T21:06:17.000Z","updated_at":"2025-09-11T22:10:38.000Z","dependencies_parsed_at":"2025-09-12T00:10:55.499Z","dependency_job_id":"e474448e-d146-4bdd-a9f5-4a61052a6a01","html_url":"https://github.com/RusticFlare/random-hour","commit_stats":null,"previous_names":["rusticflare/random-hour"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/RusticFlare/random-hour","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RusticFlare%2Frandom-hour","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RusticFlare%2Frandom-hour/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RusticFlare%2Frandom-hour/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RusticFlare%2Frandom-hour/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RusticFlare","download_url":"https://codeload.github.com/RusticFlare/random-hour/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RusticFlare%2Frandom-hour/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014301,"owners_count":26085491,"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-10-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2025-10-13T08:23:19.720Z","updated_at":"2025-10-13T08:23:22.564Z","avatar_url":"https://github.com/RusticFlare.png","language":"TypeScript","funding_links":["https://github.com/sponsors/RusticFlare","https://ko-fi.com/jamesbaker"],"categories":[],"sub_categories":[],"readme":"# Random Hour Habits\n\nA habit tracking app built with Next.js and InstantDB that helps you manage your habits and get random suggestions for what to do next.\n\n## Features\n\n- **Add, Edit, Delete Habits**: Full CRUD operations for managing your habits\n- **\"What should I do?\" Button**: Prominently displays a random habit suggestion\n- **Magic Code Authentication**: Simple email-based authentication\n- **Real-time Updates**: Changes sync instantly across devices\n- **Modern UI**: Clean, responsive design with Tailwind CSS\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 18+ \n- An InstantDB account (free at [instantdb.com](https://instantdb.com))\n\n### Setup\n\n1. **Clone and install dependencies:**\n   ```bash\n   npm install\n   ```\n\n2. **Set up environment variables:**\n   Create a `.env.local` file in the root directory:\n   ```bash\n   NEXT_PUBLIC_INSTANT_APP_ID=your_app_id_here\n   ```\n\n3. **Get your InstantDB App ID:**\n   - Go to [instantdb.com](https://instantdb.com) and create a new app\n   - Copy the App ID from your app dashboard\n   - Replace `your_app_id_here` in `.env.local` with your actual App ID\n\n4. **Run the development server:**\n   ```bash\n   npm run dev\n   ```\n\n5. **Open your browser:**\n   Navigate to [http://localhost:3000](http://localhost:3000)\n\n## Usage\n\n1. **Sign up/Login**: Enter your email to receive a magic code\n2. **Add habits**: Use the input field to add new habits\n3. **Edit habits**: Click the \"Edit\" button on any habit to modify it\n4. **Delete habits**: Click the \"Delete\" button to remove habits\n5. **Get random suggestions**: Click the prominent \"What should I do?\" button to get a random habit suggestion\n\n## Tech Stack\n\n- **Frontend**: Next.js 15, React 19, TypeScript\n- **Database**: InstantDB (real-time database)\n- **Styling**: Tailwind CSS\n- **Authentication**: InstantDB Magic Code Auth\n\n## Project Structure\n\n```\n├── app/\n│   ├── layout.tsx          # App layout and metadata\n│   ├── page.tsx            # Main habit tracking UI\n│   └── globals.css         # Global styles\n├── lib/\n│   └── db.ts              # InstantDB client setup\n├── instant.schema.ts      # InstantDB schema definition\n└── package.json\n```\n\n## Deployment\n\nThe app can be deployed to any platform that supports Next.js:\n\n- **Vercel** (recommended): Connect your GitHub repo\n- **Netlify**: Deploy from Git\n- **Railway**: Deploy with one click\n\nMake sure to set the `NEXT_PUBLIC_INSTANT_APP_ID` environment variable in your deployment platform.\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusticflare%2Frandom-hour","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frusticflare%2Frandom-hour","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusticflare%2Frandom-hour/lists"}