# senadsalkanovic/umlith architecture

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

- Interactive diagram: https://gitdiagram.com/senadsalkanovic/umlith
- Repository: https://github.com/senadsalkanovic/umlith

## Overview

UMLith is a local visual workspace for designing architecture, ER models, interfaces, and optional workflows, then comparing intended design with analyzed source. The main user flow is to edit a project, analyze or synchronize its saved source, review proposed changes, and—if using an agent—review a candidate before guarded application. The graph highlights those domain stages and the server’s analysis, persistence, and recovery layers. Several UI and server subsystems are documented but unsampled; those links are included only where the README or source index supports them.

Main entry points: [`src/App.tsx`](https://github.com/senadsalkanovic/umlith/blob/main/src/App.tsx) (Workspace UI), [`server/main.ts`](https://github.com/senadsalkanovic/umlith/blob/main/server/main.ts) (HTTP Service), [`server/jobs.ts`](https://github.com/senadsalkanovic/umlith/blob/main/server/jobs.ts) (Agent Jobs), [`src/api.ts`](https://github.com/senadsalkanovic/umlith/blob/main/src/api.ts) (Client API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["Design Workspace"]
  node_workspace["Workspace UI<br/>[App.tsx]"]
  node_architecture["Architecture Editor"]
  node_er["ER Editor<br/>[ErEditor.tsx]"]
  node_functions["Workflow Editors<br/>[WorkflowEditor.tsx]"]
  node_sharedmodel["Domain Model<br/>[model.ts]"]
end

subgraph group_analysis["Source Analysis"]
  node_analysisclient["Analysis Client<br/>[analysis-client.ts]"]
  node_sync["Source Synchronization<br/>[sync.ts]"]
  node_worker["Analysis Worker<br/>[worker.ts]"]
  node_analyzer["Source Analyzer<br/>[analyzer.ts]"]
end

subgraph group_review["Review and Sync"]
  node_importreview["Import Review<br/>[ImportReview.tsx]"]
  node_reviewui["Review Panel<br/>[ReviewPanel.tsx]"]
  node_quality["Quality Report<br/>[QualityReport.tsx]"]
  node_proposals["Proposal Service<br/>[proposals.ts]"]
  node_reviewservice["Candidate Review<br/>[review.ts]"]
end

subgraph group_agent["Agent Workflow"]
  node_agentui["Agent Workspace<br/>[AgentWorkspace.tsx]"]
  node_jobs["Agent Jobs<br/>[jobs.ts]"]
  node_sandbox["Isolation Sandbox<br/>[sandbox.ts]"]
  node_application["Guarded Apply<br/>[application.ts]"]
  node_codingagent["Codex Agent<br/>[codex.ts]"]
end

subgraph group_runtime["Local Service"]
  node_clientapi["Client API<br/>[api.ts]"]
  node_server["HTTP Service<br/>[main.ts]"]
  node_projectstore[("Project Store<br/>[store.ts]")]
  node_projectfiles["Project Files<br/>[files.ts]"]
end

node_human(("Human"))

node_human -->|"edits project"| node_workspace
node_workspace -->|"opens editor"| node_architecture
node_workspace -->|"opens editor"| node_er
node_workspace -->|"opens editor"| node_functions
node_architecture -->|"edits graph"| node_sharedmodel
node_er -->|"edits graph"| node_sharedmodel
node_functions -->|"edits graph"| node_sharedmodel
node_workspace -->|"requests data"| node_clientapi
node_clientapi -->|"sends requests"| node_server
node_server -->|"reads and writes"| node_projectstore
node_server -->|"accesses files"| node_projectfiles
node_workspace -->|"starts analysis"| node_analysisclient
node_analysisclient -->|"requests analysis"| node_clientapi
node_server -->|"dispatches sync"| node_sync
node_sync -->|"requests analysis"| node_worker
node_worker -->|"runs analysis"| node_analyzer
node_analyzer -->|"reads source"| node_projectfiles
node_workspace -->|"reviews imports"| node_importreview
node_workspace -->|"reviews changes"| node_reviewui
node_reviewui -->|"renders report"| node_quality
node_server -->|"routes proposals"| node_proposals
node_server -->|"routes review"| node_reviewservice
node_human -->|"requests handoff"| node_agentui
node_agentui -->|"requests jobs"| node_clientapi
node_server -->|"routes job actions"| node_jobs
node_jobs -->|"isolates task"| node_sandbox
node_jobs -->|"launches agent"| node_codingagent
node_jobs -->|"validates candidate"| node_reviewservice
node_human -->|"approves changes"| node_reviewui
node_server -->|"routes application"| node_application
node_application -->|"applies changes"| node_projectfiles
node_application -->|"checks project"| node_projectstore

click node_workspace "https://github.com/senadsalkanovic/umlith/blob/main/src/App.tsx"
click node_architecture "https://github.com/senadsalkanovic/umlith/blob/main/src/components/ArchitectureEditor.tsx"
click node_er "https://github.com/senadsalkanovic/umlith/blob/main/src/components/ErEditor.tsx"
click node_functions "https://github.com/senadsalkanovic/umlith/blob/main/src/components/WorkflowEditor.tsx"
click node_sharedmodel "https://github.com/senadsalkanovic/umlith/blob/main/shared/model.ts"
click node_clientapi "https://github.com/senadsalkanovic/umlith/blob/main/src/api.ts"
click node_server "https://github.com/senadsalkanovic/umlith/blob/main/server/main.ts"
click node_projectstore "https://github.com/senadsalkanovic/umlith/blob/main/server/store.ts"
click node_projectfiles "https://github.com/senadsalkanovic/umlith/blob/main/server/files.ts"
click node_analysisclient "https://github.com/senadsalkanovic/umlith/blob/main/src/analysis-client.ts"
click node_sync "https://github.com/senadsalkanovic/umlith/blob/main/server/sync.ts"
click node_worker "https://github.com/senadsalkanovic/umlith/blob/main/server/worker.ts"
click node_analyzer "https://github.com/senadsalkanovic/umlith/blob/main/server/analyzer.ts"
click node_importreview "https://github.com/senadsalkanovic/umlith/blob/main/src/components/ImportReview.tsx"
click node_reviewui "https://github.com/senadsalkanovic/umlith/blob/main/src/components/ReviewPanel.tsx"
click node_quality "https://github.com/senadsalkanovic/umlith/blob/main/src/components/QualityReport.tsx"
click node_proposals "https://github.com/senadsalkanovic/umlith/blob/main/server/proposals.ts"
click node_reviewservice "https://github.com/senadsalkanovic/umlith/blob/main/server/review.ts"
click node_agentui "https://github.com/senadsalkanovic/umlith/blob/main/src/components/AgentWorkspace.tsx"
click node_jobs "https://github.com/senadsalkanovic/umlith/blob/main/server/jobs.ts"
click node_sandbox "https://github.com/senadsalkanovic/umlith/blob/main/server/sandbox.ts"
click node_application "https://github.com/senadsalkanovic/umlith/blob/main/server/application.ts"
click node_codingagent "https://github.com/senadsalkanovic/umlith/blob/main/server/agents/codex.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_workspace,node_architecture,node_er,node_functions,node_sharedmodel toneBlue
class node_analysisclient,node_sync,node_worker,node_analyzer toneAmber
class node_importreview,node_reviewui,node_quality,node_proposals,node_reviewservice toneMint
class node_agentui,node_jobs,node_sandbox,node_application,node_codingagent toneRose
class node_clientapi,node_server,node_projectstore,node_projectfiles,node_human toneIndigo
```

## Components

### Design Workspace

- [Workspace UI](https://github.com/senadsalkanovic/umlith/blob/main/src/App.tsx): `src/App.tsx`
- [Architecture Editor](https://github.com/senadsalkanovic/umlith/blob/main/src/components/ArchitectureEditor.tsx): `src/components/ArchitectureEditor.tsx`
- [ER Editor](https://github.com/senadsalkanovic/umlith/blob/main/src/components/ErEditor.tsx): `src/components/ErEditor.tsx`
- [Workflow Editors](https://github.com/senadsalkanovic/umlith/blob/main/src/components/WorkflowEditor.tsx): `src/components/WorkflowEditor.tsx`
- [Domain Model](https://github.com/senadsalkanovic/umlith/blob/main/shared/model.ts): `shared/model.ts`

### Source Analysis

- [Analysis Client](https://github.com/senadsalkanovic/umlith/blob/main/src/analysis-client.ts): `src/analysis-client.ts`
- [Source Synchronization](https://github.com/senadsalkanovic/umlith/blob/main/server/sync.ts): `server/sync.ts`
- [Analysis Worker](https://github.com/senadsalkanovic/umlith/blob/main/server/worker.ts): `server/worker.ts`
- [Source Analyzer](https://github.com/senadsalkanovic/umlith/blob/main/server/analyzer.ts): `server/analyzer.ts`

### Review and Sync

- [Import Review](https://github.com/senadsalkanovic/umlith/blob/main/src/components/ImportReview.tsx): `src/components/ImportReview.tsx`
- [Review Panel](https://github.com/senadsalkanovic/umlith/blob/main/src/components/ReviewPanel.tsx): `src/components/ReviewPanel.tsx`
- [Quality Report](https://github.com/senadsalkanovic/umlith/blob/main/src/components/QualityReport.tsx): `src/components/QualityReport.tsx`
- [Proposal Service](https://github.com/senadsalkanovic/umlith/blob/main/server/proposals.ts): `server/proposals.ts`
- [Candidate Review](https://github.com/senadsalkanovic/umlith/blob/main/server/review.ts): `server/review.ts`

### Agent Workflow

- [Agent Workspace](https://github.com/senadsalkanovic/umlith/blob/main/src/components/AgentWorkspace.tsx): `src/components/AgentWorkspace.tsx`
- [Agent Jobs](https://github.com/senadsalkanovic/umlith/blob/main/server/jobs.ts): `server/jobs.ts`
- [Isolation Sandbox](https://github.com/senadsalkanovic/umlith/blob/main/server/sandbox.ts): `server/sandbox.ts`
- [Guarded Apply](https://github.com/senadsalkanovic/umlith/blob/main/server/application.ts): `server/application.ts`
- [Codex Agent](https://github.com/senadsalkanovic/umlith/blob/main/server/agents/codex.ts): `server/agents/codex.ts`

### Local Service

- [Client API](https://github.com/senadsalkanovic/umlith/blob/main/src/api.ts): `src/api.ts`
- [HTTP Service](https://github.com/senadsalkanovic/umlith/blob/main/server/main.ts): `server/main.ts`
- [Project Store](https://github.com/senadsalkanovic/umlith/blob/main/server/store.ts): `server/store.ts`
- [Project Files](https://github.com/senadsalkanovic/umlith/blob/main/server/files.ts): `server/files.ts`

### Other components

- **Human**

## Connections

- Human → Workspace UI: edits project (evidence: `README.md`)
- Workspace UI → Architecture Editor: opens editor (evidence: `src/App.tsx`)
- Workspace UI → ER Editor: opens editor (evidence: `README.md`)
- Workspace UI → Workflow Editors: opens editor (evidence: `README.md`)
- Architecture Editor → Domain Model: edits graph (evidence: `src/components/ArchitectureEditor.tsx`)
- ER Editor → Domain Model: edits graph (evidence: `src/components/ErEditor.tsx`)
- Workflow Editors → Domain Model: edits graph (evidence: `src/components/WorkflowEditor.tsx`)
- Workspace UI → Client API: requests data (evidence: `src/App.tsx`)
- Client API → HTTP Service: sends requests (evidence: `src/api.ts`)
- HTTP Service → Project Store: reads and writes (evidence: `server/main.ts`)
- HTTP Service → Project Files: accesses files (evidence: `server/main.ts`)
- Workspace UI → Analysis Client: starts analysis (evidence: `src/App.tsx`)
- Analysis Client → Client API: requests analysis (evidence: `src/analysis-client.ts`)
- HTTP Service → Source Synchronization: dispatches sync (evidence: `server/main.ts`)
- Source Synchronization → Analysis Worker: requests analysis (evidence: `server/sync.ts`)
- Analysis Worker → Source Analyzer: runs analysis (evidence: `server/worker.ts`)
- Source Analyzer → Project Files: reads source (evidence: `server/analyzer.ts`)
- Workspace UI → Import Review: reviews imports (evidence: `README.md`)
- Workspace UI → Review Panel: reviews changes (evidence: `src/App.tsx`)
- Review Panel → Quality Report: renders report (evidence: `src/components/ReviewPanel.tsx`)
- HTTP Service → Proposal Service: routes proposals (evidence: `server/main.ts`)
- HTTP Service → Candidate Review: routes review (evidence: `server/main.ts`)
- Human → Agent Workspace: requests handoff (evidence: `README.md`)
- Agent Workspace → Client API: requests jobs (evidence: `README.md`)
- HTTP Service → Agent Jobs: routes job actions (evidence: `server/main.ts`)
- Agent Jobs → Isolation Sandbox: isolates task (evidence: `server/jobs.ts`)
- Agent Jobs → Codex Agent: launches agent (evidence: `server/jobs.ts`)
- Agent Jobs → Candidate Review: validates candidate (evidence: `server/jobs.ts`)
- Human → Review Panel: approves changes (evidence: `README.md`)
- HTTP Service → Guarded Apply: routes application (evidence: `server/main.ts`)
- Guarded Apply → Project Files: applies changes (evidence: `server/application.ts`)
- Guarded Apply → Project Store: checks project (evidence: `server/application.ts`)
