How abhi-7-github/shaili works
Shaili is a smart wardrobe and styling application: users authenticate, build a wardrobe from clothing images, then use styling, outfit, insight and virtual try-on features. The browser app routes protected experiences and calls an Express API; controllers coordinate persistence and image/AI services. The README gives no capability detail beyond the product name, so feature branches reflect the source index and tree; unsampled feature implementations are represented at their exact directories, and uncertain links are omitted.
Main entry points: App.jsx App routes · wardrobeController.js Wardrobe operations · ShailiLandingPage.jsx Wardrobe workspace · wardrobeRoutes.js Wardrobe routes
Components 34
Web application
- App routes
client/src/App.jsx - Sign-in form
client/src/components/AuthForm.jsx - Auth state
client/src/context/AuthContext.jsx - Voice commands
client/src/context/VoiceCommandContext.jsx - Wardrobe workspace
client/src/components/ShailiLandingPage.jsx - Wardrobe browsing
client/src/components/WardrobeGrid.jsx - Wardrobe upload
client/src/components/UploadPage.jsx - AI assistant
client/src/components/AiAssistant.jsx - Outfit builder
client/src/components/OutfitBuilder.jsx - Style insights
client/src/components/InsightsCard.jsx - Virtual try-on UI
client/src/components/VirtualTryOn.jsx - AR viewer
client/src/components/ARViewer.jsx
API and identity
- Express API
server/server.js - Auth routes
server/routes/authRoutes.js - Auth controller
server/controllers/authController.js - Token validation
server/middleware/authMiddleware.js - User records
server/models/User.js
Wardrobe intelligence
- Wardrobe routes
server/routes/wardrobeRoutes.js - Wardrobe operations
server/controllers/wardrobeController.js - Wardrobe items
server/models/WardrobeItem.js - Garment analysis
server/services/vision.service.js - Color normalization
server/services/color.service.js - Image media storage
server/services/cloudinary.service.js - Wear insights
server/services/insights.service.js
Styling experiences
- Outfit service
server/controllers/outfitController.js - Saved outfits
server/models/Outfit.js - AI stylist
server/controllers/stylistController.js - Styling logic
server/services/stylist.service.js - Garment matching
server/services/matching.service.js - Try-on routes
server/routes/virtualTryOnRoutes.js - Try-on controller
server/controllers/virtualTryOnController.js - Try-on orchestration
server/services/virtualTryOnService.js - Provider manager
server/services/vton/VTONProviderManager.js
Other components
- Wardrobe user
Connections 39
- Wardrobe user → App routes: uses
client/src/App.jsx - App routes → Sign-in form: routes to
client/src/App.jsx - App routes → Wardrobe workspace: routes to
client/src/App.jsx - App routes → Wardrobe upload: routes to
client/src/App.jsx - App routes → Voice commands: provides context
client/src/App.jsx - App routes → Auth state: provides context
client/src/App.jsx - Sign-in form → Auth state: uses
client/src/components/AuthForm.jsx - Wardrobe workspace → Wardrobe browsing: renders
client/src/components/ShailiLandingPage.jsx - Wardrobe workspace → AI assistant: renders
client/src/components/ShailiLandingPage.jsx - Wardrobe workspace → Outfit builder: renders
client/src/components/ShailiLandingPage.jsx - Wardrobe workspace → Style insights: renders
client/src/components/ShailiLandingPage.jsx - App routes → AR viewer: routes to
client/src/App.jsx - Express API → Auth routes: mounts
server/server.js - Express API → Wardrobe routes: mounts
server/server.js - Express API → Try-on routes: mounts
server/server.js - Auth routes → Auth controller: routes to
server/routes/authRoutes.js - Auth controller → User records: reads and writes
server/controllers/authController.js - Auth routes → Token validation: protects
server/routes/authRoutes.js - Wardrobe routes → Token validation: applies
server/routes/wardrobeRoutes.js - Wardrobe routes → Wardrobe operations: routes to
server/routes/wardrobeRoutes.js - Wardrobe operations → Wardrobe items: reads and writes
server/controllers/wardrobeController.js - Wardrobe operations → Garment analysis: analyzes garments
server/controllers/wardrobeController.js - Wardrobe operations → Color normalization: normalizes colors
server/controllers/wardrobeController.js - Wardrobe operations → Image media storage: uploads images
server/controllers/wardrobeController.js - Wardrobe operations → Wear insights: gets underused items
server/controllers/wardrobeController.js - Garment analysis → Color normalization: uses
server/services/vision.service.js - Outfit service → Saved outfits: reads and writes
server/controllers/outfitController.js - Try-on routes → Token validation: protects
server/routes/virtualTryOnRoutes.js - Try-on routes → Try-on controller: dispatches
server/routes/virtualTryOnRoutes.js - Try-on controller → Try-on orchestration: processes try-on
server/controllers/virtualTryOnController.js - Try-on orchestration → Provider manager: delegates
- Provider manager → Image media storage: stores output
server/services/vton/VTONProviderManager.js - AI stylist → Styling logic: delegates
- Styling logic → Garment matching: uses
- Wardrobe browsing → Wardrobe routes: requests wardrobe
- Wardrobe upload → Wardrobe routes: uploads clothing
- Outfit builder → Outfit service: requests outfits
- Style insights → Wear insights: requests insights
- Virtual try-on UI → Try-on routes: submits images