{"id":22206741,"url":"https://github.com/labib2003/aws-rekognition-nodejs","last_synced_at":"2026-04-09T23:35:29.858Z","repository":{"id":253598517,"uuid":"843802979","full_name":"Labib2003/aws-rekognition-nodejs","owner":"Labib2003","description":"A simple face recognition auth system based on AWS Rekognition","archived":false,"fork":false,"pushed_at":"2024-09-17T15:56:09.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T04:25:54.587Z","etag":null,"topics":["aws","awsrekognition","expressjs","face-recognition","nodejs","prisma-orm"],"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/Labib2003.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-17T13:19:15.000Z","updated_at":"2024-12-04T14:53:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2744390-fbf4-44e8-971f-fed0abf4d789","html_url":"https://github.com/Labib2003/aws-rekognition-nodejs","commit_stats":null,"previous_names":["labib2003/aws-rekognition-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Labib2003%2Faws-rekognition-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Labib2003%2Faws-rekognition-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Labib2003%2Faws-rekognition-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Labib2003%2Faws-rekognition-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Labib2003","download_url":"https://codeload.github.com/Labib2003/aws-rekognition-nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245394784,"owners_count":20608123,"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","awsrekognition","expressjs","face-recognition","nodejs","prisma-orm"],"created_at":"2024-12-02T18:17:46.759Z","updated_at":"2026-04-09T23:35:24.826Z","avatar_url":"https://github.com/Labib2003.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Rekognition Demo Project\n\nThis project demonstrates the use of AWS Rekognition to manage and verify faces in a collection. The core functionalities include adding a new face with an employee ID, checking if a face matches existing entries, and deleting a face from the collection. Prisma is used as the database for managing employee records and face IDs.\n\n## Features\n\n- **Save a New Face `POST /save`:** Add a new face to the AWS Rekognition collection, ensuring that no duplicate employee ID or face exists.\n- **Check Match `POST /checkmatch`:** Verify if a given face matches any face in the AWS Rekognition collection.\n- **Delete Face `DELETE /delete/:** Remove a face from AWS Rekognition using the associated employee ID.\n\n## Setup Instructions\n\n### Prerequisites\n\n1. **AWS Account**: Ensure you have an AWS account with Rekognition service enabled.\n2. **Environment Variables**: Set the following environment variables in a `.env` file:\n\n   - `AWS_ACCESS_KEY_ID`: Your AWS access key.\n   - `AWS_SECRET_ACCESS_KEY`: Your AWS secret key.\n   - `REKOGNITION_COLLECTION_ID`: The ID of your Rekognition face collection.\n\n3. **Database**: Set up Prisma with a database (e.g., PostgreSQL) to manage employee records.\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/Labib2003/aws-rekognition-nodejs.git\n   cd aws-rekognition-nodejs\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Set up the environment variables by creating a `.env` file and adding the necessary AWS and Prisma configurations.\n\n4. Run Prisma migrations to set up the database schema:\n\n   ```bash\n   npx prisma db push\n   ```\n\n5. Start the application:\n   ```bash\n   npm start\n   ```\n\n### Running the Application\n\nOnce the application is running, use an API client like Postman to test the following endpoints:\n\n- `POST /save`: Save a new face.\n- `POST /checkmatch`: Check if a face matches.\n- `DELETE /delete/:id`: Delete a face by employee ID.\n\n## Error Handling\n\n- **409 Conflict**: Returned when there are conflicts such as duplicate employee IDs or faces.\n- **404 Not Found**: Returned when resources (faces or employee IDs) are not found.\n- **500 Internal Server Error**: Returned for any unhandled errors.\n\n## Technologies Used\n\n- **Express**: Web framework for API routing.\n- **Prisma**: ORM for managing the database.\n- **AWS Rekognition**: For face detection and recognition.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabib2003%2Faws-rekognition-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabib2003%2Faws-rekognition-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabib2003%2Faws-rekognition-nodejs/lists"}