How narender-rk10/archflow works
ArchFlow is a collaborative system-design platform: users turn ideas and requirements into a structured architecture, refine and validate it with AI and teammates, then analyze existing code or hand changes to coding agents through OpenSpec. The graph emphasizes that workflow and the major documented branches. Source excerpts are partial, so some subsystem links rely on README statements; unsampled implementation details are not inferred.
Main entry points: main.py HTTP and WebSocket API · Workspace.tsx Architecture workspace · chat.py AI design assistant · ops.py Validated operations
Components 21
Product experience
- Web application
frontend/src/App.tsx - Architecture workspace
frontend/src/components/Workspace.tsx - API client
frontend/src/api.ts
Design and intelligence
- Requirements and intake
backend/archflow/intake.py - Versioned project model
backend/archflow/models.py - Validated operations
backend/archflow/ops.py - AI design assistant
backend/archflow/chat.py - AI orchestration
backend/archflow/ai.py - LLM gateway
backend/archflow/llm.py - Health and traceability
backend/archflow/analysis.py - Architecture checklists
backend/archflow/checklists.py - Low-level design
backend/archflow/lld.py
Analysis and delivery
- Repository analysis
backend/archflow/codegraph/service.py - OpenSpec changes
backend/archflow/openspec_service.py - Generation and exports
backend/archflow/exports.py - Diagram rendering
backend/renderer/renderers/architecture/routing.mjs
Collaboration and platform
- HTTP and WebSocket API
backend/archflow/main.py - Project persistence
backend/archflow/store.py - Live collaboration
collab/src/server.ts - Identity and access
backend/archflow/accounts.py
Other components
- Designer or agent
Connections 22
- Designer or agent → Web application: uses
- Web application → Architecture workspace: opens workspace
frontend/src/App.tsx - Architecture workspace → API client: requests data
frontend/src/components/Workspace.tsx - API client → HTTP and WebSocket API: calls API
- HTTP and WebSocket API → Identity and access: authenticates
backend/archflow/main.py - HTTP and WebSocket API → Requirements and intake: routes intake
backend/archflow/main.py - HTTP and WebSocket API → Validated operations: commits changes
- Validated operations → Versioned project model: updates model
backend/archflow/models.py - HTTP and WebSocket API → Project persistence: reads and writes
- AI design assistant → AI orchestration: requests AI
backend/archflow/chat.py - AI orchestration → LLM gateway: generates responses
- AI design assistant → Validated operations: proposes edits
backend/archflow/chat.py - AI design assistant → Health and traceability: reviews options
backend/archflow/option_review.py - Health and traceability → Architecture checklists: checks coverage
backend/archflow/analysis.py - Architecture workspace → Live collaboration: syncs live
- Live collaboration → HTTP and WebSocket API: stores projection
collab/src/server.ts - HTTP and WebSocket API → Repository analysis: routes analysis
backend/archflow/codegraph/service.py - HTTP and WebSocket API → OpenSpec changes: routes changes
backend/archflow/main.py - OpenSpec changes → Generation and exports: uses generation
backend/archflow/openspec_service.py - Architecture workspace → Low-level design: requests internals
- Architecture workspace → Diagram rendering: renders diagrams
- Architecture workspace → Generation and exports: requests exports