How gtun/enclothed works
enclothed is a multi-user wardrobe web app with a companion CLI: garment photos become validated, searchable wardrobe records, then text-based outfit suggestions and wardrobe answers use those records. Users can also mend details, recreate photographed looks, manage style and garment state, and share expiring snapshots. The graph separates the browser/CLI entry points, wardrobe and AI workflows, and shared infrastructure. Several frontend feature modules and backend modules are unsampled; their capabilities are retained from the README, while uncertain call links are omitted or marked unverified.
Main entry points: api.py Web API · llm.py LLM gateway · db.py Wardrobe database · intake.py Photo intake
Components 24
User interfaces
- Web interface
public/js/main.js - Command line
src/enclothed/main.py - Web API
src/enclothed/api.py
Wardrobe management
- Photo intake
src/enclothed/intake.py - Review drafts
src/enclothed/drafts.py - Garment editing
public/js/features/editing.js - Fill blank fields
src/enclothed/mend.py - Sets and retirement
public/js/features/combo.js - Public snapshots
src/enclothed/shares.py
Outfits and looks
- Outfit generation
src/enclothed/outfit.py - Outfit builder
public/js/features/builder.js - Look recreation
src/enclothed/mimic.py - Style preferences
public/js/features/style.js
Wardrobe assistant
- Ask wardrobe
src/enclothed/insights.py - Read-only sandbox
src/enclothed/sandbox.py
Shared platform
- AI usage reporting
src/enclothed/usage.py - Identity and access
src/enclothed/auth.py - Validated domain models
src/enclothed/models.py - Photo storage
src/enclothed/photos.py - LLM gateway
src/enclothed/llm.py - Runtime configuration
src/enclothed/config.py - Wardrobe database
src/enclothed/db.py
Other components
- Wardrobe user
- AI provider
Connections 37
- Wardrobe user → Web interface: uses
- Wardrobe user → Command line: uses
- Web interface → Web API: sends requests
- Command line → Photo intake: tags garments
src/enclothed/main.py - Web API → Identity and access: resolves user
src/enclothed/api.py - Web API → Wardrobe database: reads and writes
src/enclothed/api.py - Web API → Photo intake: handles intake
- Web API → Fill blank fields: invokes
src/enclothed/api.py - Web API → Look recreation: invokes
src/enclothed/api.py - Web API → Public snapshots: serves shares
src/enclothed/api.py - Web API → Ask wardrobe: invokes
src/enclothed/api.py - Web API → Outfit generation: requests outfits
src/enclothed/api.py - Web API → AI usage reporting: reads usage
src/enclothed/api.py - Photo intake → LLM gateway: tags photos
src/enclothed/intake.py - Photo intake → Wardrobe database: saves garment
src/enclothed/intake.py - Review drafts → Photo intake: uses tagging
src/enclothed/drafts.py - Garment editing → Web API: updates fields
- Fill blank fields → LLM gateway: fills blanks
src/enclothed/mend.py - Fill blank fields → Photo storage: loads photos
src/enclothed/mend.py - Outfit generation → LLM gateway: generates suggestions
src/enclothed/outfit.py - Outfit generation → Wardrobe database: saves outfits
src/enclothed/outfit.py - Outfit builder → Web API: requests generation
- Look recreation → LLM gateway: tags and matches
src/enclothed/mimic.py - Look recreation → Wardrobe database: saves look and outfits
src/enclothed/mimic.py - Look recreation → Photo storage: uses look photos
src/enclothed/mimic.py - Style preferences → Web API: stores preferences
- Ask wardrobe → LLM gateway: asks questions
src/enclothed/insights.py - Ask wardrobe → Read-only sandbox: uses query rules
src/enclothed/insights.py - Public snapshots → Wardrobe database: stores snapshots
src/enclothed/shares.py - Public snapshots → Photo storage: copies photos
src/enclothed/shares.py - LLM gateway → AI provider: calls provider
- LLM gateway → AI usage reporting: logs calls
- LLM gateway → Validated domain models: validates outputs
src/enclothed/llm.py - Web API → Validated domain models: validates requests
src/enclothed/api.py - Web API → Photo storage: serves photos
src/enclothed/api.py - Identity and access → Wardrobe database: looks up users
src/enclothed/auth.py - Identity and access → AI provider: verifies identity