# xaviiromf/sdd-generator architecture

> Architecture diagram of the GitHub repository xaviiromf/sdd-generator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/xaviiromf/sdd-generator
- Repository: https://github.com/xaviiromf/sdd-generator

## Overview

SDD-Studio is a Spanish-language browser studio that turns an idea, structured requirements, project context, and configuration into a traceable 34-document development kit. Its principal workflow is requirements and context capture → configuration and design refinement → review → generated documents and ZIP export. It also supports local project/version management, JSON backup and import, and optional MCP inference. The source index and excerpts show the app’s draft, worker, and store wiring; some feature-to-engine connections below are documented by the README rather than sampled implementation.

Main entry points: [`src/store/editorStore.ts`](https://github.com/xaviiromf/sdd-generator/blob/main/src/store/editorStore.ts) (Editor state), [`src/store/projectLibraryStore.ts`](https://github.com/xaviiromf/sdd-generator/blob/main/src/store/projectLibraryStore.ts) (Project and version state), [`src/app/StudioLayout.tsx`](https://github.com/xaviiromf/sdd-generator/blob/main/src/app/StudioLayout.tsx) (Studio interface), [`src/components/requirements/RequirementsEditor.tsx`](https://github.com/xaviiromf/sdd-generator/blob/main/src/components/requirements/RequirementsEditor.tsx) (Idea and requirements)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Project definition"]
  node_studio["Studio interface<br/>[StudioLayout.tsx]"]
  node_idea["Idea and requirements"]
  node_context["Context interview"]
  node_projectmodel["Project definition"]
  node_editor["Editor state<br/>[editorStore.ts]"]
end

subgraph group_configure["Configuration and design"]
  node_configurator["Seven-phase configuration<br/>[Configurator.tsx]"]
  node_technologycatalog["Technology catalog<br/>[technologies.ts]"]
  node_aesthetics["Aesthetic studio"]
  node_profiles["Project profiles<br/>[profiles.ts]"]
  node_mcp["Optional MCP inference<br/>[mcpClient.ts]"]
end

subgraph group_generation["Kit generation"]
  node_generator["Generator worker"]
  node_compiler["Kit compiler<br/>[compiler.ts]"]
  node_kitcontext["Kit context<br/>[kitContext.ts]"]
  node_coverage["Traceability coverage<br/>[coverage.ts]"]
end

subgraph group_persistence["Local project management"]
  node_library["Project library<br/>[ProjectLibrary.tsx]"]
  node_librarydata["Project and version state"]
  node_storage[("Browser project storage<br/>[projectStorage.ts]")]
  node_draft[("Draft recovery<br/>[draftStorage.ts]")]
  node_backup["JSON backup import<br/>[projectImport.ts]"]
end

subgraph group_delivery["Review and delivery"]
  node_documents["Document viewer<br/>[DocumentCanvas.tsx]"]
  node_review["Preparation review"]
  node_export["ZIP and prompt export<br/>[ExportBar.tsx]"]
end

node_user(("Project author"))

node_user -->|"describes idea"| node_idea
node_user -->|"adds context"| node_context
node_idea -->|"edits requirements"| node_editor
node_context -->|"updates project"| node_editor
node_editor -->|"maintains definition"| node_projectmodel
node_user -->|"refines phases"| node_configurator
node_configurator -->|"offers choices"| node_technologycatalog
node_user -->|"customizes design"| node_aesthetics
node_aesthetics -->|"configures profile"| node_profiles
node_mcp -.->|"supplies optional inference"| node_editor
node_studio -->|"starts generation"| node_generator
node_generator -->|"compiles kit"| node_compiler
node_compiler -->|"uses kit context"| node_kitcontext
node_user -->|"reviews readiness"| node_review
node_review -->|"shows coverage"| node_coverage
node_user -->|"inspects documents"| node_documents
node_user -->|"copies or downloads"| node_export
node_user -->|"manages projects"| node_library
node_library -->|"updates library"| node_librarydata
node_librarydata -->|"reads and writes"| node_storage
node_studio -->|"restores and saves draft"| node_draft
node_user -->|"imports backup"| node_backup
node_librarydata -->|"validates import"| node_backup

click node_studio "https://github.com/xaviiromf/sdd-generator/blob/main/src/app/StudioLayout.tsx"
click node_idea "https://github.com/xaviiromf/sdd-generator/blob/main/src/components/requirements/RequirementsEditor.tsx"
click node_context "https://github.com/xaviiromf/sdd-generator/blob/main/src/components/requirements/ContextInterview.tsx"
click node_projectmodel "https://github.com/xaviiromf/sdd-generator/blob/main/src/domain/projectDefinition.ts"
click node_editor "https://github.com/xaviiromf/sdd-generator/blob/main/src/store/editorStore.ts"
click node_configurator "https://github.com/xaviiromf/sdd-generator/blob/main/src/components/configurator/Configurator.tsx"
click node_technologycatalog "https://github.com/xaviiromf/sdd-generator/blob/main/src/catalog/technologies.ts"
click node_aesthetics "https://github.com/xaviiromf/sdd-generator/blob/main/src/components/aesthetics/AestheticStudio.tsx"
click node_profiles "https://github.com/xaviiromf/sdd-generator/blob/main/src/domain/profiles.ts"
click node_mcp "https://github.com/xaviiromf/sdd-generator/blob/main/src/services/mcpClient.ts"
click node_generator "https://github.com/xaviiromf/sdd-generator/blob/main/src/workers/generator.worker.ts"
click node_compiler "https://github.com/xaviiromf/sdd-generator/blob/main/src/engine/compiler.ts"
click node_kitcontext "https://github.com/xaviiromf/sdd-generator/blob/main/src/engine/kitContext.ts"
click node_coverage "https://github.com/xaviiromf/sdd-generator/blob/main/src/engine/coverage.ts"
click node_documents "https://github.com/xaviiromf/sdd-generator/blob/main/src/components/documents/DocumentCanvas.tsx"
click node_review "https://github.com/xaviiromf/sdd-generator/blob/main/src/components/review/PreparationReview.tsx"
click node_export "https://github.com/xaviiromf/sdd-generator/blob/main/src/components/export/ExportBar.tsx"
click node_library "https://github.com/xaviiromf/sdd-generator/blob/main/src/components/projects/ProjectLibrary.tsx"
click node_librarydata "https://github.com/xaviiromf/sdd-generator/blob/main/src/store/projectLibraryStore.ts"
click node_storage "https://github.com/xaviiromf/sdd-generator/blob/main/src/services/projectStorage.ts"
click node_draft "https://github.com/xaviiromf/sdd-generator/blob/main/src/services/draftStorage.ts"
click node_backup "https://github.com/xaviiromf/sdd-generator/blob/main/src/services/projectImport.ts"

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_studio,node_idea,node_context,node_projectmodel,node_editor toneBlue
class node_configurator,node_technologycatalog,node_aesthetics,node_profiles,node_mcp toneAmber
class node_generator,node_compiler,node_kitcontext,node_coverage toneMint
class node_library,node_librarydata,node_storage,node_draft,node_backup toneRose
class node_documents,node_review,node_export,node_user toneIndigo
```

## Components

### Project definition

- [Studio interface](https://github.com/xaviiromf/sdd-generator/blob/main/src/app/StudioLayout.tsx): `src/app/StudioLayout.tsx`
- [Idea and requirements](https://github.com/xaviiromf/sdd-generator/blob/main/src/components/requirements/RequirementsEditor.tsx): `src/components/requirements/RequirementsEditor.tsx`
- [Context interview](https://github.com/xaviiromf/sdd-generator/blob/main/src/components/requirements/ContextInterview.tsx): `src/components/requirements/ContextInterview.tsx`
- [Project definition](https://github.com/xaviiromf/sdd-generator/blob/main/src/domain/projectDefinition.ts): `src/domain/projectDefinition.ts`
- [Editor state](https://github.com/xaviiromf/sdd-generator/blob/main/src/store/editorStore.ts): `src/store/editorStore.ts`

### Configuration and design

- [Seven-phase configuration](https://github.com/xaviiromf/sdd-generator/blob/main/src/components/configurator/Configurator.tsx): `src/components/configurator/Configurator.tsx`
- [Technology catalog](https://github.com/xaviiromf/sdd-generator/blob/main/src/catalog/technologies.ts): `src/catalog/technologies.ts`
- [Aesthetic studio](https://github.com/xaviiromf/sdd-generator/blob/main/src/components/aesthetics/AestheticStudio.tsx): `src/components/aesthetics/AestheticStudio.tsx`
- [Project profiles](https://github.com/xaviiromf/sdd-generator/blob/main/src/domain/profiles.ts): `src/domain/profiles.ts`
- [Optional MCP inference](https://github.com/xaviiromf/sdd-generator/blob/main/src/services/mcpClient.ts): `src/services/mcpClient.ts`

### Kit generation

- [Generator worker](https://github.com/xaviiromf/sdd-generator/blob/main/src/workers/generator.worker.ts): `src/workers/generator.worker.ts`
- [Kit compiler](https://github.com/xaviiromf/sdd-generator/blob/main/src/engine/compiler.ts): `src/engine/compiler.ts`
- [Kit context](https://github.com/xaviiromf/sdd-generator/blob/main/src/engine/kitContext.ts): `src/engine/kitContext.ts`
- [Traceability coverage](https://github.com/xaviiromf/sdd-generator/blob/main/src/engine/coverage.ts): `src/engine/coverage.ts`

### Local project management

- [Project library](https://github.com/xaviiromf/sdd-generator/blob/main/src/components/projects/ProjectLibrary.tsx): `src/components/projects/ProjectLibrary.tsx`
- [Project and version state](https://github.com/xaviiromf/sdd-generator/blob/main/src/store/projectLibraryStore.ts): `src/store/projectLibraryStore.ts`
- [Browser project storage](https://github.com/xaviiromf/sdd-generator/blob/main/src/services/projectStorage.ts): `src/services/projectStorage.ts`
- [Draft recovery](https://github.com/xaviiromf/sdd-generator/blob/main/src/services/draftStorage.ts): `src/services/draftStorage.ts`
- [JSON backup import](https://github.com/xaviiromf/sdd-generator/blob/main/src/services/projectImport.ts): `src/services/projectImport.ts`

### Review and delivery

- [Document viewer](https://github.com/xaviiromf/sdd-generator/blob/main/src/components/documents/DocumentCanvas.tsx): `src/components/documents/DocumentCanvas.tsx`
- [Preparation review](https://github.com/xaviiromf/sdd-generator/blob/main/src/components/review/PreparationReview.tsx): `src/components/review/PreparationReview.tsx`
- [ZIP and prompt export](https://github.com/xaviiromf/sdd-generator/blob/main/src/components/export/ExportBar.tsx): `src/components/export/ExportBar.tsx`

### Other components

- **Project author**

## Connections

- Project author → Idea and requirements: describes idea
- Project author → Context interview: adds context
- Idea and requirements → Editor state: edits requirements (evidence: `src/components/requirements/ContextInterview.tsx`)
- Context interview → Editor state: updates project (evidence: `src/components/requirements/ContextInterview.tsx`)
- Editor state → Project definition: maintains definition (evidence: `src/store/editorStore.ts`)
- Project author → Seven-phase configuration: refines phases
- Seven-phase configuration → Technology catalog: offers choices (evidence: `src/catalog/technologies.ts`)
- Project author → Aesthetic studio: customizes design
- Aesthetic studio → Project profiles: configures profile (evidence: `src/domain/profiles.ts`)
- Optional MCP inference → Editor state: supplies optional inference
- Studio interface → Generator worker: starts generation
- Generator worker → Kit compiler: compiles kit (evidence: `src/workers/generator.worker.ts`)
- Kit compiler → Kit context: uses kit context (evidence: `src/engine/kitContext.ts`)
- Project author → Preparation review: reviews readiness
- Preparation review → Traceability coverage: shows coverage (evidence: `src/components/review/PreparationReview.tsx`)
- Project author → Document viewer: inspects documents
- Project author → ZIP and prompt export: copies or downloads
- Project author → Project library: manages projects
- Project library → Project and version state: updates library (evidence: `src/store/projectLibraryStore.ts`)
- Project and version state → Browser project storage: reads and writes (evidence: `src/store/projectLibraryStore.ts`)
- Studio interface → Draft recovery: restores and saves draft (evidence: `src/app/App.tsx`)
- Project author → JSON backup import: imports backup
- Project and version state → JSON backup import: validates import (evidence: `src/store/projectLibraryStore.ts`)
