Inspiration
A glance in a mirror can become an impulse purchase. Sleep or Serum creates a pause before buying skincare, placing YouCam observations alongside personal context without claiming what caused someone's appearance.
What it does
Explore five genuine YouCam Skin Analysis scores and overlays: dark circles, eye bags, droopy upper eyelid, radiance and age spots. Sample mode replays a real API response recorded on November 2, 2026, clearly labeled. Live mode performs a fresh server-side analysis.
Below seven entered sleep hours, the reflection says “Pause & reassess.” Otherwise it says “Review your options.” Changing sleep never changes API scores. Demo sleep is hypothetical, not information about the person pictured. The seven-hour branch and 80-point marker are not clinical thresholds.
How we built it
Next.js, React, TypeScript and Vercel. Server routes use YouCam's File API, upload to the returned signed URL, create a Skin Analysis task, and poll for scores and overlays. The API key stays on the server. Genuine saved results provide a free, stable judge experience without login.
Challenges and learning
We separated observations from application rules, protected credentials and preserved temporary overlays. A useful beauty interface can help people pause without turning every score into a purchase recommendation.
Try it
App: https://sleep-or-serum.vercel.app Source, instructions and licensed assets: https://github.com/sese0318/sleep-or-serum Choose Sample, a concern, then “Look in the mirror (sample).” Change sleep from 5 to 8: the prompt changes while scores remain unchanged. Inspect the overlay buttons. No account, photo or API key is needed.
Screenshots

Credits and limits
Photograph by Wanas Rosa on Pexels, used under the Pexels License: https://www.pexels.com/photo/portrait-of-a-woman-in-goiania-brazil-30617269/ . The person pictured does not endorse the project. This is a cosmetic demonstration, not medical advice. Lighting and pose affect analysis; one photo cannot establish a cause, diagnosis or treatment effect.
What's next
Test the pause-and-review experience with shoppers, improve accessibility, and explore optional repeat-photo journaling with explicit consent.
Built With
- next.js
- react
- typescript
- vercel
- youcam?file?api