{"id":17273568,"url":"https://github.com/markmandel/happy-angry-surprised","last_synced_at":"2025-10-04T13:26:09.446Z","repository":{"id":43137473,"uuid":"63905960","full_name":"markmandel/happy-angry-surprised","owner":"markmandel","description":"A very silly, web based, Firebase and Cloud Vision API multiplayer game that works exactly the same as Rock, Paper, Scissor - except with facial emotions.","archived":false,"fork":false,"pushed_at":"2016-10-04T20:52:11.000Z","size":986,"stargazers_count":43,"open_issues_count":1,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T06:32:32.947Z","etag":null,"topics":["firebase","game-development","javascript","silly"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markmandel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-21T22:18:55.000Z","updated_at":"2023-11-20T09:43:17.000Z","dependencies_parsed_at":"2022-09-01T15:55:14.085Z","dependency_job_id":null,"html_url":"https://github.com/markmandel/happy-angry-surprised","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/markmandel%2Fhappy-angry-surprised","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmandel%2Fhappy-angry-surprised/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmandel%2Fhappy-angry-surprised/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmandel%2Fhappy-angry-surprised/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markmandel","download_url":"https://codeload.github.com/markmandel/happy-angry-surprised/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248848498,"owners_count":21171388,"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":["firebase","game-development","javascript","silly"],"created_at":"2024-10-15T08:51:38.573Z","updated_at":"2025-10-04T13:26:09.310Z","avatar_url":"https://github.com/markmandel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Multiplayer Happy, Angry, Surprised with Firebase\n=============================================\n\nHappy, Angry, Surprised is a very simple, silly, web based multiplayer game that works exactly the same as\nRock, Paper, Scissor - except with facial emotions.\n\nThe browser takes a photo of each of the player's faces, and depending on which emotion is displayed (determined through\n[Cloud Vision API](https://cloud.google.com/vision/)), a player will win, lose or draw.\n\n![Screenshot](screenshot.png)\n\nThe rules are as follows:\n\n- Angry beats Surprised\n- Happy beats Angry\n- Surprised beats Happy\n\n## Running the Demo\nYou will need a [Firebase](https://firebase.google.com) project, and a\n[Google Cloud Platform](https://cloud.google.com) project for the Cloud Vision API usage.\n\nThese should ideally be the same project, since it will make it much easier to run, but they don't have\nto be.\n\n### config.js\n\nThis is the file in which all configuration and authentication information goes for Firebase and Googler Cloud Platform.\nCurrently it is set to placeholder values that will need to be replaced.\n\n#### `firebase`\n\nThe Firebase configuration will need to be retrieved from the project overview page, by clicking the \"Add Firebase to your web app\" button.\n\n#### `visionAPI.key`\n\nThis is the API key that can be used for Vision API (which will need to be enabled on your project).\n\nIf your Firebase project has an enabled Google Cloud Platform project, you can use the same API Key as your Firebase\nconfiguration.\n\nIf not, you will need to go to the [Developer Console \u003e API Manager \u003e Credentials](https://console.cloud.google.com/apis/credentials)\nand create a new Browser API key.\n\n**NOTE: DO NOT DO THIS IN PRODUCTION. PUTTING YOUR API KEY IN CLIENT CODE IS NOT A GOOD IDEA**\n\n## Single Player / Test Mode\nIf you are testing on your own, append `?debug` to the URL, and it will make the picture taking countdown\non that particular game increase to 10 seconds.\n\nThis means you can have two browser instances running, one with the standard countdown of five seconds, and one\nwith ten. This make testing with one computer much easier.\n\n## Presentation Recordings\nYou can view the presentation that this demonstration was built around at the following URLs:\n\n- [Google I/O 2016](https://www.youtube.com/watch?v=8wF-mKMsynE)\n\n## Licence\nApache 2.0\n\nThis is not an official Google product.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmandel%2Fhappy-angry-surprised","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkmandel%2Fhappy-angry-surprised","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmandel%2Fhappy-angry-surprised/lists"}