{"id":29757840,"url":"https://github.com/jaynightmare/sleepsync","last_synced_at":"2025-07-26T18:21:06.785Z","repository":{"id":302168817,"uuid":"1003218132","full_name":"JayNightmare/SleepSync","owner":"JayNightmare","description":"An app which allows you to check what time you should go to bed and what time roughly you would wake up. A great to ensure you get to sleep on time","archived":false,"fork":false,"pushed_at":"2025-06-19T21:30:44.000Z","size":741,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-19T08:02:15.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/JayNightmare.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}},"created_at":"2025-06-16T20:06:07.000Z","updated_at":"2025-06-20T02:16:05.000Z","dependencies_parsed_at":"2025-06-30T23:54:09.551Z","dependency_job_id":"82413c9e-c259-45bb-acbe-b4b7fad4751a","html_url":"https://github.com/JayNightmare/SleepSync","commit_stats":null,"previous_names":["jaynightmare/sleepsync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JayNightmare/SleepSync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayNightmare%2FSleepSync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayNightmare%2FSleepSync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayNightmare%2FSleepSync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayNightmare%2FSleepSync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JayNightmare","download_url":"https://codeload.github.com/JayNightmare/SleepSync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayNightmare%2FSleepSync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267206614,"owners_count":24052765,"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-07-26T02:00:08.937Z","response_time":62,"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-07-26T18:21:03.418Z","updated_at":"2025-07-26T18:21:06.778Z","avatar_url":"https://github.com/JayNightmare.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💤 SleepSync\n\nA mobile application that helps users determine the optimal time to go to sleep based on a desired wake-up time, personalized sleep duration, and a wind-down buffer.\n\n## Features\n\n- **Wake-up Time Selection**: Choose your desired wake-up time with an intuitive time picker\n- **Sleep Duration Customization**: Select how much sleep you need (6-10 hours) via an interactive slider\n- **Wind-down Period**: Set a buffer time before sleep (15/30/45/60 minutes) to help you prepare for rest\n- **Dynamic Sleep Suggestions**: Get personalized bedtime recommendations based on your preferences\n- **Preference Saving**: Your settings are remembered between app sessions using AsyncStorage\n- **Multiple Screens**: Navigate between Home, Sleep Calculator, History, and Settings screens\n- **Theme Support**: Interface adapts to light/dark mode preferences\n\n## Technical Stack\n\n- **Framework**: React Native with TypeScript\n- **Target Platforms**: iOS and Android\n- **Navigation**: React Navigation with bottom tabs and stack navigator\n- **UI Components**:\n  - `@react-native-community/datetimepicker` – Wake time selection\n  - `@react-native-community/slider` – Sleep duration adjustment\n  - `react-native-vector-icons` – Interface icons\n- **Storage**: `@react-native-async-storage/async-storage` for persisting user preferences and sleep history\n\n## Project Structure\n\n- **src/components/**: Reusable UI components (TimePicker, WindDownSelector, ResultCard)\n- **src/screens/**: Main application screens (Home, SleepCalculator, History, Settings)\n- **src/utils/**: Utility functions for sleep calculations and data storage\n- **src/styles/**: Theme definitions and styling constants\n- **src/types/**: TypeScript type definitions\n- **src/navigation/**: Navigation configuration\n\n# Getting Started\n\n\u003e **Note**: Make sure you have completed the [Set Up Your Environment](https://reactnative.dev/docs/set-up-your-environment) guide before proceeding.\n\n## Step 1: Start Metro\n\nFirst, you will need to run **Metro**, the JavaScript build tool for React Native.\n\nTo start the Metro dev server, run the following command from the root of your React Native project:\n\n```sh\n# Using npm\nnpm start\n\n# OR using Yarn\nyarn start\n```\n\n## Step 2: Build and run your app\n\nWith Metro running, open a new terminal window/pane from the root of your React Native project, and use one of the following commands to build and run your Android or iOS app:\n\n### Android\n\n```sh\n# Using npm\nnpm run android\n\n# OR using Yarn\nyarn android\n```\n\n### iOS\n\nFor iOS, remember to install CocoaPods dependencies (this only needs to be run on first clone or after updating native deps).\n\nThe first time you create a new project, run the Ruby bundler to install CocoaPods itself:\n\n```sh\nbundle install\n```\n\nThen, and every time you update your native dependencies, run:\n\n```sh\nbundle exec pod install\n```\n\nFor more information, please visit [CocoaPods Getting Started guide](https://guides.cocoapods.org/using/getting-started.html).\n\n```sh\n# Using npm\nnpm run ios\n\n# OR using Yarn\nyarn ios\n```\n\nIf everything is set up correctly, you should see your new app running in the Android Emulator, iOS Simulator, or your connected device.\n\nThis is one way to run your app — you can also build it directly from Android Studio or Xcode.\n\n## Step 3: Modify your app\n\nNow that you have successfully run the app, let's make changes!\n\nOpen `App.tsx` in your text editor of choice and make some changes. When you save, your app will automatically update and reflect these changes — this is powered by [Fast Refresh](https://reactnative.dev/docs/fast-refresh).\n\nWhen you want to forcefully reload, for example to reset the state of your app, you can perform a full reload:\n\n- **Android**: Press the \u003ckbd\u003eR\u003c/kbd\u003e key twice or select **\"Reload\"** from the **Dev Menu**, accessed via \u003ckbd\u003eCtrl\u003c/kbd\u003e + \u003ckbd\u003eM\u003c/kbd\u003e (Windows/Linux) or \u003ckbd\u003eCmd ⌘\u003c/kbd\u003e + \u003ckbd\u003eM\u003c/kbd\u003e (macOS).\n- **iOS**: Press \u003ckbd\u003eR\u003c/kbd\u003e in iOS Simulator.\n\n## Congratulations! :tada:\n\nYou've successfully run and modified your React Native App. :partying_face:\n\n### Now what?\n\n- If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).\n- If you're curious to learn more about React Native, check out the [docs](https://reactnative.dev/docs/getting-started).\n\n# Troubleshooting\n\nIf you're having issues getting the above steps to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.\n\n# Learn More\n\nTo learn more about React Native, take a look at the following resources:\n\n- [React Native Website](https://reactnative.dev) - learn more about React Native.\n- [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.\n- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.\n- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.\n- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaynightmare%2Fsleepsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaynightmare%2Fsleepsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaynightmare%2Fsleepsync/lists"}