Inspiration

People are judged against dress codes all the time — the family function, the interview, the festival, the first date. The judgement always arrives after the photo is public or the door is already open. Dresscode turns it around: pick the occasion, take one selfie, and get a private first look at the code — in plain words, never a score — plus the shopping list that fixes it.

The moment the product is built around is the second visit. The first time, two things miss; you keep one fix, dismiss another. Come back for the same occasion and Dresscode remembers: the gold jhumkas are offered first, the red lip never comes up again, and the render lands on your own photo with every product labelled honestly.

What it does

Check against the dress code. The judge reads your selfie against the occasion's written criteria and flags what misses: "The garment reads bright; try a dark plain shirt." Reasons worded as suggestions — no score is ever shown.

Fixes are opt-in. You tick what you're open to (beard, makeup, jewellery, hair…). The pipeline never infers gender or anything else from your face to decide which fixes apply. Render. The chosen fix is rendered on your own photo by YouCam's virtual try-on, with the original one swipe away.

Check the render. A second AI pass sees the original and the render together and answers: was the change made, is it still the same person? A render that fails either is discarded, never shown — the runner-up is tried, and after that the suggestion stands.

Shop the look. Every product is labelled for what it is: exact product, approximate match, or visual simulation.

Remember (opt-in). With style history on, Dresscode keeps the occasion, the flags, the fixes kept and dismissed — and the next visit opens with "Last family function you kept the gold jhumkas and dismissed the red lip."

How we built it

One Go binary on Keel v0.9.0 — the admission gate, the job runner, spend meters that quote, reserve and settle every paid call once, guest identity, erasure, and SQLite — serving both the API and the built app.

A Svelte 5 mobile-first installable app on Chaaya 0.5.0: camera, chunked uploads, the live job stream, and accessibility gates at 375 px in light and dark.

Cloudflare Workers AI runs Clef, the model that judges, picks and checks. The thresholds are measured, not vibes: the judge agrees with a 273-answer ground-truth corpus 269 times (98.5%) at the shipped lines, 32 of 36 criteria separate perfectly, and every shipped threshold sits beside the curve that chose it.

YouCam API does the virtual try-on — earrings, makeup, clothes, hair, beard, smile — plus the one analysis a fix needs (face shape; age, gender and ratios are never requested, read or shown). Lambo keeps style memory as text and embeddings; Resend sends sign-in codes; the whole stack runs on our own machine behind a Cloudflare Tunnel, with nightly backups and restart-on-failure units. The entire judgement engine runs offline against a recorded corpus with an evaluation harness and byte-pinned docs, so a re-record fails naming every moved figure instead of aging quietly.

What we learned

Honesty is a feature you build. A render that fails its check is discarded, never shown; a measurement the analysis refuses (a tilted head) stands the suggestion instead of faking an outfit; errors surface as toasts that say what happened. The app tells the truth even when the truth is "no picture".

Thresholds come from measurement. The model behind the judge drifted between our first recordings and submission — our own evaluation caught it before a user ever saw it, and the response was a full re-record with every threshold re-emitted beside its fresh curve.

Wording is data. What the app says about your look comes from a phrase table in the occasions data, so every screen speaks the same way about the same look — "gold jhumkas", never "jhumkas, gold".

Challenges

Service drift. The model moved under our thresholds mid-build; the whole corpus was re-recorded (55 calls, every one accounted for) and every line re-chosen by the sweep rule — with the two corpora's evidence kept separate so history stayed history.

Trusting the render check enough to discard its own engine's work. The check refuses renders that fail the change/person/criterion gates, and the demo caches are generated from the recordings so they can't drift from what the rule produces.

Real units, real budgets. Every paid call is quoted, reserved and settled exactly once; free sample replays are idempotent; and when units run low the product degrades to suggestions rather than pretending.

Built With

Share this project:

Updates

Submission history