ARCHITECTURE.md · one possible design
Where the photo goes
1Browseruser device
The user uploads a garment photo.
2App serveryour backend
Stores the photo in image storage and makes the vision API call. The API key lives here, never in frontend code.
3Vision model APIoutside service
Receives the photo and returns suggested categories.
4User review
The user confirms or corrects the suggestion. If the call fails, they choose a category manually.
5Databaseyour backend
Saves the garment record and its tags.
Web app: Next.jsHosting: VercelDatabase: PostgreSQL via SupabasePhotos: Supabase Storage
Fictional example for illustration. Not a required stack, and not a built app.