Garment Browser
Browse available blanks at/garments before designing. Filter by category, color, or search by name.
Overview
- Filter by category: T-shirts, hoodies, tank tops, etc.
- Filter by color: Black, white, navy, and more
- Search: Find specific products by name
- Quick add: Send garment directly to chat
Data Sources
Shopify Integration
When configured, products pull from your Shopify store:Mock Data Fallback
Without Shopify credentials, the app uses mock garments:Browsing & Favorites
- Click a garment to open the detail modal
- View product info: title, color, fabric, price
- Click the heart icon to add to your collection
- Browse your favorites at
/collection
Applying Designs to Garments
To add your design to a garment:- Create a design in the chat first
- Remove the background using the mini menu
- Click “Add to Garment” from the mini menu
- Select a blank from the garment selector
- The mockup generates automatically
Likes Collection
Save garments for later:- Click the heart icon to like
- Liked garments appear at
/collection - Persist across sessions via localStorage
Product Blocklist
Certain products can be excluded from display:Shopify Query
The Storefront API query:UI Components
GarmentGrid
Product Modal
Shows:- Large product image with gallery
- Title, color, fabric
- Price and stock info
- Like toggle (heart button)
Configuration
Using Shopify
- Create a Shopify custom app
- Enable
read_productsscope - Set environment variables
- Products auto-load on
/garments
Using Mock Data
Simply don’t set Shopify credentials. Thelib/shopify.ts client falls back automatically:
Customizing Mock Products
Editlib/mockGarments.ts to add your own samples:
public/samples/.