Inspiration
Standing in front of a skincare shelf is guesswork. You don't know what your skin actually needs, routines online ignore what you can spend, and nobody warns you that the retinol you just bought shouldn't share a night with your exfoliating toner. Clothes shopping has the same gap: you can't see it on you until it arrives.
We wanted one flow that answers three questions at the moment someone is about to buy: what does my skin need, what should I buy, and how will it look? And it should end in one bag.
What it does
GlowFit turns one selfie into one bag in five steps:
- Scan. Upload or take a selfie. YouCam AI Skin Analysis scores eight concerns from 1 to 100: wrinkles, blemishes, pores, smoothness, redness, oil balance, hydration and radiance. It takes about 10 seconds.
- Report. An overall score and every concern ranked. Tap a concern and YouCam's detection mask lands on your face, showing exactly where it was found. Your trend across scans is saved on your device only.
- Routine. GlowFit targets your weakest concerns and picks the best-value product for each, within the budget you set. Drag the budget and the routine rebuilds live. Every pair of actives is checked for clashes, and morning and evening slots are taken into account. When it leaves a product out because of a clash, it tells you why.
- Try-on. Upload a full-body photo (or use the sample model) and pick a look. YouCam AI Clothes Virtual Try-On shows it on you in about 15 seconds, keeping your face, hair and pose.
- One bag. Skincare and clothes go into the same bag, with a demo checkout.
No photo handy? Try a sample face and Use a sample model run the whole flow in one click.
How we built it
- Server: a zero-dependency Node.js server (no
npm install) keeps the YouCam API key off the browser and runs the YouCam flow: register the file withPOST /s2s/v2.0/file,PUTit to the pre-signed URL, start the task, then poll until it's done. - Skin AI:
POST /s2s/v2.0/task/skin-analysiswith the eight SD concerns andformat: json, so we getui_score,raw_scoreand a detection mask per concern directly in the response. - Try-on:
POST /s2s/v2.0/task/cloth-v4. Catalog looks are sent byref_file_url, and uploaded garments byref_file_id. - Front end: vanilla JavaScript, HTML and CSS. Every step has its own URL, the back button works, and your scan, budget and bag survive a reload.
- Routine builder: a greedy picker. Each product's value is how much it helps your weakest concerns, divided by the square root of its price, with a penalty if it would introduce a clash:
$$ v(p) = \frac{\text{clash}(p) \cdot \sum_{c \in \text{needs}} w_c \, [c \in p]}{\sqrt{\text{price}(p)}} \qquad w_c = 100 - \text{score}_c $$
where the clash factor is 0.4 if adding the product creates a clash, and 1 otherwise. Concerns that are already covered count for less, so the routine spreads across your needs instead of stacking products for one concern.
Challenges we ran into
- Spending units wisely. Every API call costs units, so photos are checked in the browser first: selfies need at least 480px on the short side, and try-on photos at least 512×384. Errors such as no face, too dark, more than one person or a bad pose come back as plain-language messages instead of codes.
- Try-on references. Our first catalog used flat illustrated garments, and the try-on model wants real product or worn-outfit photos. We switched to real outfit photos and saw a big jump in quality.
- A clash checker you never see. The builder avoided clashes so well that the warning almost never appeared. We added a "Left out X: it clashes with Y" note so users see what the checker protected them from.
- Expiring links. YouCam's result URLs expire after a few hours, so a saved scan now explains that its overlays expired instead of showing a broken image.
Accomplishments that we're proud of
- A first-time user goes from selfie to a filled bag in under a minute.
- The detection masks line up exactly with the face, and the try-on keeps the person's identity.
- The clash checker understands AM vs. PM, which is how real routines work.
What we learned
- The async file → task → poll pattern makes it easy to chain several AI features behind one simple UI.
- With try-on, input quality matters most: front-facing, full-body photos and the right garment category give far better results than any prompt-side trick.
- Showing users why the app made a choice (Focus tags, the skipped-product note) builds more trust than the score alone.
What's next for GlowFit
- A real retailer catalog with ingredient lists parsed automatically
- HD skin analysis for dark circles, eye bags and firmness
- Re-scans that show whether the routine is actually working
- A shopping agent that reorders a product before it runs out
Built With
- ai-clothes-virtual-try-on
- ai-skin-analysis
- computer-vision
- css3
- html5
- javascript
- node.js
- perfect-corp
- rest-api
- virtual-try-on
- youcam-api