{"id":16253407,"url":"https://github.com/lindseyb/moon-api","last_synced_at":"2025-03-19T20:31:56.504Z","repository":{"id":179774227,"uuid":"664121500","full_name":"LindseyB/moon-api","owner":"LindseyB","description":"RESTful API for the Moon","archived":false,"fork":false,"pushed_at":"2025-03-10T22:33:19.000Z","size":74,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-10T23:28:57.280Z","etag":null,"topics":["api","api-rest","moon","ruby","sinatra"],"latest_commit_sha":null,"homepage":"https://moon-api.co","language":"Ruby","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/LindseyB.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}},"created_at":"2023-07-09T01:18:10.000Z","updated_at":"2025-03-10T22:33:17.000Z","dependencies_parsed_at":"2024-01-08T18:42:37.113Z","dependency_job_id":"4570a611-eb2b-4d97-826f-4fbfbdb96a7d","html_url":"https://github.com/LindseyB/moon-api","commit_stats":null,"previous_names":["lindseyb/moon-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LindseyB%2Fmoon-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LindseyB%2Fmoon-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LindseyB%2Fmoon-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LindseyB%2Fmoon-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LindseyB","download_url":"https://codeload.github.com/LindseyB/moon-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244501536,"owners_count":20462869,"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","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":["api","api-rest","moon","ruby","sinatra"],"created_at":"2024-10-10T15:17:16.925Z","updated_at":"2025-03-19T20:31:56.189Z","avatar_url":"https://github.com/LindseyB.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Moon API\n\n## Requests \n\n`GET /` [[run]](https://moon-api.co)\n\nReturns the current moonphase\n\n`GET /phases/[phase]` [[run]](https://moon-api.co/phases/new)\n\nPossible phases: `new`, `waxing_crescent`, `first_quarter`, `waxing_gibbous`, `full`, `waning_gibbous`, `last_quarter`, `waning_crescent`\n\nReturns the information for the specified phase\n\n`GET /date/[unix timestamp]` [[run]](https://moon-api.co/date/1689859150)\n\nReturns the phase for the given date\n\n## Phase data shape\n\n| field                | type             | description                                                                                 |\n|----------------------|------------------|---------------------------------------------------------------------------------------------|\n| phase                | string           | one of `new`, `waxing_crescent`, `first_quarter`, `waxing_gibbous`, `full`, `waning_gibbous`, `last_quarter`, `waning_crescent` |\n| days                 | integer          | number of days in this moon phase - always 0 for date and phase endpoints                   |\n| emoji                | emoji            | one of 🌑 🌒 🌓 🌔 🌕 🌖 🌗 🌘                                                                 |\n| association          | string           | magical association for this phase                                                          |\n\n`GET /phases` [[run]](https://moon-api.co/phases)\n\nReturns an array of all the possible phases of the moon and associated data. \n\n### Example payload\n\n```json\n{\n  \"phase\": \"waxing_crescent\",\n  \"days\": 2,\n  \"emoji\": \"🌒\",\n  \"association\": \"setting intentions\"\n}\n```\n\n\n## Testing\n\n  ```bash\n  bundle exec rake test\n  ```\n\n## Getting Started\n\n  ```bash\n  bundle install\n  bundle exec rackup\n  ```\n\n## Deploying\n\n  ```bash\n  gcloud config set project moon-api-392403  # set the correct project\n  gcloud app deploy                          # deploy the app\n  gcloud app logs tail -s default            # tail the logs to make sure things are gucci\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flindseyb%2Fmoon-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flindseyb%2Fmoon-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flindseyb%2Fmoon-api/lists"}