# navinray12/forgestudio-ai architecture

> Architecture diagram of the GitHub repository navinray12/forgestudio-ai, 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/navinray12/forgestudio-ai
- Repository: https://github.com/navinray12/forgestudio-ai

## Overview

ForgeStudio is a visual website-building and developer platform. A user chooses an AI, template, or blank-site starting point, edits a website in the editor, and can request AI design proposals that are previewed and explicitly applied; publishing and developer-workspace capabilities extend that workflow. Internally, the design pipeline coordinates planning, conversion, document validation, and writes. The tree shows additional data, collaboration, and runtime subsystems. Some frontend and backend wiring is documented only in the README, so edges for those links cite it; unsampled relationships are not inferred.

Main entry points: [`frontend/src/App.tsx`](https://github.com/navinray12/forgestudio-ai/blob/testing/frontend/src/App.tsx) (Studio editor), [`backend/src/modules/ai/design/pipeline.ts`](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/design/pipeline.ts) (Design pipeline), [`backend/src/modules/ai/assistant/assistant-orchestrator.service.ts`](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/assistant/assistant-orchestrator.service.ts) (AI assistant), [`backend/src/modules/data-platform/storage/storage.controller.ts`](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/data-platform/storage/storage.controller.ts) (Object storage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_creation["Website creation"]
  node_frontend["Studio editor<br/>[App.tsx]"]
  node_website["Website project"]
  node_templates["Template library"]
  node_publishing["Publishing"]
end

subgraph group_ai["AI design"]
  node_design["Design pipeline<br/>[pipeline.ts]"]
  node_planner["Design planners<br/>[claude-planner.ts]"]
  node_stitch["Stitch provider<br/>[stitch-provider.ts]"]
  node_converter["Native converter<br/>[converter.ts]"]
  node_assistant["AI assistant"]
  node_context["Context engine"]
end

subgraph group_platform["Developer platform"]
  node_database[("Forge database")]
  node_storage["Object storage"]
  node_collaboration["Live collaboration"]
  node_optimization["Optimization audit"]
end

subgraph group_runtime["Platform services"]
  node_runtime["Runtime services"]
  node_identity["Identity"]
end

node_user(("Website builder"))
node_external{{"AI providers"}}

node_user -->|"chooses and edits"| node_frontend
node_frontend -->|"creates website"| node_website
node_frontend -->|"selects template"| node_templates
node_frontend -->|"queues design"| node_design
node_design -->|"requests plan"| node_planner
node_design -->|"generates screens"| node_stitch
node_design -->|"converts output"| node_converter
node_design -->|"applies proposal"| node_website
node_external -.->|"provides designs"| node_stitch
node_frontend -->|"requests scoped edits"| node_assistant
node_assistant -.->|"assembles context"| node_context
node_user -->|"publishes site"| node_publishing
node_user -->|"uploads assets"| node_storage
node_storage -->|"records objects"| node_database
node_user -.->|"collaborates"| node_collaboration
node_user -.->|"audits project"| node_optimization
node_user -.->|"uses runtime features"| node_runtime
node_user -.->|"authenticates"| node_identity

click node_frontend "https://github.com/navinray12/forgestudio-ai/blob/testing/frontend/src/App.tsx"
click node_website "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/controllers/website.controller.ts"
click node_templates "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/controllers/template.controller.ts"
click node_publishing "https://github.com/navinray12/forgestudio-ai/blob/testing/frontend/src/features/publishing/services/publishingService.ts"
click node_design "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/design/pipeline.ts"
click node_planner "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/design/claude-planner.ts"
click node_stitch "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/design/stitch-provider.ts"
click node_converter "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/design/converter.ts"
click node_assistant "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/assistant/assistant-orchestrator.service.ts"
click node_context "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/context/contextEngine.service.ts"
click node_database "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/data-platform/database/forgeDatabase.service.ts"
click node_storage "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/data-platform/storage/storage.controller.ts"
click node_collaboration "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/collaboration/collaborationEngine.service.ts"
click node_optimization "https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/intelligence-platform/optimization/optimizationEngine.service.ts"
click node_runtime "https://github.com/navinray12/forgestudio-ai/tree/testing/backend/src/modules/runtime-platform"
click node_identity "https://github.com/navinray12/forgestudio-ai/tree/testing/backend/src/modules/identity"

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_frontend,node_website,node_templates,node_publishing toneBlue
class node_design,node_planner,node_stitch,node_converter,node_assistant,node_context toneAmber
class node_database,node_storage,node_collaboration,node_optimization toneMint
class node_runtime,node_identity toneRose
class node_user,node_external toneIndigo
```

## Components

### Website creation

- [Studio editor](https://github.com/navinray12/forgestudio-ai/blob/testing/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Website project](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/controllers/website.controller.ts): `backend/src/controllers/website.controller.ts`
- [Template library](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/controllers/template.controller.ts): `backend/src/controllers/template.controller.ts`
- [Publishing](https://github.com/navinray12/forgestudio-ai/blob/testing/frontend/src/features/publishing/services/publishingService.ts): `frontend/src/features/publishing/services/publishingService.ts`

### AI design

- [Design pipeline](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/design/pipeline.ts): `backend/src/modules/ai/design/pipeline.ts`
- [Design planners](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/design/claude-planner.ts): `backend/src/modules/ai/design/claude-planner.ts`
- [Stitch provider](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/design/stitch-provider.ts): `backend/src/modules/ai/design/stitch-provider.ts`
- [Native converter](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/design/converter.ts): `backend/src/modules/ai/design/converter.ts`
- [AI assistant](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/assistant/assistant-orchestrator.service.ts): `backend/src/modules/ai/assistant/assistant-orchestrator.service.ts`
- [Context engine](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/ai/context/contextEngine.service.ts): `backend/src/modules/ai/context/contextEngine.service.ts`

### Developer platform

- [Forge database](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/data-platform/database/forgeDatabase.service.ts): `backend/src/modules/data-platform/database/forgeDatabase.service.ts`
- [Object storage](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/data-platform/storage/storage.controller.ts): `backend/src/modules/data-platform/storage/storage.controller.ts`
- [Live collaboration](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/collaboration/collaborationEngine.service.ts): `backend/src/modules/collaboration/collaborationEngine.service.ts`
- [Optimization audit](https://github.com/navinray12/forgestudio-ai/blob/testing/backend/src/modules/intelligence-platform/optimization/optimizationEngine.service.ts): `backend/src/modules/intelligence-platform/optimization/optimizationEngine.service.ts`

### Platform services

- [Runtime services](https://github.com/navinray12/forgestudio-ai/tree/testing/backend/src/modules/runtime-platform): `backend/src/modules/runtime-platform`
- [Identity](https://github.com/navinray12/forgestudio-ai/tree/testing/backend/src/modules/identity): `backend/src/modules/identity`

### Other components

- **Website builder**
- **AI providers**

## Connections

- Website builder → Studio editor: chooses and edits (evidence: `README.md`)
- Studio editor → Website project: creates website (evidence: `README.md`)
- Studio editor → Template library: selects template (evidence: `README.md`)
- Studio editor → Design pipeline: queues design (evidence: `README.md`)
- Design pipeline → Design planners: requests plan (evidence: `backend/src/modules/ai/design/pipeline.ts`)
- Design pipeline → Stitch provider: generates screens (evidence: `backend/src/modules/ai/design/pipeline.ts`)
- Design pipeline → Native converter: converts output (evidence: `backend/src/modules/ai/design/pipeline.ts`)
- Design pipeline → Website project: applies proposal (evidence: `README.md`)
- AI providers → Stitch provider: provides designs (evidence: `README.md`)
- Studio editor → AI assistant: requests scoped edits (evidence: `README.md`)
- AI assistant → Context engine: assembles context
- Website builder → Publishing: publishes site (evidence: `README.md`)
- Website builder → Object storage: uploads assets
- Object storage → Forge database: records objects (evidence: `backend/src/modules/data-platform/storage/storage.controller.ts`)
- Website builder → Live collaboration: collaborates
- Website builder → Optimization audit: audits project
- Website builder → Runtime services: uses runtime features
- Website builder → Identity: authenticates
