VitaLens: a live X-ray mirror in your browser

Point a laptop or phone camera at yourself and see your skeleton, organs, brain, muscles and blood vessels move with you in real time. Tap any part for an AI explanation, or show the camera a rash or a sore throat for careful, structured AI guidance.

Next.js 16React 19three.jsGLSL shadersMediaPipeWeb WorkersClaude APIUpstash Redis

Open VitaLens (opens in new tab) · Try the demo without a camera (opens in new tab)

Two tools in one app

X-ray mirrorAI health check
YouStand in front of the cameraShow the camera a rash, a red eye, a sore throat
You get7 anatomy layers drawn on your body, following you liveWhat the AI sees, possible causes, home care, OTC options and an urgency level
RunsEntirely on your device; video is never uploadedOne photo, only when you choose to send it

How the mirror works, frame by frame

  1. Track. MediaPipe finds 33 body points, 478 face points, 21 points per hand and a body outline. An adaptive schedule spends the time budget where it matters: the face while you face the camera, the hands while they’re raised.
  2. Smooth. A One-Euro filter keeps still poses steady and fast moves responsive.
  3. Solve the rig. Landmarks become 46 bone transforms. The jaw hinges at the real jaw joint, and at a laptop, where only your shoulders are visible, the pelvis is estimated from your posture.
  4. Draw. The GPU skins about 1,200 BodyParts3D parts onto the bones with custom X-ray shaders. The camera image inside your outline becomes an inverted X-ray film, and anatomy is clipped to your silhouette.
  5. Label. The most important visible structures get atlas-style callouts that never cover the controls.

The hard parts

A careful AI health check

The health check sends one photo, only on request, to Claude with a safety-focused system prompt, and gets back a schema-validated answer: what’s visible, possible causes with likelihood, home care, over-the-counter options (each with a caution) and when to see a doctor.

More than a demo

Posture and joint-angle readings (measured on the device, with no AI cost), a narrated anatomy tour and quiz in 9 languages, photo and 8-second clip sharing, a back-camera mode for X-raying someone else, on-device history to compare a rash over days, and a PDF report to share with a doctor.

Privacy and security

The camera feed never leaves the device. The API accepts same-origin JSON only, checks size and JPEG format, allowlists anatomy questions, and the app ships a Content Security Policy, HSTS and anti-framing headers.

Get in touch Open VitaLens (opens in new tab)