Rolando Andrade
Back to projects

Built in 2025

Fiu-Fiu

AI Virtual Try-On & Digital Wardrobe

Fiu-Fiu preview

Fiu-Fiu transforms the way you experience fashion. Using AI technology, it creates your personalized virtual model that looks just like you.

You cannot try clothes on when you shop online. Size charts are often wrong. “Model is 6’2” wearing size M” tells you nothing about how a shirt will fit your body. Returns are a hassle. Most people either take a chance on a purchase or stay with brands they already know.

The name Fiu-Fiu comes from the wolf whistle people use in Spanish and Portuguese speaking countries to show admiration. Looking good is the idea behind the app.

A model that looks like you

Fiu-Fiu creates a virtual model from your photos. It is not a cartoon avatar. It is an AI generated image that reflects your real appearance, body type and proportions.

You upload a few photos, and the AI builds your model. Then you try on any clothing item you want. You see how that jacket, dress or pair of jeans would look on you.

Fiu Fiu interface
Fiu Fiu interface

Three parts in one repository

The project is a monorepo with three main parts. A React frontend runs on Cloudflare Pages. A Hono backend runs on Cloudflare Workers. A marketing website completes the set.

Each part has a clear job. The frontend handles the interface and shows the images. The backend manages AI generation, wardrobe data and subscriptions.

The backend modules

The API runs on Hono with Cloudflare Workers. The code is organized around core modules: wardrobe items, virtual model creation, try on rendering, image processing, user accounts and subscription billing. Each module follows a clean architecture pattern, with controllers, DTOs (data transfer objects) and services.

Drizzle ORM connects to D1 to store the data. The schema tracks users, their virtual models, their clothing items and the try on images the app generates.

To generate a try on, the backend gets the user’s active virtual model and the chosen clothing item. It sends both to the AI service, which combines them into one image. Then it stores the result for display.

How the try on works

The try on uses outside AI services, called through aws4fetch for authenticated requests. The process has three steps:

  1. Model creation. The user uploads reference photos, and the AI generates a consistent virtual model.
  2. Clothing processing. The app processes uploaded clothing images to extract the garment.
  3. Try on generation. The AI combines the model and the garment into a realistic image.

Google GenAI adds other features, like sorting clothes into categories and recommending styles.

The AI pipeline is asynchronous. Users send a try on request and get a notification when it is ready. The API stays responsive while the heavy work runs in the background.

The frontend stack

The React app uses current tools:

  • TanStack Router for file-based routing
  • TanStack Query for server state management
  • Zustand for client state
  • react-hook-form with Zod validation

For images, the app uses the @jsquash libraries to resize and convert photos in the browser. Photos are processed before upload to save bandwidth and storage.

Embla Carousel powers the outfit gallery, with touch gestures and smooth animations.

Smaller photos before upload

Before an image is uploaded, the browser processes it. It resizes the photo to a maximum size and converts it to WebP, an image format that compresses well. Uploads get 60 to 80% smaller, and the quality is still good enough for the AI.

A wardrobe that grows

Users build a wardrobe that stays with them:

  • Upload photos of clothing items they own
  • Save items from online stores
  • Organize by category, color, or season
  • Create outfit combinations

The bigger the wardrobe, the more useful it is. You can try a new purchase next to the clothes you already own and see how it fits your style.

Free and paid plans

Stripe handles billing with usage based pricing. Free users get a limited number of try ons each month. Paid plans add:

  • Unlimited try-ons
  • Higher resolution output
  • Multiple virtual models
  • Priority generation queue

Stripe webhooks keep the backend in sync with each subscription. When a subscription is created, updated or cancelled, the user’s access updates on its own.

An app you can install

The app is a Progressive Web App, a website you can install like an app. Users add it to their home screen and use it like a native app. This lets me move fast, because web deploys are instant. If the idea proves itself, native mobile apps come next.

More than the AI

Fiu-Fiu taught me how complex AI products are. The AI is only one piece. You also need image processing pipelines, storage optimization, background jobs and an interface that makes the technology easy to use.

The Cloudflare stack of Workers, D1 and R2 keeps infrastructure costs low and scales on its own. For a consumer app with unpredictable traffic, that is ideal.

Processing images in the browser before upload is a must. Without it, mobile users on slow connections would have a frustrating experience.

Fiu Fiu (archived) The project is closed. This is a copy of its website saved by the Internet Archive. web.archive.org

Fashion meets AI. I’m excited to see where this goes.

Interested in working together? Check out my services and pricing to see how we can collaborate on your next project. Let's Build