The
libs/aglaea/area: 93 Nx libraries that make up Aglaea, the AI-powered fashion, beauty, skincare, haircare and personal-styling domain — a TypeScript foundation tier plus dozens of focused analysis, recommendation, try-on, commerce and engagement engines.
What this area is#
Aglaea (named for the Grace of beauty and adornment) is a single domain split
into many small, sharply-scoped Nx libraries rather than one monolith. Every
project lives under libs/aglaea/<name>/ and publishes as @aglaea/<name>;
each is a normal buildable TypeScript library with a src/ barrel (index.ts),
usually a types.ts (database and testing organize theirs differently), and
one or more engine modules, plus a colocated *.spec.ts / *.test.ts. There
are no empty scaffolds in this area — the smallest package is ~750 LOC and the
largest (@aglaea/skin-analysis) is over 10,000 LOC across 49 files. The README
at libs/aglaea/README.md is the canonical map of the area.
The libraries fall into a few tiers. A foundation tier (core, database,
sdk, events, ai-orchestrator, testing, api-services) owns shared
types, persistence, the client SDK, the event bus, model orchestration and
contract definitions. On top of it sit analysis engines (skin, body, hair,
face, nail, color, fabric) that turn images/measurements into structured
profiles; recommendation/curation engines (outfit, occasion, trend,
accessory families) that turn profiles into suggestions; virtual try-on /
visualization engines that produce render instructions; commerce libraries
(shopping assistants, retailer API, product passport); personalization
libraries (preference learning, unified profile, conversation);
sustainability/care libraries; social/engagement libraries; and
device/integration libraries.
The implementation style across the area is domain-specific and
science-grounded, not generic CRUD: @aglaea/makeup-recommendation matches
foundation shades in CIE L*a*b* with Delta E, @aglaea/weather-service
computes PMV/PPD thermal comfort and WBGT, @aglaea/laundry-integration encodes
ISO 3758 care symbols, @aglaea/ethical-ai computes equalized-odds and
demographic-parity fairness metrics, and @aglaea/enhanced-hair-analysis
implements a SALT-score trichoscopy model. Most engines are pure functions and
plain data tables (the CLASSES surface is small); the stateful infrastructure
(caching, queues, registries, clients) is concentrated in the foundation tier.
How it fits the wider system#
The foundation tier is the hub: nearly every leaf engine depends on
@aglaea/core for shared types, color science, validation and cross-cutting
infra. @aglaea/database owns the Prisma-style schema and migrations all
persisted entities map to; @aglaea/events defines the domain event taxonomy
that @aglaea/api-services and engines emit; @aglaea/sdk is the typed client
external consumers use; @aglaea/ai-orchestrator is the seam through which
engines that need model inference route their calls (with A/B testing, fallback
and cost tracking). @aglaea/sophia-integration is the seam designed for
cross-domain style Q&A — a self-contained query-router over supplied knowledge
entries, intended to front a Sophia knowledge base (not an actually-wired edge).
The analysis engines are upstream of the recommendation and try-on engines (a
skin or body profile feeds outfit, makeup and fit suggestions), which in turn
feed the commerce and engagement layers. Walk the "used by" edges on any node
below to see the exact composition.
Entity catalog (94)#
The 94 tracked Nx projects in aglaea, each a code-linked entity node — package, type, source path, declared targets, and its internal dependency graph (depends-on / used-by, resolved from the package manifests, §6/§8), read from the project graph. Grouped by architectural layer; walk the dependency links to travel the system. 93 of these carry an authored deep-dive (what / why / how it fits); the rest are generated scaffolds awaiting one.
data (1)#
The persistence layer (libs/aglaea/database/src): per-entity schema modules
under schema/ (profiles, products, wardrobe, outfits,
recommendations, skin-analysis, fabrics, ingredients, trends,
brands, body-measurements, social, audit, feedback, preferences,
common), a set of timestamped migrations/, and operational helpers
connection-pool.ts, read-replica.ts (ReplicaRouter) and backup.ts.
domain (91)#
Fine-jewelry/gemstone intelligence (libs/aglaea/advanced-jewelry/src): a
jewelry-engine over a GEMSTONE_DATABASE and WATCH_DATABASE, with
InvestmentAnalysis and AuthenticityCheck (gemstone hardness, provenance).
Non-invasive treatment intelligence (libs/aglaea/aesthetic-treatments/src): a
treatment-database and a treatment-planner for information, planning and
comparison.
TreatmentCategory8SkinConcern8DowntimeLevel8CostRange8PainLevel8Treatment8TreatmentPlanItem8TreatmentPlan8TreatmentComparison8DowntimeAvailability8TREATMENT_DATABASE21findTreatmentsByConcern21findTreatmentsByCategory21lanTreatments27An autonomous shopping agent (libs/aglaea/agentic-shopping/src): an
agent-engine driving a ShoppingAgent over AgentActions, routing to
SPECIALIST_MODELS (scoreSpecialistMatch) and carrying a StylePassport
across a ShoppingSession.
Skin-aging prediction and prevention (libs/aglaea/aging-trajectory/src): an
aging-predictor, a progression-model and evidence-based
prevention-scoring.
computeOverallBiologicalAge27redictBodyAge27redictHairAge27redictSkinAge27calculateAgingRate35modelAgingProgression35generatePreventionPlan38INTERVENTION_DATABASE38Model management and inference orchestration (libs/aglaea/ai-orchestrator/src,
12 modules): ModelRegistry, ABTestManager, fallback strategies
(FallbackChain, CachedFallback, DegradedFallback), InferenceQueue,
BatchInferenceProcessor, CostTracker, ModelMonitor,
EdgeDeploymentManager, ModelWarmer, composed by the AIOrchestrator facade
— the seam other engines route model calls through.
ModelProvider29ModelCapability29modelId29riorityWeight29ModelRegistry32ABTestManager35FallbackStrategy38FallbackChain38CachedFallback38DegradedFallback38InferenceQueue42BatchInferenceProcessor45ModelMonitor48CostTracker52 +5 moreThe API contract/registry layer (libs/aglaea/api-services/src, 14 modules): a
barrel of endpoint definitions (analysis, conversation, profile, recommendation,
trends, try-on, wardrobe), their event definitions (analysis/recommendation/
social/wardrobe events) and an api-registry. It is contract types + endpoint/
event definitions, not a running HTTP server.
getProfile19createProfile19updateProfile19deleteProfile19getProfileSummary19uploadProfilePhoto19getPreferences19updatePreferences19getActivityHistory19syncProfile19PROFILE_ENDPOINTS19runSkinAnalysis34runColorAnalysis34runFaceShapeAnalysis34 +110 moreDigital-avatar generation (libs/aglaea/avatar-creation/src): an
avatar-generator (from measurements/presets) and an avatar-customizer with
30+ adjustable parameters.
generateAvatar26getBodyShapes26getFaceShapes26AVATAR_BODY_PRESETS26AVATAR_FACE_PRESETS26getCustomizableParameters35getParametersByCategory35applyCustomization35reviewChange35Handbag/bag styling (libs/aglaea/bag-recommendation/src): a bag-engine that
matches by occasion, body proportion, style preference and functional need
(including size-by-body-type).
getBagSizeAdvice21getBagStylesForNeeds21INVESTMENT_BAG_GUIDE21BAG_DATABASE21recommendBag21getTopBags21getInvestmentBagGuide21Beauty-routine scheduling (libs/aglaea/beauty-calendar/src): a
treatment-scheduler and product-management (expiry/usage tracking).
ProductCategory8RoutineFrequency8BeautyEventType8BeautyEvent8RoutineSchedule8ProductTracker8CalendarDay8BeautyCalendar8rackProduct19getExpiringProducts19PAO_DATABASE19scheduleBeautyTreatments21generateMonthlyCalendar21DEFAULT_DAILY_EVENTS21 +4 moreTransformation preview/timeline (libs/aglaea/before-after/src, ~3.8K LOC): a
transformation-engine, progress-curves, plateau-detection,
regression-monitor, seasonal-adjustment and a gallery-curator.
generateTransformationPreview35stimateTransformationTimeline35getAvailableChanges35TRANSFORMATION_PROGRESS_CURVES42modelProgress42redictTimeToTarget42identifyPhase42getPhaseDescription42getProgressCurve42listTransformationCategories42PHOTO_GUIDELINES_DATABASE53generatePhotoGuideline53assessPhotoConsistency53listPhotoGuidelineTypes53 +17 moreBelt coordination (libs/aglaea/belt-styling/src, ~4K LOC): a
buckle-taxonomy, leather-grading, belt-sizing, body-shape-belting,
belt-outfit-coordination and belt-care, composed by a belt-engine.
BELT_WIDTH_RANGES36getBeltWidthAdvice40getBeltingAdviceForBodyShape40COLOR_COORDINATION_RULES40BELT_DATABASE40recommendBelt40getTopBelts40BUCKLE_DATABASE51getBuckleByType51getBucklesByFormality51getBucklesForWidth51METAL_FAMILIES51getMetalFamily51metalsCoordinate51 +42 moreHealth-data personalization (libs/aglaea/biometric-integration/src): a
biometric-collector, appearance-impact assessment and trend-analysis over
collected metrics.
rocessEnvironmentalData27rocessReadings27validateReading27assessAppearanceImpact34generateBiometricRecommendations34analyzeBiometricTrends37correlateWithSkinHealth37Body-type intelligence (libs/aglaea/body-analysis/src): a shape-classifier,
measurement-system, proportion-analysis, posture-analysis,
size-prediction and styling-recommendations, composed into a
body-analysis-report.
computeBMI24stimateBodyFat24stimateFromHeight24xtractMeasurementsFromSilhouette24validateMeasurements24hotoBasedExtract24classifyBodyShape34getStylingNotes34scoreHourglass34scorePear34scoreApple34scoreRectangle34scoreInvertedTriangle34scoreAthletic34 +19 moreCalendar-aware styling (libs/aglaea/calendar-integration/src): event
extraction, dress-code inference, outfit-reminder scheduling and packing-list
generation from calendar/travel events.
calculateReminderDate19createOutfitReminders19detectEventType19detectExplicitDressCode19xtractDressCode19generatePackingList19inferTravelDuration19rocessCalendarEvents19Garment-care intelligence (libs/aglaea/care-intelligence/src): a care-guide
with expert instructions for 40+ fabrics and a longevity-estimator.
generateCareGuide22getStainRemoval22listCareFabrics22stimateLongevity24compareLongevity24careUpgradeImpact24getMostDurableFabrics24Celebrity look matching (libs/aglaea/celebrity-style/src, ~5.2K LOC): a
celebrity-database, style-matcher, affordable-alternatives (budget
recreation) and a style-guide-generator.
CELEBRITY_PROFILES34getAllSignatureElements34getAllStyleArchetypes34getCelebritiesByBrand34getCelebritiesByEra34getCelebritiesByStyle34getCelebrityById34searchCelebritiesByName34findCelebrityByElement46findCelebritiesForOccasion46findStyleMatch46ALTERNATIVE_DATABASE53PRICE_TIER_MAPPING53findAffordableAlternatives53 +5 morePersonal color analysis (libs/aglaea/color-analysis/src, 11 modules): seasonal
classification (12 subtypes), undertone analysis, contrast analysis, palette
generation, and downstream makeup-matching / hair-color-matching /
color-application, built on color-utils.ts.
rgbToHsl29hslToRgb29rgbToLab29labToRgb29rgbToHsv29hexToRgb29rgbToHex29ciede200029relativeLuminance29contrastRatio29rceivedBrightness29classifySeason44detectSpringSubtype44detectSummerSubtype44 +32 moreClimate-aware fabric comfort prediction (libs/aglaea/comfort-prediction/src):
climate-comfort (how a fabric performs in given weather) and
sensitivity-matching for sensitive-skin wearers.
CLIMATE_FABRIC_MATRIX18classifyClimate18redictClimateComfort18getBestFabricsForClimate18getFabricsToAvoid18SENSITIVITY_DATABASE26matchForSensitivity26listSensitivities26findSafeFabrics26getTriggeredSensitivities26Natural-language style consultation (libs/aglaea/conversation-engine/src,
~3.2K LOC): intent-classification, entity-extraction, dialogue-state,
conversation-flow and response-generation.
classifyIntent37getTopIntent37normalizeText37getIntentPatterns37xtractEntities45getEntityDictionaries45resolveEntity45analyzeSentiment48determinePhase48fillSlotsFromEntities48getSlotsForIntent48createDialogueState48updateDialogueState48recordAssistantTurn48 +14 moreThe domain foundation (libs/aglaea/core/src, ~10.7K LOC across 21 modules):
the shared types.ts/constants.ts, the algorithmic cores (color-science.ts,
skin-analysis.ts, body-analysis.ts, hair-analysis.ts,
fabric-intelligence.ts, fashion-taxonomy.ts, fragrance-profiling.ts,
style-profiling.ts, trend-analysis.ts, recommendation-engine.ts), plus
cross-cutting infrastructure used domain-wide —
LRUCache/AglaeaCacheKeyBuilder, AglaeaLogger, ConfigManager, the typed
AglaeaError hierarchy, TokenBucketLimiter/SlidingWindowLimiter,
FeatureFlagManager and validation.ts. This is the most-depended-on package
in the area.
Culture-aware styling (libs/aglaea/cultural-adaptation/src, ~6.3K LOC): a
dress-code-engine, modest-fashion profiling, regional-codes of dress norms
and a sensitivity-checker.
CULTURAL_DRESS_DATABASE42DRESS_CODE_DATABASE42adaptDressCode42compareFormalityLevel42findByFormality42findByOccasion42findBySeason42findByTimeOfDay42findCulturalByTradition42getGarments42getTotalDressCodeCount42isValidDressCodeId42lookupCulturalRequirement42lookupDressCode42 +33 moreProduct provenance and ESPR compliance
(libs/aglaea/digital-product-passport/src, ~4.4K LOC): a dpp-engine plus
espr-compliance, blockchain anchoring, data-carriers, supply-chain,
repair-score, end-of-life and green-claims verification, with
circularity/MCI scoring helpers.
A precision measurement pipeline (libs/aglaea/enhanced-body-measurement/src):
MEASUREMENT_DEFINITIONS with getTypicalRange/validateMeasurement, plus
pose-validation (validatePose, checkPoseCoverage) over a
measurement-engine.
Advanced hair diagnostics (libs/aglaea/enhanced-hair-analysis/src):
classification-scales, trichoscopy (density mapping and miniaturization
ratios), hair-shaft-analysis (diameter classification against
HAIR_DIAMETER_THRESHOLDS and coefficient-of-variation thresholds, plus a
simulated pull test and calculateSALTScore for alopecia) and
treatment-guidance.
Advanced skin tracking layered on the base engine
(libs/aglaea/enhanced-skin-analysis/src): an AdvancedBiomarker database,
MultiAngleFusion (combining multiple AngleCaptures with quality-weighted
fusion), a SkinAtlasEntry reference set, and a privacy-engine for
sensitive-image handling.
Bias detection and fairness (libs/aglaea/ethical-ai/src, ~3.5K LOC): a
fairness-metrics module computing demographic parity, equalized odds, equal
opportunity, predictive parity, calibration and treatment equality
(runComprehensiveFairnessAudit), plus a bias-engine, intersectional-bias,
inclusive-language, database-gaps, remediation and model-card
generation.
Event-specific styling preparation (libs/aglaea/event-prep/src): the
event-prep module that builds preparation plans for a specific event.
createEventPrep21getSupportedEventTypes21completeTask21checkItem21updateOutfitItemStatus21getOverdueTasks21getUpcomingTasks21getDaysUntilEvent21generateReminders21getPrepSummary21The typed domain event system (libs/aglaea/events/src): event type definitions
plus an in-memory transport — InMemoryEventPublisher, EventConsumer,
InMemoryEventStore, DeadLetterQueue, EventReplayer and EventAnalytics,
with helpers.ts for constructing/validating payloads.
AGLAEA_EVENT_TYPES20createEvent58createEnvelope58createCorrelatedEvent58InMemoryEventPublisher63EventConsumer67InMemoryEventStore70EventReplayer70EventAnalytics74DeadLetterQueue77The human-stylist marketplace (libs/aglaea/expert-network/src): expert
profiling, matching, consultation scheduling and a review system.
PRICE_TIER_RANGES33SPECIALTY_REGISTRY33classifyPriceTier33computeExpertRating33findNextAvailableSlot33getAllSpecialties33getSpecialtyInfo33isSlotAvailable33matchExperts33scheduleConsultation33searchExperts33validateReview33Eyewear matching (libs/aglaea/eyewear-recommendation/src): an eyewear-engine
selecting frames by face shape, measurements, style and color profile.
getFrameGuidanceForFace24getFrameColorsForSkin24FRAME_DATABASE24recommendFrames24getTopFrames24getUVProtectionGuide24getSunglassOptions24Textile identification (libs/aglaea/fabric-identification/src) grounded in
fiber characteristics and weave structures: a fiber-identifier,
weave-detector, texture-analyzer and an aggregate fabric-classifier.
identifyFiber26detectBlend26FIBER_CHARACTERISTICS_DATABASE26detectWeave29getWeaveCharacteristics29WEAVE_DATABASE29analyzeTexture32describeHand32TEXTURE_INFERENCE_RULES32classifyFabric35determineFabricName35stimateWeight35getCommonUses35getCareCategory35 +1 moreFabric performance and comfort data (libs/aglaea/fabric-properties/src): a
scientifically-grounded performance-database (40+ fabrics) and a
comfort-scorer.
FABRIC_PERFORMANCE_DATABASE21getFabricEntry21listAllFabrics21getFabricsByCategory21getTopFabricsForDimension21scoreComfort29compareComfort29getBestFabricsForBodyArea29Face-geometry analysis (libs/aglaea/face-shape-analysis/src): landmark
detection, a face-shape-classifier, feature-analysis and
proportion-analysis, producing style-recommendations (for hairstyle/
eyewear/accessory matching) and a face-analysis-report.
angle28centroid28clamp28curvature28distance28gaussian28lerp28midpoint28olygonArea28slopeAngle28spanX28spanY28detectLandmarks44stimateLandmarksFromProportions44 +33 moreFamily/group styling (libs/aglaea/family-features/src, ~3.3K LOC): a
family-engine, growth-tracking (height percentiles, predictHeight6Months,
heightToChildSize, next-size-up date prediction), hand-me-down planning,
child-safety and family-coordination.
Size and fit prediction (libs/aglaea/fit-prediction/src): a size-engine,
fit-simulation, fit-issues detection and an alteration-engine, composed
into a fit-report.
recommendSize34crossBrandSizeTranslation34redictReturnRisk34STANDARD_SIZE_CHARTS34BRAND_SIZE_PROFILES34EASE_GUIDELINES34findBrandProfile34fabricStretchAdjustment34idealEase34simulateFit47simulateDrape47redictEaseDistribution47redictFitIssues50redictFabricBehavior50 +7 moreScent intelligence (libs/aglaea/fragrance-intelligence/src): a scent-profile
model, fragrance-matching and an application-guide (layering/occasion).
FragranceFamily8NotePosition8Season8Occasion8Concentration8Sillage8Longevity8PriceRange8Lifestyle8LayeringTechnique8FragranceNote8FragranceProfile8FragranceRecommendation8FragranceLayering8 +9 moreStyle gamification (libs/aglaea/gamification/src): achievements, badges,
challenges, streaks, a point system and leaderboards.
ACHIEVEMENTS32LEVELS32POINT_VALUES32WEEKLY_CHALLENGE_TEMPLATES32achievementToBadge32buildGamificationProfile32buildLeaderboard32calculatePointSystem32calculatePoints32checkNewAchievements32createPointTransaction32createStreak32generateWeeklyChallenge32getAchievement32 +8 moreAI fashion-design generation (libs/aglaea/generative-design/src): a
design-engine that parses a DesignPrompt into ParsedDesignAttributes,
producing a GeneratedDesign, MoodBoard and VisualizationSpec (design
description/spec output, not pixel rendering).
Hair profiling (libs/aglaea/hair-analysis/src): a hair-type-classifier,
hair-properties (texture/porosity), scalp-analysis, hair-color-analysis
and care-recommendations, composed into a hair-analysis-report.
classifyHairType33analyzeType133analyzeType233analyzeType333analyzeType433detectMultiTextured33mapCurlPattern33assessTextureUniformity33computeTypeConfidence33analyzeHairProperties46analyzeHairPropertiesFull46stimatePorosity46stimateDensity46stimateThickness46 +26 moreHair-care routine building for all types 1A–4C (libs/aglaea/hair-routine/src):
wash-optimization, styling-routine and a treatment-scheduler.
HairProfile8WashRoutine8StylingRoutine8StylingProduct8TreatmentSchedule8TreatmentEntry8HeatToolRecommendation8HairRoutinePlan8HairType8Porosity8HairDensity8HairCondition8HairConcern8WashFrequency8 +14 moreHairstyle suggestion (libs/aglaea/hairstyle-recommendation/src):
cut-recommendations, color-recommendations and styling-recommendations.
HairstyleRecommendation8CutRecommendation8ColorRecommendation8StylingRecommendation8FaceShape8HairType8MaintenanceLevel8StylingDifficulty8HairLength8Lifestyle8LayeringType8FringeType8ColorTechnique8SeasonalType8 +13 moreHeadwear styling (libs/aglaea/hat-recommendation/src) with real millinery
knowledge: a hat-database (32 styles), face-shape-matching, hat-sizing,
hat-etiquette and hat-care, composed by a hat-engine.
HAT_DATABASE36recommendHat40getTopHats40findHatByStyle40searchHats40getHatsForOccasion40getHatsForSeason40getHatsByFormality40FACE_SHAPE_GUIDANCE52getHatGuidanceForFace52matchHatToFaceShape52getBestHatForFaceShape52isHatRecommendedForFace52SIZE_CONVERSION_TABLE62 +15 moreSize-inclusive and adaptive styling (libs/aglaea/inclusive-fashion/src):
extended-sizes, adaptive-fashion (for disability/accessibility) and
gender-inclusive modules.
COMMON_FIT_ISSUES_BY_SIZE32EXTENDED_SIZE_DATABASE32assessBrandSizeInclusivity32findPlusSizeFriendlyBrands32getExtendedSizeStylingTips32suggestFitSolutions32ADAPTIVE_FASHION_BRANDS42ADAPTIVE_NEEDS_DATABASE42filterForAdaptiveNeeds42generateAdaptiveRecommendation42generateAdaptiveStyleGuide42recommendAdaptiveFeatures42GENDER_INCLUSIVE_BRANDS52GENDER_INCLUSIVE_SIZING52 +2 moreCosmetic-chemistry knowledge (libs/aglaea/ingredient-intelligence/src, ~4K
LOC): a 100+-ingredient ingredient-database with INCI data, pH ranges and
comedogenic ratings, plus ingredient-analysis and an interaction-engine.
INGREDIENT_DATABASE26lookupIngredient26searchIngredients26getIngredientsByFunction26getIngredientsForConcern26INTERACTION_DATABASE35checkInteractions35checkPHCompatibility35suggestLayeringOrder35findSynergies35findConflicts35arseIngredientList45analyzeProduct45scoreSafety45 +1 moreProduct-label scanning (libs/aglaea/ingredient-scanner/src): INCI-list parsing
with correctOcrErrors, a BarcodeLookup, an INGREDIENT_DATABASE, and a
ScanResult/SafetyAlert surface checked against a UserSensitivityProfile.
The style inspiration feed (libs/aglaea/inspiration-feed/src, ~4.6K LOC):
feed-algorithms, content-sources aggregation (with a SourceRateLimiter), a
personalization-engine, content-scoring and a diversity-engine.
FEED_ALGORITHMS59SOURCE_TYPE_RELIABILITY59aggregateContent59computeDiversityScore59computeEngagementScore59computeFreshnessScore59computePersonalHistoryScore59computeStyleMatchScore59computeTrendingScore59curateFeed59getDiscoverySuggestions59getFeedAlgorithm59ALGORITHM_CONFIGS75ALGORITHM_VERSION75 +75 moreJewelry matching (libs/aglaea/jewelry-recommendation/src): a jewelry-engine
keyed on face shape, neck length, skin undertone, occasion and metal matching.
getMetalsForUndertone28getNecklaceLengthsForNeck28getEarringAdviceForFace28getLayeringRules28getInvestmentGuide28LAYERING_RULES28INVESTMENT_GUIDES28JEWELRY_DATABASE28recommendJewelry28getTopRecommendations28recommendByType28Textile-care science (libs/aglaea/laundry-integration/src, ~5.6K LOC): ISO
3758 care-symbols interpretation, evidence-based stain-treatment,
detergent-matching, load-optimization, hygiene-science and
seasonal-care.
FABRIC_CARE_DATABASE61buildCleaningSchedule61calculateLaundryStatus61generateSeasonalReminders61getAvailableFabricTypes61getCareInfo61getCleaningMethod61getMaxWears61lanLaundryLoads61recordWash61recordWear61ISO_3758_SYMBOLS79arseCareSymbol79getCareSymbol79 +38 moreLifestyle analysis for styling (libs/aglaea/lifestyle-profiler/src): an
activity-profiler, budget-profiler and style-personality assessment,
composed into a lifestyle-report.
rofileActivity27classifyOccupation27assessActivityLevel27identifyDressCodeNeeds27assessClimateNeeds27assessStylePersonality36blendArchetypes36STYLE_ARCHETYPE_DATABASE36rofileBudget43classifyBudgetTier43calculatePriceSensitivity43identifySplurgeCategories43scoreSustainabilityPriority43generateLifestyleReport52Complete-look generation (libs/aglaea/makeup-looks/src): a curated
look-generator and a look-customizer that adapts looks to the user.
MakeupLook8MakeupStep8LookCustomization8LookModification8LookGeneratorConfig8LookCustomizerPreferences8FaceArea8MakeupTechnique8MakeupOccasion8SkillLevel8MakeupDifficulty8ColorFamily8Intensity8SkinTone8 +13 moreMakeup matching (libs/aglaea/makeup-recommendation/src, ~4.2K LOC):
foundation-matching using CIE L*a*b* and Delta E over a 100+-shade
database, plus color-cosmetics compatibility and technique-guidance.
matchFoundation35matchConcealer35recommendPrimer35deltaE35FOUNDATION_SHADE_DATABASE35recommendLipstick44recommendBlush44recommendEyeshadow44recommendBronzer44recommendHighlighter44getTechniqueGuide53getTechniquesByCategory53getTechniqueByName53TECHNIQUE_DATABASE53Material-innovation tracking (libs/aglaea/material-trends/src): an
innovation-database (25+ real material innovations with readiness levels) and
a trend-tracker.
INNOVATION_DATABASE18getInnovation18listInnovationIds18getInnovationsByCategory18getInnovationsByReadiness18searchInnovations18rackMaterialTrends27redictAdoption27getInnovationTracker27getInnovationsByTimeline27Interaction memory and context (libs/aglaea/memory-system/src): the
memory-system module that stores and recalls user interaction context for
continuity across consultations.
xtractPreferencesFromText28createMemoryStore28createMemoryEntry28addToShortTerm28clearShortTerm28romoteToLongTerm28addToLongTerm28applyDecay28accessMemory28applyExtractedPreferences28searchMemories28getRelevantMemories28getLikedColors28getDislikedColors28 +4 moreMulti-modal input processing (libs/aglaea/multi-modal-input/src): the
multi-modal-input module handling voice, image and text input.
createTextInput24createImageInput24createVoiceInput24classifyTextIntents24xtractTextEntities24analyzeTextSentiment24rocessTextInput24xtractImageEntities24describeImage24classifyImageType24rocessImageInput24rocessVoiceInput24determineFusionStrategy24fuseInputs24 +1 moreNail health and style analysis (libs/aglaea/nail-analysis/src): a
nail-shape-classifier, nail-health, nail-care, composed into a
nail-analysis-report.
NAIL_SHAPES30classifyNailShape33classifyNailShapeFull33recommendOptimalShape33analyzeShapeToFingerProportion33analyzeNailHealth41assessNailBed41analyzeNailColor41detectRidging41assessBrittleness41assessCuticleCondition41detectNailDamage41analyzeGrowthPattern41assessLunula41 +4 moreNail-care intelligence (libs/aglaea/nail-care/src): a nail-care-routine,
nail-color-recs and a nail-art-guide.
NailCondition8NailConcern8PolishType8NailFinish8Season8Occasion8SeasonalType8SkillLevel8NailArtCategory8NailCareStep8NailCareRoutine8NailHealth8NailColorRecommendation8NailArtTool8 +9 moreContext-aware occasion styling (libs/aglaea/occasion-engine/src): expert
event-styling guidance for 20+ event types and a travel-packing algorithm.
EVENT_STYLING_DATABASE37getAllEventTypes37getCulturalNotes37getDefaultDressCode37getDefaultFormality37getEventTimeline37lanEventStyling37PACKING_TEMPLATES48calculateWeight48createTravelCapsule48generatePackingList48getAllPackingTemplateTypes48getPackingTemplate48AI outfit generation (libs/aglaea/outfit-recommendation/src): a
context-recommender (wardrobe filtering), look-assembler,
mix-match-optimizer and an explanation-engine for scored, explained outfits.
applyPreferences25filterByOccasion25filterByWeather25recommendOutfit25assembleLook33nsureCompleteLook33selectAccessories33selectBottoms33selectOuterwear33selectShoes33calculateColorHarmony43calculateNovelty43calculateStyleCoherence43optimizeMixMatch43 +5 moreOutfit sharing (libs/aglaea/outfit-sharing/src): post creation,
platform-specific formatting, share-analytics tracking and an outfit-tagging
system.
ALL_TAGS31PLATFORM_CONFIGS31aggregateAnalytics31calculateEngagementRate31calculateOutfitCost31createCustomTag31createOutfitPost31formatForPlatform31generateHashtags31getPlatformConfig31getTagsByCategory31getTrendingTags31isMediaTypeSupported31isValidTagLabel31 +3 moreAI personal shopping (libs/aglaea/personal-shopper-ai/src): a
SessionManager, intent-classifier, style-advisor and response-generator.
classifyIntent22xtractEntities22INTENT_PATTERNS22generateResponse25generateStyleTips25RESPONSE_TEMPLATES25SessionManager28adviseForEvent31adviseForSeason31adviseForBodyShape31suggestWardrobeImprovements31EVENT_STYLING_DATABASE31The preference ML pipeline (libs/aglaea/preference-learning/src):
explicit-capture, implicit-detection, a TasteGraph, a
collaborative-filter, cold-start handling and feedback-loops.
DEFAULT_PREFERENCE_CONFIG23analyzeDwellTime26analyzeSwipePatterns26analyzeSavePatterns26analyzeClickThrough26xtractImplicitPreferences26rocessRating35rocessQuizResponse35rocessFeedback35TasteGraph38rackFeedbackLoop41analyzeFeedbackEffectiveness41adjustWeights41findSimilarProfiles48 +4 moreProduct similarity and dupe-finding (libs/aglaea/product-matching/src): a
skin-profile-matcher (scoring products against skin
type/concerns/sensitivities/ allergies) and a dupe-finder.
scoreProductForSkin28matchProductsToSkin28SKIN_TYPE_INGREDIENT_PREFERENCES28CONCERN_TARGETING_INGREDIENTS28COMEDOGENIC_INGREDIENTS28findDupes37calculateIngredientOverlap37getFunctionalFamily37areFunctionallyEquivalent37FUNCTIONAL_EQUIVALENTS37The retailer integration layer (libs/aglaea/retailer-api/src): a retailer
adapter pattern with product search, price monitoring, affiliate-link generation
and inventory status.
AFFILIATE_COMMISSION_RATES31RETAILER_CONFIGS31analyzePriceHistory31buildSearchResult31detectPriceChange31filterProducts31findRetailersForSearch31generateAffiliateLink31getActiveRetailers31getAllSupportedCategories31getRetailerConfig31getRetailersByPriceSegment31isPriceGoodDeal31normalizeProducts31Scarf/wrap styling (libs/aglaea/scarf-styling/src, ~4.3K LOC): 30+
tying-techniques, a scarf-database (25+ types), fabric-pairing,
color-coordination and scarf-care, composed by a scarf-engine.
getFabricAdvice43TYING_TECHNIQUES_DATABASE43recommendScarfStyle43getTopScarfStyles43getStylesByCategory43SCARF_DATABASE52SCARF_DATABASE_COUNT52getScarvesByShape52getScarvesByMaterial52getScarvesBySeason52getScarvesByFormality52getScarvesByPriceRange52getMostVersatileScarves52findBestScarf52 +28 moreFootwear matching (libs/aglaea/shoe-recommendation/src): a shoe-engine
covering occasion, outfit formality, body type, foot concerns, climate and heel
guidance.
getHeelHeightsForOccasion22getFootConcernAdvice22SHOE_DATABASE22recommendShoes22getTopShoes22recommendByHeelHeight22Product discovery and comparison (libs/aglaea/shopping-assistant/src):
product-search, a comparison-engine, deal-detector, budget-optimizer and
purchase-advisor.
searchProducts26filterByProfile26scoreRelevance26suggestSearchRefinements26compareProducts34BRAND_QUALITY_TIERS34scorePriceValue34scoreVersatility34detectDeal42createPriceAlert42checkPriceAlerts42identifySeasonalSalePattern42SEASONAL_SALE_CALENDAR42createBudgetPlan51 +6 moreA premium concierge service (libs/aglaea/shopping-concierge/src): the
shopping-concierge module orchestrating high-touch styling/sourcing requests.
getMissionTemplates25createMissionFromTemplate25createCustomMission25addTargetItem25updateMissionStatus25createGuidedSearch25advanceSearchStep25addSearchFilter25addSearchResults25rankSearchResults25getCurrentStep25isSearchComplete25createPurchaseJourney25buildComparisonMatrix25 +6 moreThe flagship computer-vision skin engine (libs/aglaea/skin-analysis/src, 49
files, ~10.4K LOC). Biomarker detectors span acne, pores, wrinkles (forehead,
glabellar, crow's-feet, nasolabial, marionette, neck), pigmentation (melasma,
sun-spot, freckle, post-inflammatory, hypopigmentation), redness/rosacea/
inflammation, hydration/barrier, oiliness, texture, undertone, Fitzpatrick and
UV damage — over the preprocessing pipeline (SkinImagePreprocessor,
face-detection, segmentation, lighting, quality-validation) and a
temporal layer (progress-comparison, significance-testing,
milestone-detection).
SkinImagePreprocessor67getPixel67setPixel67createImageData67convertToGrayscale67resizeImage67cropToRegion67analyzeLighting78normalizeLighting78correctWhiteBalance78computeHistogram78qualizeHistogram78segmentSkinRegions87isSkinPixel87 +103 morePersonalized skincare regimens (libs/aglaea/skincare-routine/src) with real
dermatological knowledge: a routine-builder (product layering/ingredient
interactions), concern-recommendations and seasonal-adaptation.
AM_LAYERING_ORDER33buildEveningRoutine33buildMorningRoutine33buildWeeklySchedule33INGREDIENT_CONFLICTS33PM_LAYERING_ORDER33PRODUCT_LAYERING_ORDER33sequenceProducts33buildMultiConcernRoutine45CONCERN_INGREDIENT_MAP45getRoutineForConcern45rioritizeConcerns45adaptForClimate53adaptRoutineForSeason53 +2 moreIoT/wearable closet ecosystem (libs/aglaea/smart-device/src): rfid-tracking
of garments, environment-monitor (textile science), body-composition,
wearable-integration and mirror-lighting.
CAPABILITY_DEFINITIONS43buildClosetStatus43calculateBMI43detectMissingItems43getDeviceCapabilities43getRecommendedLighting43interpretBodyComposition43rocessClosetEnvironment43rocessRfidEvents43rocessWearableData43BLE_ZONE_MAPPING60DEFAULT_WEAR_THRESHOLDS60EPC_STANDARD60calculateWearFrequency60 +26 moreSmart-mirror integration (libs/aglaea/smart-mirror/src, ~4.4K LOC): a
mirror-protocol with session/capability negotiation, AR-overlay generation,
hardware-profiles, a lighting-engine, an interaction-engine and a
widget-system.
createMirrorSession39getMirrorCapabilities39getAvailableCapabilities39generateAROverlay39activateFeature39ndSession39getAvailableFeatures39PROTOCOL_VERSION39SUPPORTED_CAPABILITIES39MIRROR_FEATURE_DATABASE39HARDWARE_PROFILES_DATABASE53assessHardwareCapabilities53getMinimumRequirements53getKnownFeatures53 +41 moreCross-domain knowledge integration (libs/aglaea/sophia-integration/src, ~5K
LOC): query-routing of style Q&A over supplied knowledge entries, a
citation-engine, knowledge-domains mapping and research-enhancement of
recommendations. This is the seam designed to front a Sophia knowledge base —
self-contained, not an actually-wired cross-domain edge.
DOMAIN_REGISTRY44buildKnowledgeResult44deduplicateCitations44detectDomain44detectIntent44nhanceWithResearch44formatCitation44getAllDomains44getDomainInfo44rankCitations44routeQuery44searchKnowledgeBase44validateCitation44KNOWLEDGE_DOMAIN_REGISTRY64 +49 moreAI style coaching and education (libs/aglaea/style-coaching/src): a
coaching-plan builder over a lesson-database.
getAllLessons23getLessonById23getLessonsByCategory23getLessonsByDifficulty23getBeginnerLessons23getNextLessons23searchLessons23getAllChallenges34getChallengeById34getChallengesByDifficulty34getChallengesForLesson34generateCoachingPlan34advanceWeek34completeLessonInPlan34 +8 moreSocial style communities (libs/aglaea/style-communities/src): community/
membership management, challenges, content moderation and trending detection.
CHALLENGE_THEMES36COMMUNITY_TYPE_REGISTRY36autoModeratePost36calculateReputation36calculateSpamScore36canEnterChallenge36canPerformAction36computeCommunityStats36containsProfanity36createChallenge36createCommunity36createMember36detectTrending36findRelatedCommunities36 +7 morePersonal-style change tracking over time (libs/aglaea/style-evolution/src): an
evolution-tracker (phases/milestones), growth-metrics, and an
evolution-report with goal setting.
calculateExperimentalLevel31detectStyleMilestones31rackStyleEvolution31calculateStyleGrowthMetrics38setStyleGoals38generateEvolutionReport41Fashion-history intelligence (libs/aglaea/style-history/src): a
decade-database, era-analyzer, revival-detector (nostalgia/cyclical-trend
detection) and a style-history-report.
DECADE_PROFILES21getAllDesigners21getAllFashionIcons21getDecadeForYear21getDecadesChronological21searchElement21ELEMENT_HISTORY31identifyEraReferences31raceStyleDNA31REVIVAL_CYCLE_DATABASE34calculateAllNostalgiaIndices34calculateNostalgiaIndex34detectCyclicalTrends34redictRevivals34 +1 moreThe fashion style vocabulary (libs/aglaea/style-taxonomy/src):
attribute-detection, an archetype-classifier and an occasion-classifier
for garment feature classification and style-archetype analysis.
ATTRIBUTE_KEYWORD_DATABASE38classifyGarmentFeatures38detectColor38detectFabric38detectFashionAttributes38detectPattern38detectSilhouette38ARCHETYPE_DATABASE49blendArchetypes49classifyStyleArchetype49scoreArchetypeMatch49OCCASION_DATABASE57classifyOccasion57getAppropriateDressCode57 +2 moreFabric-level sustainability scoring (libs/aglaea/sustainability-scoring/src):
LCA-based fabric-scoring (fiber lifecycle data) and supply-chain assessment.
scoreFabricSustainability19compareFiberSustainability19rankFibersBySustainability19listCertifications19listAvailableFibers19assessSupplyChain27compareSupplyChains27Eco-fashion intelligence (libs/aglaea/sustainable-fashion/src): an
impact-calculator, a certification-verifier, circular-economy features and
a sustainability-report.
FABRIC_IMPACT_DATABASE27calculateGarmentImpact27calculateWardrobeFootprint27compareImpact27gradeFromScore27lookupFabric27suggestLowerImpactAlternative27CERTIFICATION_DATABASE38detectGreenwashing38getCertificationRequirements38scoreBrandSustainability38verifyCertification38UPCYCLING_IDEAS_DATABASE47analyzeRepairVsReplace47 +5 moreTrend detection and lifecycle modeling (libs/aglaea/trend-forecasting/src): a
social-media-analyzer, runway-analyzer, trend-aggregator,
lifecycle-model and a personalized-filter.
AGE_TREND_AFFINITY35BUDGET_TIER_KEYWORDS35CLIMATE_FABRIC_SUITABILITY35CONTENT_TYPE_FACTORS35DEFAULT_TREND_CONFIG35ENGAGEMENT_WEIGHTS35FASHION_WEEK_MONTHS35LIFECYCLE_THRESHOLDS35PLATFORM_VIRAL_MULTIPLIER35PLATFORM_WEIGHTS35RUNWAY_TO_RETAIL_LAG35SEASONALITY_MONTHS35TIPPING_POINT_PERCENT35TREND_CATEGORY_KEYWORDS35 +33 moreCross-module profile aggregation (libs/aglaea/unified-profile/src): a
profile-aggregator, cross-analysis insights, a recommendation-router and a
profile-sync manager.
aggregateProfiles34assessCompleteness34generateCrossAnalysisInsights37rioritizeRecommendations40routeRecommendations40checkSyncStatus43generateRefreshPlan43Accessory virtual try-on (libs/aglaea/virtual-tryon-accessories/src, ~5.4K
LOC): an accessory-renderer with per-category overlays (jewelry, eyewear, hat,
bag), material-rendering and scale-proportion.
generateAccessoryOverlay44generateEyewearOverlay44getSupportedAccessoryTypes44ACCESSORY_ANCHOR_DATABASE44PBR_MATERIAL_DATABASE52getPBRMaterial52getPBRMaterialByKey52listPBRMaterials52listPBRMaterialsByCategory52generateGemstoneSparkle52haltonSequence52blendMaterials52blendHexColors52computeFresnelF052 +48 moreGarment virtual try-on (libs/aglaea/virtual-tryon-fashion/src): body-mapping
(mesh) and garment-visualization producing overlay/drape/fit render
instructions.
xtractBodyMesh29scaleToGarment29generateSegmentContour29stimateFromHeight29COCO_KEYPOINTS29BODY_SEGMENT_DEFINITIONS29generateGarmentOverlay39calculateDrapeSimulation39generateFitHeatmap39generateFitVisualization39generateRenderInstructions39FABRIC_PROPERTIES39Hairstyle virtual try-on (libs/aglaea/virtual-tryon-hair/src):
hair-color-viz and hair-style-viz producing color/style render parameters.
generateHairColorSpec28calculateColorBlend28HAIR_COLOR_DATABASE28generateHairStyleSpec35getRecommendedStyles35getStyleDisplayName35HAIRSTYLE_RENDER_DATABASE35Makeup virtual try-on (libs/aglaea/virtual-tryon-makeup/src): a face-mesh
generator and a makeup-renderer producing layered makeup render specs.
generateFaceMesh24getRegion24getCheekApple24getCupidsBow24LANDMARK_INDICES24generateMakeupRenderSpec33generateFullRenderSpec33MAKEUP_COLOR_DATABASE33COLOR_ADJUSTMENT_RULES33Nail-art virtual try-on (libs/aglaea/virtual-tryon-nails/src, ~5.4K LOC):
nail-shape-geometry, finish-rendering, a nail-art-renderer,
hand-detection and color-accuracy.
generateNailRenderSpec46getAvailableArtDesigns46getAvailableShapes46getAvailableFinishes46FINISH_RENDER_PARAMS46NAIL_ART_DATABASE46generateNailShapeContour58getAllShapeMetadata58recommendedExtensionLength58valuateCubicBezier58sampleBezier58sampleEllipticalArc58olygonArea58generateCuticleLine58 +53 moreThe digital wardrobe (libs/aglaea/wardrobe-management/src): digitization,
organization, optimization (gap analysis) and analytics.
Horological recommendation (libs/aglaea/watch-recommendation/src, ~5.2K LOC):
a watch-database (30+ real watches), movement-guide, brand-heritage,
investment-analysis, wrist-fitting and watch-care, composed by a
watch-engine.
classifyWrist41getCaseSizeAdvice41MOVEMENT_GUIDE41WATCH_STYLE_DATABASE41recommendWatch41getTopWatches41getMovementGuide41WATCH_PROFILE_DATABASE53getWatchById53getWatchesByBrand53getWatchesByTier53getWatchesByPriceRange53getWatchesByComplication53getWatchesByMovement53 +30 moreWeather-aware styling (libs/aglaea/weather-service/src, ~3.7K LOC): thermal
comfort modeling (PMV/PPD), wind chill, heat index and WBGT in
thermal-calculations, plus a layering-system, precipitation-gear,
uv-protection, air-quality and an outfit-planner.
TEMPERATURE_RANGES50calculateFeelsLike50calculateHeatIndex50calculateWindChill50celsiusToFahrenheit50fahrenheitToCelsius50generateClothingAdvice50generateForecastAdvice50getTemperatureRange50normalizeTemperature50normalizeWeatherData50calculateApparentTemperature68calculateHeatIndexDetailed68calculatePPD68 +23 moreHolistic wellness–beauty connections (libs/aglaea/wellness-beauty/src):
nutrition-beauty and lifestyle-beauty evidence-based guidance.
BeautyArea8ImpactLevel8StressLevel8NutritionBeautyLink8LifestyleFactors8LifestyleBeautyImpact8SleepBeautyGuide8StressBeautyGuide8ExerciseBeautyGuide8getNutrientBeautyLinks20suggestNutritionForConcern20NUTRITION_BEAUTY_DATABASE20assessLifestyleImpact26AGLAEA_STUDY_ADAPTER_CONTRACT_VERSION1AGLAEA_STUDY_CAPABILITIES1createAglaeaStudyAdapter5AglaeaStudyAdapter5EraAnalysisResult5FabricKnowledgeResult5RegionalDressResult5infra (2)#
The unified TypeScript client for external consumers (libs/aglaea/sdk/src):
AglaeaClient over an AglaeaHttpClient, plus AglaeaWebSocket, auth
providers (ApiKeyAuthProvider/TokenAuthProvider), RetryHandler,
InterceptorManager, BatchProcessor, FileUploader and the AglaeaAPIError
type.
AglaeaHttpClient41AglaeaAPIError41generateRequestId41resetRequestCounter41buildUrl41ApiKeyAuthProvider51TokenAuthProvider51createAuthInterceptor51InterceptorManager54createLoggingInterceptor54createTimingInterceptor54RetryHandler61createRetryHandler61withRetry61 +12 moreSelf-contained test utilities for the domain (libs/aglaea/testing/src): mock
factories, fixtures, mock-images, anonymization, integration helpers, plus a
BenchmarkRunner, ChaosMonkey, SnapshotManager and TestContext.
SeasonalSubtype10Undertone10SkinType10BodyType10HairType10HairTexture10HairDensity10HairPorosity10WardrobeCategory10TrendLifecycle10MockProfile10MockSkinAnalysis10MockBodyMeasurements10MockHairAnalysis10 +58 more