{"id":21935965,"url":"https://github.com/dyazincahya/angular-face-api","last_synced_at":"2026-04-11T15:31:46.318Z","repository":{"id":264136009,"uuid":"892472962","full_name":"dyazincahya/angular-face-api","owner":"dyazincahya","description":"\u003cAngular x Face-api.js\u003e | This is a sample code of Face-api.js in Angular, here am using Angular v17","archived":false,"fork":false,"pushed_at":"2024-11-26T00:54:06.000Z","size":25572,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-17T11:04:28.885Z","etag":null,"topics":["angular","example","example-project","face-api","face-api-js","face-detection","face-recognition","javascript","nodejs","sample-code","tensorflow","typescript"],"latest_commit_sha":null,"homepage":"https://angular-face-api.vercel.app","language":"TypeScript","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/dyazincahya.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-11-22T07:14:37.000Z","updated_at":"2024-11-26T00:54:10.000Z","dependencies_parsed_at":"2024-11-25T14:42:49.794Z","dependency_job_id":null,"html_url":"https://github.com/dyazincahya/angular-face-api","commit_stats":null,"previous_names":["dyazincahya-blog/angular-face-api","dyazincahya/angular-face-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dyazincahya/angular-face-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2Fangular-face-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2Fangular-face-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2Fangular-face-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2Fangular-face-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyazincahya","download_url":"https://codeload.github.com/dyazincahya/angular-face-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2Fangular-face-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31686131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["angular","example","example-project","face-api","face-api-js","face-detection","face-recognition","javascript","nodejs","sample-code","tensorflow","typescript"],"created_at":"2024-11-29T01:12:31.393Z","updated_at":"2026-04-11T15:31:46.298Z","avatar_url":"https://github.com/dyazincahya.png","language":"TypeScript","readme":"# Angular x Face-api.js\n\u003e This is a sample code of Face-api.js in Angular, here am using Angular v17.\n\n[Face-api.js](https://github.com/justadudewhohacks/face-api.js) is a JavaScript API for face detection and face recognition in the browser and [nodejs](https://github.com/nodejs/node) with [tensorflow.js](https://github.com/tensorflow/tfjs)\n\n## Screenshot Demo\n![screenshot demo](https://raw.githubusercontent.com/dyazincahya-blog/angular-face-api/refs/heads/main/screenshot-demo.png)\n\n## Online Demo\n[Demo by Vercel](https://angular-face-api.vercel.app)\n\n## Features of This Project\n- Smile Detection\n- Blink (Eyes) Detection\n- Mount Detection\n- Head Pose\n- Age and Gender\n\n## Build With\n- Angular v17.3.0\n- Face-api.js v0.22.2\n- More see [package.json](https://github.com/dyazincahya-blog/angular-face-api/blob/main/package.json)\n\n## How to run?\n- Clone this repo\n- ```yarn install``` or ```npm install```\n- Run ```yarn start``` or ```ng serve``` command for running this project\n- After that access in your browser ```http://localhost:4200/```\n\n## How to build?\n- Run ```yarn build``` or ```ng build --base-href ./ --configuration production``` command for build project\n\n## How to test build result?\n- Go to ```THE_PROJECT/dist/face-detection/browser```\n- Run ```npm install -g http-server``` for install ```http-server```\n- After that run ```npx http-server``` command for running build result file\n\n## More Info\n#### Method\nYou can call the [startVideo()](https://github.com/dyazincahya-blog/angular-face-api/blob/main/src/app/face-api/face-api.component.ts#L40) method to start scanning the face manually. and call the [stopVideo()](https://github.com/dyazincahya-blog/angular-face-api/blob/main/src/app/face-api/face-api.component.ts#L58) method to stop scanning manually.\n\n#### Models\nYou can see all models data [Here](https://github.com/dyazincahya-blog/angular-face-api/tree/main/src/assets/models)\n\n#### package.json\nPut this after ```devDependencies``` to remove warning messages when run or build a project.\n```json\n\"browser\": {\n  \"fs\": false,\n  \"os\": false,\n  \"path\": false\n}\n```\n\n#### angular.json\nPut this on ```architect \u003e build \u003e options``` to remove warning messages when run or build a project.\n```json\n\"allowedCommonJsDependencies\": [\n  \"fast-deep-equal\",\n  \"css.escape\",\n  \"path-intersection\",\n  \"selection-update\",\n  \"@tensorflow/tfjs-core\"\n],\n```\n\n## Author\n[Kang Cahya](https://www.kang-cahya.com)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyazincahya%2Fangular-face-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyazincahya%2Fangular-face-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyazincahya%2Fangular-face-api/lists"}