How sandeepwebdev19/marxdev works
ArchiFlow is a WAM-based architecture modeling product. Users authenticate, create and edit diagrams on an interactive canvas, validate and estimate them, then save, export, or publish their work. AI chat, image-to-diagram and repair extend the modeling workflow; subscriptions govern feature access. The graph includes the documented authentication, persistence, integration, pricing, and export branches. Some frontend-to-API wiring and unsampled subsystems are documented only at product level, so those relationships are marked as unverified rather than inferred from names.
Main entry points: EditorLayout.tsx Editor workspace · ai.service.js AI diagram service · User.js User accounts · subscription.js Subscription management
Components 25
Diagram editor
- Web application
frontend/src/App.tsx - Editor workspace
frontend/src/components/Canvas/EditorLayout.tsx - WAM canvas
frontend/src/components/Canvas/MainCanvas.tsx - Element palette
frontend/src/components/Palette/WamPalette.tsx - Element properties
frontend/src/components/Palette/PropertyMngPanel.tsx - Validation feedback
frontend/src/components/Canvas/ValidationPanel.tsx
API and modeling
- Diagram operations
backend/routes/diagrams.js - Diagram records
backend/models/Diagram.js - WAM validation
backend/models/wam/wam.validator.js
Identity and plans
- Session context
frontend/src/context/AuthContext.tsx - Authentication
backend/routes/auth.js - User accounts
backend/models/User.js - Plan limits
backend/config/subscriptionPlans.js - Subscription management
backend/routes/subscription.js
AI and estimates
- AI assistant
frontend/src/components/chat/ChatWidget.tsx - AI endpoints
backend/models/ai/ai.routes.js - AI diagram service
backend/models/ai/ai.service.js - OpenAI provider
backend/models/ai/providers/openai.provider.js - Cost estimate UI
frontend/src/components/CostEstimate/CostEstimateModal.tsx - Cost estimator API
backend/routes/costEstimate.js - Cost model
backend/common/costEstimator.js
Exports and integrations
- Integrations portal
frontend/src/components/Integrations/IntegrationsPage.tsx - Integration management
backend/routes/integrations.js - JSON-LD export
frontend/src/utils/exportJSONLD.ts
Other components
- Architecture user
Connections 23
- Architecture user → Web application: uses
- Web application → Editor workspace: routes to
frontend/src/App.tsx - Editor workspace → WAM canvas: embeds
frontend/src/components/Canvas/EditorLayout.tsx - Editor workspace → Element palette: renders
frontend/src/components/Canvas/EditorLayout.tsx - Editor workspace → Element properties: renders
frontend/src/components/Canvas/EditorLayout.tsx - Editor workspace → Validation feedback: shows
frontend/src/components/Canvas/EditorLayout.tsx - Editor workspace → Diagram operations: saves and loads
- Diagram operations → Diagram records: reads and writes
backend/routes/diagrams.js - Editor workspace → WAM validation: requests validation
- Architecture user → Session context: signs in
- Session context → Authentication: fetches user
frontend/src/context/AuthContext.tsx - Authentication → User accounts: reads and updates
backend/routes/auth.js - Subscription management → User accounts: updates plan
backend/routes/subscription.js - Subscription management → Plan limits: checks plans
backend/routes/subscription.js - AI endpoints → AI diagram service: dispatches prompts
backend/models/ai/ai.routes.js - AI diagram service → OpenAI provider: generates diagrams
backend/models/ai/ai.service.js - AI diagram service → WAM validation: validates output
backend/models/ai/ai.service.js - AI assistant → AI endpoints: sends prompts
- Cost estimate UI → Cost estimator API: requests estimate
- Cost estimator API → Cost model: estimates costs
backend/routes/costEstimate.js - Integrations portal → Integration management: manages connections
- Editor workspace → JSON-LD export: exports diagram
frontend/src/components/Canvas/EditorLayout.tsx - Integration management → User accounts: stores credentials
backend/routes/integrations.js