FaceScan

React 18 + Vite frontend, FastAPI backend

Real-time face attribute analysis and identity recognition app. Polls webcam frames from a React SPA, routes them through a FastAPI backend to DeepFace for age/gender/emotion analysis, and optionally matches faces against a JSON registry using face_recognition (dlib). dlib is optional — attribute analysis continues without recognition when absent.

Generated 4 Jun 2026 · 45 files · 11 components · 5 flows

File Architecture

The full source tree as a layered graph — every file with its role, imports, exports and reverse dependencies.

System Design

Runtime topology across the five zones — client, edge, application, data and external services.

Flow Graph

The five most significant application flows, step by step — startup, auth, write, read and error recovery.

Technology

ComponentTechnologyVersionSource of Detection
Frontend frameworkReact + ReactDOM^18.3.1frontend/package.json
Build tool / dev serverVite^6.0.5frontend/package.json, vite.config.ts
Language (frontend)TypeScript^5.7.2frontend/package.json
StylingTailwind CSS + tailwindcss-animate^3.4.17frontend/package.json, tailwind.config.js
UI primitivesRadix UI (dialog/progress/tooltip…)^1.1.xfrontend/package.json
Client stateZustand^5.0.2src/store/useFaceStore.ts
AnimationFramer Motion^11.15.0frontend/package.json
HTTP clientaxios^1.7.9src/lib/api.ts
Webcam capturereact-webcam^7.2.0src/components/WebcamFeed.tsx
i18ni18next + react-i18next^24.2.0 / ^15.4.0src/i18n/index.ts
Backend frameworkFastAPI>=0.110backend/requirements.txt, main.py
ASGI serverUvicorn[standard]>=0.29backend/requirements.txt
ValidationPydantic>=2.6backend/models/schemas.py
Attribute analysisDeepFace (+ tf-keras)>=0.0.92services/analyzer.py
Identity / landmarksface-recognition (dlib)>=1.3.0services/recognizer.py
Image I/OOpenCV-python, Pillow, NumPy>=4.9 / >=10.2 / >=1.26backend/requirements.txt
Deep-learning runtimePyTorch + torchvision>=2.2 / >=0.17backend/requirements.txt
Identity storeJSON file registrybackend/data/registered_faces.json