Inspiration

SPF sits on a shelf. The payoff is years away, so shoppers under-buy. Retailers need a product-page moment that makes daily sunscreen feel concrete, not clinical.

What it does

Future Face takes one selfie and runs three YouCam APIs in order:

  1. AI Aging Generator projects you to +20 or +30. Both arms share that same aging frame.
  2. AI Skin Simulation applies the "with daily SPF" pass at a cited dose: 0.24 × (your city's UV / Nambour UV) × a measured skin-tone factor (ITA). The 0.24 comes from Hughes et al., Annals of Internal Medicine 2013 (Nambour trial: 24% less skin aging with daily sunscreen).
  3. AI Skin Analysis reads wrinkles, texture and spots on both renders, so the gap shows up as numbers (higher = better-looking skin).

Then it sizes a three-step SPF routine from real Open Beauty Facts products (or a fictional catalogue for brand-safe demos) to today's UV from Open-Meteo.

A store embeds it with two lines of HTML (public/widget.js + a barcode div). There is a Sunday Pharmacy preview, a WooCommerce plugin under store/, and a hosted copy that redeploys with the repo.

How we built it

Next.js 16 + React 19 on Bun, MediaPipe face landmarker for upload framing, Sharp for image prep, Playwright for demo capture, Docker for a fresh-clone smoke test.

Challenges

Keeping the SPF arm scientifically grounded (Nambour dose scaled by city UV and ITA) while staying fast enough for a product-page embed, and making a zero-key demo path that still feels honest when YouCam units run out.

What's next

Live retailer embeds, more cities, and tighter WooCommerce / Shopify install paths.

Try it

  1. Open https://future-face.5-78-152-178.sslip.io (zero-key demo face).
  2. Drag the divider. Switch +20 / +30. Open Source on a measured row.
  3. Tap Try another city on demo face 2 (London vs Sydney moves the dose).
  4. Click Build my SPF routine, then See it in a store from the landing.
  5. Optional live upload if units remain; otherwise the paused demo path is intentional.

Repo: https://github.com/chrisbuildsonline/future-face (MIT)

Built With

  • bun
  • docker
  • mediapipe
  • next.js
  • open-meteo
  • playwright
  • react
  • sharp
  • youcam-api
Share this project:

Updates

Submission history