# the-potential-dropout/genzineers-fashion-tool architecture

> Architecture diagram of the GitHub repository the-potential-dropout/genzineers-fashion-tool, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/the-potential-dropout/genzineers-fashion-tool
- Repository: https://github.com/the-potential-dropout/genzineers-fashion-tool

## Overview

Genzineers Fashion Tool is a fashion-design workbench for drafting garments and accessories, fitting them to a body, previewing cloth in 3D, and preparing manufacturing outputs. The main workflow is to choose a template, customize its design and materials, fit and simulate it, then inspect patterns and generate production information. The README also documents embroidery and machine-code output, AI-assisted control, and CLI/MCP interfaces. Relationships below use the supplied excerpts, SOURCE INDEX references, and README; unsampled implementation details are not inferred.

Main entry points: [`src/main.js`](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/main.js) (App shell), [`src/sim/cloth.js`](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/sim/cloth.js) (Cloth simulation), [`src/app/studio.js`](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/app/studio.js) (Design studio), [`src/core/actions.js`](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/actions.js) (Design actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Design and authoring"]
  node_main["App shell<br/>[main.js]"]
  node_studio["Design studio<br/>[studio.js]"]
  node_pattern_view["Pattern canvas<br/>[pattern.js]"]
  node_actions["Design actions<br/>[actions.js]"]
end

subgraph group_domain["Fashion domain"]
  node_templates["Garment templates<br/>[templates.js]"]
  node_drafting["Parametric drafting<br/>[blocks.js]"]
  node_project["Project model<br/>[project.js]"]
  node_fabrics["Fabric library<br/>[fabrics.js]"]
  node_assembly["Assembly methods<br/>[assembly.js]"]
  node_color["Color and print<br/>[color.js]"]
  node_trims["Trims catalog<br/>[trims.js]"]
  node_specialty["Specialty designs"]
end

subgraph group_preview["Fit and preview"]
  node_sizes["Sizing and grading<br/>[sizes.js]"]
  node_mannequins["Body mannequins<br/>[mannequins.js]"]
  node_avatar["Avatar model<br/>[avatar.js]"]
  node_cloth["Cloth simulation<br/>[cloth.js]"]
  node_viewer["3D viewer<br/>[viewer.js]"]
end

subgraph group_production["Manufacturing"]
  node_production["Tech pack and marker<br/>[production.js]"]
  node_embroidery["Embroidery artwork<br/>[embroidery.js]"]
  node_machine["Machine output<br/>[machine.js]"]
end

subgraph group_interfaces["Application interfaces"]
  node_ai["AI assistant<br/>[assistant.js]"]
  node_providers["AI providers<br/>[providers.js]"]
  node_cli["CLI<br/>[gft.mjs]"]
  node_mcp["MCP server<br/>[index.js]"]
end

node_user(("Designer"))

node_user -->|"designs in"| node_main
node_main -->|"opens"| node_studio
node_main -->|"opens"| node_pattern_view
node_main -->|"dispatches"| node_actions
node_studio -->|"requests outputs"| node_production
node_studio -->|"uses catalog"| node_fabrics
node_studio -->|"uses presets"| node_templates
node_studio -->|"uses sizing"| node_sizes
node_pattern_view -->|"uses methods"| node_assembly
node_pattern_view -->|"requests outputs"| node_production
node_actions -->|"updates"| node_project
node_templates -->|"builds with"| node_drafting
node_drafting -->|"uses methods"| node_assembly
node_cloth -->|"resolves properties"| node_fabrics
node_cloth -->|"builds body"| node_avatar
node_cloth -->|"gets body"| node_sizes
node_cloth -->|"uses body field"| node_mannequins
node_main -->|"uses simulation"| node_cloth
node_main -->|"renders preview"| node_viewer
node_viewer -->|"renders simulation"| node_cloth
node_viewer -->|"resolves appearance"| node_fabrics
node_production -->|"calculates material use"| node_fabrics
node_production -->|"uses seam data"| node_assembly
node_main -.->|"offers artwork"| node_embroidery
node_main -.->|"offers machine output"| node_machine
node_user -.->|"requests assistance"| node_ai
node_ai -->|"issues actions"| node_actions
node_ai -.->|"uses providers"| node_providers
node_user -->|"uses commands"| node_cli
node_cli -->|"issues actions"| node_actions
node_user -->|"connects tools"| node_mcp
node_mcp -->|"issues actions"| node_actions
node_main -.->|"uses design rules"| node_color
node_main -.->|"uses catalogs"| node_trims
node_main -.->|"offers specialties"| node_specialty

click node_main "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/main.js"
click node_studio "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/app/studio.js"
click node_pattern_view "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/app/pattern.js"
click node_actions "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/actions.js"
click node_templates "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/templates.js"
click node_drafting "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/blocks.js"
click node_project "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/project.js"
click node_fabrics "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/fabrics.js"
click node_assembly "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/assembly.js"
click node_color "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/color.js"
click node_trims "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/trims.js"
click node_specialty "https://github.com/the-potential-dropout/genzineers-fashion-tool/tree/main/src/core"
click node_sizes "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/sizes.js"
click node_mannequins "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/sim/mannequins.js"
click node_avatar "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/sim/avatar.js"
click node_cloth "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/sim/cloth.js"
click node_viewer "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/render/viewer.js"
click node_production "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/make/production.js"
click node_embroidery "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/make/embroidery.js"
click node_machine "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/make/machine.js"
click node_ai "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/ai/assistant.js"
click node_providers "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/ai/providers.js"
click node_cli "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/cli/gft.mjs"
click node_mcp "https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/mcp-server/index.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_studio,node_pattern_view,node_actions toneBlue
class node_templates,node_drafting,node_project,node_fabrics,node_assembly,node_color,node_trims,node_specialty toneAmber
class node_sizes,node_mannequins,node_avatar,node_cloth,node_viewer toneMint
class node_production,node_embroidery,node_machine toneRose
class node_ai,node_providers,node_cli,node_mcp,node_user toneIndigo
```

## Components

### Design and authoring

- [App shell](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/main.js): `src/main.js`
- [Design studio](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/app/studio.js): `src/app/studio.js`
- [Pattern canvas](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/app/pattern.js): `src/app/pattern.js`
- [Design actions](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/actions.js): `src/core/actions.js`

### Fashion domain

- [Garment templates](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/templates.js): `src/core/templates.js`
- [Parametric drafting](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/blocks.js): `src/core/blocks.js`
- [Project model](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/project.js): `src/core/project.js`
- [Fabric library](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/fabrics.js): `src/core/fabrics.js`
- [Assembly methods](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/assembly.js): `src/core/assembly.js`
- [Color and print](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/color.js): `src/core/color.js`
- [Trims catalog](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/trims.js): `src/core/trims.js`
- [Specialty designs](https://github.com/the-potential-dropout/genzineers-fashion-tool/tree/main/src/core): `src/core`

### Fit and preview

- [Sizing and grading](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/core/sizes.js): `src/core/sizes.js`
- [Body mannequins](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/sim/mannequins.js): `src/sim/mannequins.js`
- [Avatar model](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/sim/avatar.js): `src/sim/avatar.js`
- [Cloth simulation](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/sim/cloth.js): `src/sim/cloth.js`
- [3D viewer](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/render/viewer.js): `src/render/viewer.js`

### Manufacturing

- [Tech pack and marker](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/make/production.js): `src/make/production.js`
- [Embroidery artwork](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/make/embroidery.js): `src/make/embroidery.js`
- [Machine output](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/make/machine.js): `src/make/machine.js`

### Application interfaces

- [AI assistant](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/ai/assistant.js): `src/ai/assistant.js`
- [AI providers](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/src/ai/providers.js): `src/ai/providers.js`
- [CLI](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/cli/gft.mjs): `cli/gft.mjs`
- [MCP server](https://github.com/the-potential-dropout/genzineers-fashion-tool/blob/main/mcp-server/index.js): `mcp-server/index.js`

### Other components

- **Designer**

## Connections

- Designer → App shell: designs in
- App shell → Design studio: opens (evidence: `src/main.js`)
- App shell → Pattern canvas: opens (evidence: `src/main.js`)
- App shell → Design actions: dispatches (evidence: `src/main.js`)
- Design studio → Tech pack and marker: requests outputs (evidence: `src/app/studio.js`)
- Design studio → Fabric library: uses catalog (evidence: `src/app/studio.js`)
- Design studio → Garment templates: uses presets (evidence: `src/app/studio.js`)
- Design studio → Sizing and grading: uses sizing (evidence: `src/app/studio.js`)
- Pattern canvas → Assembly methods: uses methods (evidence: `src/app/pattern.js`)
- Pattern canvas → Tech pack and marker: requests outputs (evidence: `src/app/pattern.js`)
- Design actions → Project model: updates (evidence: `src/core/actions.js`)
- Garment templates → Parametric drafting: builds with (evidence: `src/core/templates.js`)
- Parametric drafting → Assembly methods: uses methods (evidence: `src/core/blocks.js`)
- Cloth simulation → Fabric library: resolves properties (evidence: `src/sim/cloth.js`)
- Cloth simulation → Avatar model: builds body (evidence: `src/sim/cloth.js`)
- Cloth simulation → Sizing and grading: gets body (evidence: `src/sim/cloth.js`)
- Cloth simulation → Body mannequins: uses body field (evidence: `src/sim/cloth.js`)
- App shell → Cloth simulation: uses simulation (evidence: `src/main.js`)
- App shell → 3D viewer: renders preview (evidence: `src/main.js`)
- 3D viewer → Cloth simulation: renders simulation (evidence: `src/render/viewer.js`)
- 3D viewer → Fabric library: resolves appearance (evidence: `src/render/viewer.js`)
- Tech pack and marker → Fabric library: calculates material use (evidence: `src/make/production.js`)
- Tech pack and marker → Assembly methods: uses seam data (evidence: `src/make/production.js`)
- App shell → Embroidery artwork: offers artwork (evidence: `src/main.js`)
- App shell → Machine output: offers machine output (evidence: `src/main.js`)
- Designer → AI assistant: requests assistance
- AI assistant → Design actions: issues actions (evidence: `src/ai/assistant.js`)
- AI assistant → AI providers: uses providers
- Designer → CLI: uses commands (evidence: `cli/gft.mjs`)
- CLI → Design actions: issues actions (evidence: `cli/gft.mjs`)
- Designer → MCP server: connects tools (evidence: `mcp-server/index.js`)
- MCP server → Design actions: issues actions (evidence: `mcp-server/index.js`)
- App shell → Color and print: uses design rules (evidence: `src/main.js`)
- App shell → Trims catalog: uses catalogs (evidence: `src/main.js`)
- App shell → Specialty designs: offers specialties (evidence: `src/main.js`)
