{"id":21942804,"url":"https://github.com/react-declarative/react-face-kyc","last_synced_at":"2026-03-02T15:46:55.198Z","repository":{"id":156633159,"uuid":"626639808","full_name":"react-declarative/react-face-kyc","owner":"react-declarative","description":"Quite useful react snippet for automatic photo capture with check of correct face position. It uses Haar-cascade in WASM (performant and can be trained instead of programmed)","archived":false,"fork":false,"pushed_at":"2024-05-30T10:29:57.000Z","size":21282,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-17T13:03:42.672Z","etag":null,"topics":["computer-vision","haar-cascade","kyc","liveness-detection","mui","opencv","react","reactive","rxjs","typescript","wasm"],"latest_commit_sha":null,"homepage":"https://github.com/react-declarative/react-declarative","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-declarative.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-04-11T21:52:26.000Z","updated_at":"2025-02-04T06:10:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"f95cec74-5911-4646-9fa1-ba4019702896","html_url":"https://github.com/react-declarative/react-face-kyc","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/react-declarative%2Freact-face-kyc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Freact-face-kyc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Freact-face-kyc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Freact-face-kyc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-declarative","download_url":"https://codeload.github.com/react-declarative/react-face-kyc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250301132,"owners_count":21408106,"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":["computer-vision","haar-cascade","kyc","liveness-detection","mui","opencv","react","reactive","rxjs","typescript","wasm"],"created_at":"2024-11-29T03:26:41.040Z","updated_at":"2026-03-02T15:46:50.151Z","avatar_url":"https://github.com/react-declarative.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-face-kyc\n\n\u003e Quite useful react snippet for automatic photo capture with check of correct face position (KYC document face liveness)\n\nIt uses [FaceWASM](https://github.com/oriolmapu/FaceWASM) - face detection implementation based on [Haar-cascades](https://docs.opencv.org/3.4/d2/d99/tutorial_js_face_detection.html). This method is performant and [can be trained](https://docs.opencv.org/4.x/dc/d88/tutorial_traincascade.html) instead of programmed\n\n![screenshot](./docs/screencast.gif)\n\n## Contribute\n\n\u003e [!IMPORTANT]\n\u003e Made by using [react-declarative](https://github.com/react-declarative/react-declarative) to solve your problems. **⭐Star** and **💻Fork** It on github will be appreciated\n\n## Usage\n\n```bash\nnpm install\nnpm start\n```\n\n## Code sample\n\n```tsx\nexport const verifyCompleteEmitter = Source.multicast(() =\u003e\n    Source\n        .join([\n            stateEmitter,\n            Source.fromInterval(1_000),\n        ])\n        .reduce((acm, [{ state: isValid }]) =\u003e {\n            if (isValid) {\n                return acm + 1;\n            }\n            return 0;\n        }, 0)\n        .tap((ticker) =\u003e {\n            if (ticker === 1) {\n                recorder.beginRecord();\n            }\n        })\n        .filter((ticker) =\u003e ticker === CC_SECONDS_TO_VERIFY)\n        .tap(() =\u003e {\n            recorder.endRecord();\n        })\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-declarative%2Freact-face-kyc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-declarative%2Freact-face-kyc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-declarative%2Freact-face-kyc/lists"}