Inspiration

Watching friends struggle to communicate hairstyle ideas to their stylists inspired us to create a solution. The gap between imagination and reality in hair transformations needed bridging—what if AI could instantly visualize any hairstyle on your actual photo before the first cut?

What it does

HairAI Studio transforms how people discover and try hairstyles. Users upload a photo and either browse 100+ professional styles or use AI-powered recommendations based on facial analysis. The app generates realistic previews in seconds, helping users make confident decisions before visiting a salon.

How we built it

  • Frontend: React Native with Expo SDK 53 for cross-platform deployment
  • Backend: Supabase Edge Functions with PostgreSQL for scalable serverless architecture
  • AI: Gemini API for image generation and intelligent recommendations
  • Monetization: RevenueCat SDK managing subscriptions (weekly/yearly), 3-day trials, and boost pack purchases
  • Analytics: Firebase Analytics with multi-currency revenue tracking across 30+ currencies

Challenges we ran into

Implementing RevenueCat's trial system proved complex—we initially struggled with duplicate credit allocation when users converted from trial to paid. Solving this required deep integration with RevenueCat's periodType API and webhook validation. We also built an enterprise-grade retry service with exponential backoff to handle AI API rate limits gracefully, ensuring 99%+ generation success rates.

Accomplishments that we're proud of

  • Dual AI Architecture: Manual selection + intelligent facial analysis recommendation modes
  • Sophisticated Monetization: credit system with trial conversion, boost packs, and graceful expiration handling—resulting in good profit margins across all tiers
  • Enterprise Analytics: USD-normalized revenue tracking enabling accurate ROAS measurement for international campaigns
  • Professional Quality: 100+ optimized hairstyle images with 90%+ size reduction, automated processing pipeline
  • Complete RevenueCat Integration: Advanced trial detection, webhook idempotency, multi-product support
  • Development Speed: It took me just two weeks, from start building to app launch on ios store.

What we learned

RevenueCat's power goes beyond simple subscriptions. Mastering advanced features like periodType detection, webhook event handling, and entitlement conflict resolution was crucial. We also discovered that thoughtful onboarding (photo showcase → tutorial → app) significantly impacts conversion rates. Building for international markets requires careful revenue tracking—real-time currency conversion proved essential for campaign optimization.

What's next for HairAI Studio

  • Launch the app on Google Play store and potentially a website version
  • AI-powered color recommendation system analyzing skin tone compatibility
  • Social features enabling users to share transformations and discover trending styles
  • Advanced analytics dashboard for A/B testing paywall variants and optimizing conversion funnels

Built With

Share this project:

Updates