{"id":28497280,"url":"https://github.com/google-gemini/angular-rock-paper-scissors-sample","last_synced_at":"2026-06-29T19:31:24.895Z","repository":{"id":246595678,"uuid":"797403318","full_name":"google-gemini/angular-rock-paper-scissors-sample","owner":"google-gemini","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-04T18:08:46.000Z","size":10796,"stargazers_count":41,"open_issues_count":21,"forks_count":25,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-25T19:02:20.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/google-gemini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2024-05-07T19:01:18.000Z","updated_at":"2025-12-23T21:01:43.000Z","dependencies_parsed_at":"2024-06-28T23:49:35.379Z","dependency_job_id":null,"html_url":"https://github.com/google-gemini/angular-rock-paper-scissors-sample","commit_stats":null,"previous_names":["google-gemini/angular-rock-paper-scissors-sample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/google-gemini/angular-rock-paper-scissors-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-gemini%2Fangular-rock-paper-scissors-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-gemini%2Fangular-rock-paper-scissors-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-gemini%2Fangular-rock-paper-scissors-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-gemini%2Fangular-rock-paper-scissors-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google-gemini","download_url":"https://codeload.github.com/google-gemini/angular-rock-paper-scissors-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-gemini%2Fangular-rock-paper-scissors-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34941025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"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-06-08T13:05:43.692Z","updated_at":"2026-06-29T19:31:24.883Z","avatar_url":"https://github.com/google-gemini.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Rock Paper Scissors Sample\n\nDeveloper sample written in Angular demonstrating hand gesture recognition via TensorFlow.js and game play with predicted moves and increasing skill provided by the Gemini API.\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular1.cli) version 17.0.5 and uses [tensorflow.js](https://www.tensorflow.org/js), a library for machine learning in Javascript. Video from the webcam is passed to a pre1.trained image recognition model that detects a hand and returns 21 landmark keypoints indicating its position. We then use [fingerpose](https://www.npmjs.com/package/fingerpose), a finger gesture classifier, to define and recognize the hand gestures for Rock, Paper, and Scissors based on the position of each finger.\n\nFor more information on Angular, visit [angular.dev](https://angular.dev/).\n\nGemini's API is then used, with prompts that supply Gemini with various strategies to win or improve at the game. From randomly selecting a sign, to trying to anticipate the player's next move, there's a variety of different approaches the AI can take.\n\nCan you beat AI at the game?\n\nhttps://github.com/googlestaging/angular-rock-paper-scissors-sample/assets/15061394/a653dee3-a19e-4b21-be4a-be5a00336234\n\n## Open the Demo in IDX\n\n\u003ca href=\"https://idx.google.com/import?url=https://github.com/google-gemini/angular-rock-paper-scissors-sample/\"\u003e\n  \u003cimg height=\"32\" alt=\"Try in IDX\" src=\"https://cdn.idx.dev/btn/try_dark_32.svg\"\u003e\n\u003c/a\u003e\n\n1. Open this project using the button above.\n1. Open the IDX integration panel to get an Gemini API key.\n1. Update the `API_KEY=\"…\"` line in the `functions/.env` file\n\n![IDX Integration](./idx-gemini-key.png)\n\n## Get the demo running locally!\n\n1. Create a personal fork of the project on Github, then clone the fork on your local machine.\n1. Run `npm run i` to install the dependencies required to run the server.\n1. [IMPORTANT!!] This demo needs a Gemini API to run. Go to [Google AI Studio](https://aistudio.google.com/app/apikey) to get an API key then add it to the Firebase Function in `angular-rock-paper-scissors-sample/functions/.env`. This demo simulates how you might store and protect a private Gemini API key in a real world app.\n1. Run `ng run s` to run the server. Since we're using Firebase Functions, you'll need to run our functions and the app in a Firebase Emulator, this command does this automatically!\n1. Open a browser tab to [http://localhost:4200](http://localhost:4200). The app will automatically reload if you change any of the source files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-gemini%2Fangular-rock-paper-scissors-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle-gemini%2Fangular-rock-paper-scissors-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-gemini%2Fangular-rock-paper-scissors-sample/lists"}