An enterprise-grade, offline-first facial recognition and active liveness verification gateway. This system coordinates biometric attendance tracking on low-bandwidth edge devices in remote zero-network zones, complete with a dynamic local database fallback and a secure AWS sync-and-purge cycle.
-
Dual-Core Database Engine (MongoDB & LocalDB)
- Local Backend Database: Powered by Express & Mongoose, storing biometric registers, logs, and synchronization checkpoints in a local MongoDB service (
mongodb://localhost:27017/faceid). - Browser LocalStorage Fallback: Dynamically toggles to client-side localStorage if the server goes offline, allowing 100% functionality with zero network connectivity.
- Local Backend Database: Powered by Express & Mongoose, storing biometric registers, logs, and synchronization checkpoints in a local MongoDB service (
-
Ultra-Lightweight Edge AI Stack (< 8.0 MB Footprint)
- Active Landmarking & Mesh: Utilizes a lightweight landmark extraction mesh (3.0 MB) mapping 468 facial points to track movements in real-time.
- Identity Embedding Matcher: Employs a quantized MobileFaceNet engine (4.5 MB) generating 128-dimensional facial vectors. Matches registered templates locally via Cosine Similarity / L2 Euclidean Distance in ~42 ms.
- Interactive Liveness Spoof Defense: Implements challenge-response protocols detecting Eye Blink (Eye Aspect Ratio), Smiles (Mouth Aspect Ratio), and Head Yaw/Pitch rotations to block photo and video spoofing attempts.
-
Secure AWS Sync-and-Purge Protocol
- Retains base64 snapshots and credentials locally inside offline write-ahead logs.
- Restoring internet connectivity triggers batched data streams uploading to AWS S3 & DynamoDB.
- Upon receiving receipt confirmation, a secure local purge deletes cached base64 images to free disk space while retaining rolling metadata attendance reports.
- 📂
react-native-prototype/— Native Edge AI Prototype CodebaseApp.tsx— Coordinator dashboard dashboard containing biometrics verification triggers.components/LivenessScanner.tsx— Native camera viewport rendering scanning guides and step-by-step gesture HUD overlays.services/LivenessEngine.ts— EAR/MAR and head rotation angle mathematical state machine.services/FaceRecognitionEngine.ts— Offline TFLite wrapper cropping face frames and loading quantized templates.services/SyncPurgeManager.ts— SQLite storage engine handling write-ahead logs, net-state listeners, and AWS push/purge queues.
- 📄
index.html— Premium, fully responsive Web Dashboard simulator showing facial landmark scanning sweeps, stats trends, and network synchronization panels. - 📄
server.js— Local Express backend api exposing personnel database streams. - 📄
generate_assets.py— Python pptx automation script programmatically compiling professional deck slide presentations. - 📄
technical_documentation.md— Extensive technical documentation including mathematical equations and architecture blueprints.
- Node.js (v18+)
- MongoDB (running locally on port
27017) - Python (optional, for asset generation)
- Install dependencies:
npm install
- Start the Express backend API:
npm run dev
- Double-click
index.htmlto open the biometric dashboard or access it viahttp://localhost:5000.
To compile the premium PowerPoint presentation containing architecture benchmarks and equations:
python generate_assets.pyThis generates presentation.pptx directly in the project directory.
To share this running system with external reviewers or test on smartphones instantly:
- Keep the local backend running (
npm run dev). - Open a second terminal window and run:
ssh -R 80:localhost:5000 nokey@localhost.run
- Copy the generated
https://xxxx.lhr.lifelink printed on your terminal screen and share it. The dynamic API layer built insideindex.htmlautomatically adapts and routes requests correctly!
All biometric images are completely blurred using CSS filters in the dashboard for demographic privacy, and descriptions are stored as mathematical arrays rather than raw face images.