How ashmitkmishra/hackfashion-ai works
HackFashion-AI combines a promotional React landing app with a separate wardrobe-styling app and Express API. The principal workflow is upload clothing images, categorize them, build a wardrobe, then request occasion-aware outfit suggestions or converse with the voice stylist. The README also documents visual wardrobe browsing, speech input, and ElevenLabs narration. The landing app hands uploaded images to the stylist app via postMessage. Backend source was indexed as read but not excerpted, so API implementation detail is limited to documented behavior and visible client routes.
Main entry points: App.tsx Stylist app · index.js Stylist API · VoiceStylist.tsx Voice stylist · UploadWardrobe.jsx Image upload
Components 19
Landing and access
- Landing app
src/App.jsx - Hero and CTA
src/components/Hero.jsx - Authentication
src/main.jsx - Feature showcase
src/components/FeaturesPage.jsx
Wardrobe intake
- Image upload
src/components/UploadWardrobe.jsx - Browser image storage
- Image uploader
Ashar/ai-wardrobe-stylist/components/ImageUploader.tsx - Clothing categorization
Ashar/ai-wardrobe-stylist/services/geminiService.ts - Wardrobe gallery
Ashar/ai-wardrobe-stylist/components/Wardrobe.tsx
Styling experience
- Stylist app
Ashar/ai-wardrobe-stylist/App.tsx - Outfit criteria
Ashar/ai-wardrobe-stylist/components/OutfitGenerator.tsx - Outfit generation client
Ashar/ai-wardrobe-stylist/services/geminiService.ts - Outfit suggestions
Ashar/ai-wardrobe-stylist/components/OutfitSuggestions.tsx - Voice stylist
Ashar/ai-wardrobe-stylist/components/VoiceStylist.tsx
AI services
- Stylist API
server/index.js - Gemini AI
- Browser speech
- ElevenLabs TTS
Other components
- Visitor
Connections 24
- Visitor → Landing app: opens
- Landing app → Hero and CTA: renders
src/App.jsx - Landing app → Feature showcase: opens
src/App.jsx - Hero and CTA → Authentication: signs in
src/components/Hero.jsx - Visitor → Image upload: selects images
README.md - Feature showcase → Image upload: opens
src/components/FeaturesPage.jsx - Image upload → Browser image storage: saves images
src/components/UploadWardrobe.jsx - Image upload → Stylist app: posts images
src/components/UploadWardrobe.jsx - Stylist app → Clothing categorization: categorizes images
Ashar/ai-wardrobe-stylist/App.tsx - Clothing categorization → Stylist API: requests categorization
Ashar/ai-wardrobe-stylist/services/geminiService.ts - Stylist API → Gemini AI: uses vision
README.md - Stylist app → Image uploader: renders
Ashar/ai-wardrobe-stylist/App.tsx - Stylist app → Wardrobe gallery: renders items
Ashar/ai-wardrobe-stylist/App.tsx - Stylist app → Outfit criteria: renders
Ashar/ai-wardrobe-stylist/App.tsx - Outfit criteria → Stylist app: submits criteria
Ashar/ai-wardrobe-stylist/App.tsx - Stylist app → Outfit generation client: requests outfits
Ashar/ai-wardrobe-stylist/App.tsx - Outfit generation client → Stylist API: requests session
Ashar/ai-wardrobe-stylist/services/geminiService.ts - Stylist API → Gemini AI: generates recommendations
README.md - Stylist app → Outfit suggestions: renders results
Ashar/ai-wardrobe-stylist/App.tsx - Stylist app → Voice stylist: renders stylist
Ashar/ai-wardrobe-stylist/App.tsx - Voice stylist → Stylist API: requests stylist session
README.md - Voice stylist → Browser speech: recognizes speech
README.md - Voice stylist → Stylist API: requests narration
README.md - Stylist API → ElevenLabs TTS: synthesizes speech
README.md