Inspiration

I’ve had moments when I was invited to dinner or a meetup and stood in front of my wardrobe thinking, “What should I wear?”

I would search online for outfit inspiration, but the ideas often included clothes I didn’t own. That made me wonder: What if I could get outfit ideas using the clothes already in my wardrobe?

That question inspired us to build Wardrobe AI, a personal styling assistant designed around the clothes you already have. We wanted it to help people see new possibilities in their own wardrobe and think about how to style an outfit, not just what to buy next.

What it does

Wardrobe AI lets users build a digital wardrobe from photos of their clothes and chat with a stylist about what to wear. Someone can describe an occasion, select a particular garment they want to include, and get outfit suggestions based on available pieces.

Users can review their clothes in a visual wardrobe, explore suggestions on an outfit board, swap pieces, and save feedback after wearing an outfit. The app can also consider optional preferences and weather when helping with a decision.

We wanted users to stay in control. For example, they review clothing details before saving them and confirm changes to their wardrobe. Photos are sent for AI analysis only when the user chooses to analyze them.

How we built it

We built the application with React, TypeScript, and Vite. For the wardrobe itself, we used IndexedDB, a browser database, with Dexie to store clothing records and photos locally by default. This gave us a way to build a personal wardrobe experience without requiring every wardrobe interaction to go through a cloud database.

For AI, we used Firebase AI Logic to work with both on-device and cloud models. The app uses on-device inference for chat planning and outfit reasoning in supported desktop Chrome browsers. For photo analysis, it uses a cloud model after the user explicitly selects Analyze photo.

We also built a reviewed, text-only cloud fallback for cases where the local model cannot handle a request. The user can inspect and approve the request before it is sent. Getting this flow reliable has been challenging, and live cloud fallback still needs further verification.

To make the recommendations useful, we worked on passing relevant wardrobe details, the user’s request, and a bounded amount of conversation context to the model. We also validate model responses before using them, so that the app can reject unsuitable or unexpected output instead of blindly trusting it.

What we learned

Firebase was new to us, so using it was one of the most eye-opening parts of the project. Before this, I mostly thought of adding AI to an application as calling a model with an API key. Building Wardrobe AI introduced me to another approach: using Firebase AI Logic to work with on-device and cloud inference, and thinking carefully about when each is appropriate.

I also got hands-on experience with the browser’s developer tools and the Firebase console. I had known about the developer console before, but I hadn’t really had the chance to use it this way. During development, I used it to investigate errors and work through Firebase App Check setup, including registering a debug token for local testing.

Beyond the tools, we learned that building an AI feature involves much more than getting a model to respond. We had to think about what information the model receives, how to interpret its response, what happens when it fails, and how to give the user clear choices.

Challenges we faced

One of the biggest challenges was the local model’s limitations. It could not always understand every request or maintain the context we expected. A follow-up answer that felt obvious to a person could be interpreted differently by the model, especially when the conversation involved an occasion, a selected garment, weather, and earlier preferences.

We also encountered hallucinations: the model could suggest or assume details that were not supported by the user’s wardrobe. For an app whose purpose is to style clothes people already own, that is a problem. We worked on grounding suggestions in saved wardrobe data, limiting the context sent to the model, and validating the output.

The cloud fallback introduced another set of challenges, including Firebase configuration, App Check, permissions, and errors that could occur before a request reached the model. We spent time debugging those paths and making the app communicate failures more clearly.

A lot of the work was iterative: adjusting prompts and context, testing different requests, examining mistakes, and refining the application around the model. We learned that improving an AI experience is not simply a matter of asking the model a better question; the surrounding product and its safeguards matter too.

What’s next

We’re proud of how much we’ve built, but we don’t consider this the final result we imagined yet. We want to keep improving the stylist’s understanding, the quality and consistency of outfit recommendations, and the reliability of the cloud fallback across real devices and environments.

Our goal is for Wardrobe AI to become a useful everyday companion: something that helps you feel more confident about what to wear while making better use of the clothes you already own.

Share this project:

Updates

Submission history