{"id":16321530,"url":"https://github.com/simonfl3tcher/nuclear-codes","last_synced_at":"2025-09-07T23:33:35.059Z","repository":{"id":148307823,"uuid":"80365839","full_name":"simonfl3tcher/nuclear-codes","owner":"simonfl3tcher","description":"Electron and React facial rekognition app","archived":false,"fork":false,"pushed_at":"2017-02-03T19:31:10.000Z","size":51111,"stargazers_count":21,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T15:12:46.568Z","etag":null,"topics":["aws-polly","aws-rekognition","electron","js","react"],"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/simonfl3tcher.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}},"created_at":"2017-01-29T19:08:08.000Z","updated_at":"2023-05-31T13:57:18.000Z","dependencies_parsed_at":"2023-07-15T14:32:35.154Z","dependency_job_id":null,"html_url":"https://github.com/simonfl3tcher/nuclear-codes","commit_stats":null,"previous_names":["simonfl3tcher/nuclear-codes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonfl3tcher%2Fnuclear-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonfl3tcher%2Fnuclear-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonfl3tcher%2Fnuclear-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonfl3tcher%2Fnuclear-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonfl3tcher","download_url":"https://codeload.github.com/simonfl3tcher/nuclear-codes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245023052,"owners_count":20548650,"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":["aws-polly","aws-rekognition","electron","js","react"],"created_at":"2024-10-10T22:48:02.793Z","updated_at":"2025-03-22T21:32:19.619Z","avatar_url":"https://github.com/simonfl3tcher.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Nuclear Codes\n\n#### What is nuclear codes?\n\nNuclear Codes is a simple facial recognition mac app. Heavily inspired\nby Donald Trump taking office in 2017 and him gaining access to the nuclear codes.\nThe app takes a snapshot of the person in front of the screen,\ncompares it with an image that is allowed to access the nuclear codes, either lets them view the codes or not.\n\nThis was a simple task to develop further skills in React and a chance to try out the AWS AI services.\n\n#### What is the stack?\n\n- [ElectronJS](http://electron.atom.io/) - Used for the mac interface.\n- [React](https://facebook.github.io/react/) - My JS framework of choice.\n- [AWS Rekognition](https://aws.amazon.com/de/rekognition/) - used for comparing the given face with the \"presidents\" face.\n- [AWS Polly](https://aws.amazon.com/polly/) - used for the voice prompts.\n\n#### How can I try it out?\n\n1. Create an AWS account and make sure your user has S3, Rekognition and Polly read and write access. See [this](https://aws.amazon.com/account/) and [this](http://docs.aws.amazon.com/IAM/latest/UserGuide/access_permissions.html) if you are unsure how to get this set up.\n\n2. In the AWS console create an S3 bucket with the name of `rekognitionnn-{mysecret}`. Change `mysecret` to be unique to your account.\n\n3. Upload your \"president\" image. Make sure you change the `president.jpg` file in the repo to be a clear picture of your face.\nThen from the root directory, run:\n  ```\n    s3 cp ./president.jpg s3://{your_bucket_name}/nuclear-codes/president.jpg\n  ```\n  (Make sure your CLI is using the details for the account you are using for this application. I use [Named Profiles](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-multiple-profiles) to do this.)\n\n4. Copy the `aws_config.json.example` into `aws_config.json` and update the details to be the security credential of the user you are using in the `aws_config.json` file.\n\n```\naws cp aws_config.json.example aws_config.json\n```\n\n5. The bucket name is kept as a constant in our `AWSUtil` module. So go over there and make sure you update [this](https://github.com/simonfl3tcher/nuclear-codes/blob/master/src/utils/awsUtil.js#L8) line with the bucket name you created in point two.\n\n6. That should be everything, lets install the dependencies and spin up the app.\n```\nnpm install \u0026\u0026 npm build \u0026\u0026 npm run app\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonfl3tcher%2Fnuclear-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonfl3tcher%2Fnuclear-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonfl3tcher%2Fnuclear-codes/lists"}