{"id":18780472,"url":"https://github.com/karan/afterlands","last_synced_at":"2025-04-10T23:42:02.277Z","repository":{"id":19071326,"uuid":"22298373","full_name":"karan/AfterLands","owner":"karan","description":"Crowdsourced hyperlocal music playlists, Outside Hacks 2014 Project.","archived":false,"fork":false,"pushed_at":"2014-07-27T20:28:41.000Z","size":1650,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T23:29:48.670Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/karan.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}},"created_at":"2014-07-26T23:07:18.000Z","updated_at":"2025-02-01T17:03:37.000Z","dependencies_parsed_at":"2022-09-02T07:12:27.686Z","dependency_job_id":null,"html_url":"https://github.com/karan/AfterLands","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2FAfterLands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2FAfterLands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2FAfterLands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karan%2FAfterLands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karan","download_url":"https://codeload.github.com/karan/AfterLands/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317731,"owners_count":21083527,"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":[],"created_at":"2024-11-07T20:26:30.906Z","updated_at":"2025-04-10T23:42:02.246Z","avatar_url":"https://github.com/karan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"AfterLands\n\n## API\n\n#### Get all rooms near the passed location\n\n`GET /getallnear/:lat,:lon`\n\nResult: List of rooms.\n\n    {\n        \"response\": \"ok\",\n        \"rooms\": [\n            {\n                \"name\": \"Hello world\",\n                \"active\": true,\n                \"mood\": \"\",\n                \"_id\": \"53d455a8c027df9e7e1ea25c\",\n                \"songs\": [],\n                \"__v\": 0,\n                \"location\": {\n                    \"lat\": 37.79713,\n                    \"lon\": -122.40464\n                },\n                \"created_at\": \"2014-07-27T01:28:08.828Z\",\n                \"distance\": 92.28804970634626\n            }\n        ]\n    }\n\n#### Make a new room\n\n`POST /make`\n\nRequired params:\n\n`room_name`: name of the room\n`lat`, `lon`: location of the room\n\n#### Add a song to a room\n\n`POST /addsong`\n\nRequired params:\n\n`song`: Rdio song object\n`room_id`: Object ID of the room as in Mongo\n\n#### Search for songs\n\n`GET /search?query=XXXXXXX`\n\nReturns a list of Rdio songs\n\n#### Get details of a room\n\n`GET /room/:room_id`\n\nReturns the whole room object\n\n## Sockets Messages\n\n### Client to Server\n\n#### Join user to a room: `joinRoom`\n\nPass `room_id`.\n\nEmits `userChanged` with the new `room.num_people` to all users in this room\n\n#### Add a vote for a song in a room\n\nEmit `vote` with:\n\n- `song_key`: Each Rdio song has a `key`.\n- `room_id` and `vote` (+1 or -1)\n\nDoes not return anything. Emits a `voteChange` message to all client in this room. Also sends the `song_key` and `vote`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran%2Fafterlands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaran%2Fafterlands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaran%2Fafterlands/lists"}