Web·learning
Face Validation API Prototype
Prototype Express API exploring server-side face detection with face-api.js / TensorFlow.js — auth and middleware are solid; the detection route is intentionally unfinished and documented as such.
Date2024-08
Reading TimeN/A
Statuslearning
StackNode.js, Express, TensorFlow.js+1
Why it exists
Can you validate “does this upload contain a face?” in Node without a browser canvas? The stack needs @tensorflow/tfjs-node, a Node canvas shim, and a maintained face-api fork. Windows DLL path quirks show up in postinstall.
What’s actually finished
- Auth logic (register/login/reset) with bcrypt + JWT is written, but routes are commented out in
server.js— nothing is live yet - Production-shaped middleware: helmet, hpp, cors, response envelope, winston logging, file upload
What’s not
- Face-detection endpoint sketched, not fully wired
JWT_SECRETcurrently falls back to a hardcoded literal when the env var is missing — should be a hard failure, not a silent default
This page is here because unfinished prototypes teach the stack boundaries. Prefer verified packages above for “proof of shipping.”