How anmol1578/vortex-multi-agent-ai works
Vortex is a React-based multi-agent AI platform. A user signs in, opens a conversation, and sends a prompt or attachment; the gateway authenticates and proxies the request to the agent service, whose graph routes work through credit checks to a specialist and returns text or artifacts. Chat persistence, account identity, billing, and retrieval are distinct supporting capabilities. Relationships among gateway routes, graph nodes, and major product capabilities are documented in the README; unsampled implementation details are not inferred.
Main entry points: graph.js State graph · index.js API gateway · auth.controller.js Authentication · billing.controller.js Plans and payments
Components 31
Client
- Dashboard
frontend/src/pages/Dashboard.jsx - Chat interface
frontend/src/components/ChatArea.jsx - Artifact panel
frontend/src/components/ArtifactPanel.jsx - Billing drawer
frontend/src/components/BillingDrawer.jsx
Gateway
- API gateway
backend/gateway/index.js - Session protection
backend/gateway/middleware/auth.middleware.js
Agent orchestration
- Agent endpoint
backend/services/agent/controllers/agent.controller.js - State graph
backend/services/agent/graph/graph.js - Intent router
backend/services/agent/graph/router.js - Credit gate
backend/services/agent/agents/credit.agent.js - Chat and search
backend/services/agent/agents/chat.agent.js - Coding agent
backend/services/agent/agents/coding.agent.js - PDF generation
backend/services/agent/agents/pdf.agent.js - PDF retrieval
backend/services/agent/agents/pdfRag.agent.js - Slide generation
backend/services/agent/agents/ppt.agent.js - Image generation
backend/services/agent/agents/vision.agent.js - Image analysis
backend/services/agent/agents/imageAnalyzer.agent.js - Model selection
backend/services/agent/config/llmModels.js
Platform services
- Authentication
backend/services/auth/controllers/auth.controller.js - Conversation service
backend/services/chat/controllers/chat.controller.js - Plans and payments
backend/services/billing/controllers/billing.controller.js
Data and integrations
- User records
backend/services/auth/models/user.model.js - Conversation records
backend/services/chat/models/conversation.model.js - Message records
backend/services/chat/models/message.model.js - Payment records
backend/services/billing/models/payment.model.js - Redis
backend/shared/redis/redis.js - Qdrant
backend/services/agent/config/vectorDb.js - S3 artifact storage
backend/services/agent/config/s3.js - Firebase identity
backend/services/auth/config/firebase.js - Razorpay
backend/services/billing/config/razorpay.js
Other components
- User
Connections 34
- User → Dashboard: uses
- Dashboard → Chat interface: renders
frontend/src/pages/Dashboard.jsx - Chat interface → API gateway: sends requests
- API gateway → Session protection: protects routes
backend/gateway/index.js - API gateway → Authentication: proxies auth
backend/gateway/index.js - API gateway → Conversation service: proxies chat
backend/gateway/index.js - API gateway → Agent endpoint: proxies agents
backend/gateway/index.js - API gateway → Plans and payments: proxies billing
backend/gateway/index.js - Session protection → Redis: checks sessions
backend/gateway/middleware/auth.middleware.js - Authentication → Firebase identity: verifies identity
backend/services/auth/controllers/auth.controller.js - Authentication → User records: reads and writes
backend/services/auth/controllers/auth.controller.js - Authentication → Redis: stores sessions
backend/services/auth/controllers/auth.controller.js - Agent endpoint → State graph: invokes
backend/services/agent/controllers/agent.controller.js - Agent endpoint → Conversation service: saves messages
backend/services/agent/controllers/agent.controller.js - State graph → Intent router: routes through
backend/services/agent/graph/graph.js - State graph → Credit gate: dispatches
backend/services/agent/graph/graph.js - State graph → Chat and search: dispatches
backend/services/agent/graph/graph.js - State graph → Coding agent: dispatches
backend/services/agent/graph/graph.js - State graph → PDF generation: dispatches
backend/services/agent/graph/graph.js - State graph → PDF retrieval: dispatches
backend/services/agent/graph/graph.js - State graph → Slide generation: dispatches
backend/services/agent/graph/graph.js - State graph → Image generation: dispatches
backend/services/agent/graph/graph.js - State graph → Image analysis: dispatches
backend/services/agent/graph/graph.js - Intent router → Model selection: selects model
backend/services/agent/graph/router.js - Conversation service → Conversation records: reads and writes
backend/services/chat/controllers/chat.controller.js - Conversation service → Message records: reads and writes
backend/services/chat/controllers/chat.controller.js - Billing drawer → API gateway: requests billing
- Plans and payments → Payment records: records payments
backend/services/billing/controllers/billing.controller.js - Plans and payments → Razorpay: creates orders
backend/services/billing/controllers/billing.controller.js - Plans and payments → Authentication: updates user plan
backend/services/billing/controllers/billing.controller.js - Artifact panel → Chat interface: shows outputs
- PDF retrieval → Qdrant: retrieves context
backend/services/agent/agents/pdfRag.agent.js - Slide generation → S3 artifact storage: stores artifacts
- Image generation → S3 artifact storage: stores images