How vasishta-04/axiora works
AxioraAI is a multi-agent AI assistant delivered through a React client and microservices backend. A typical interaction starts with a user choosing or creating a conversation, submitting a prompt or file, and receiving an agent-generated answer or artifact for display. The agent service routes work among specialized capabilities; separate services manage chat history, identity and credit-based billing. The README documents the wider integrations, but unsampled implementation details limit which internal calls can be confirmed, so some subsystem links rely on README statements.
Main entry points: index.js API gateway · agents Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image · auth.controller.js Authentication service · billing.controller.js Billing service
Components 28
Client experience
- React application
Frontend/vite-project/src/App.jsx - Chat workspace
Frontend/vite-project/src/pages/Home.jsx - Prompt and files
Frontend/vite-project/src/components/ChatInput.jsx - Conversation sidebar
Frontend/vite-project/src/components/SideBar.jsx - Artifact viewer
Frontend/vite-project/src/components/Artifact.jsx - Billing drawer
Frontend/vite-project/src/components/BillingDrawer.jsx - API actions
Frontend/vite-project/src/features - Redux state
Frontend/vite-project/src/redux
Gateway and identity
- API gateway
Backend/gateway/index.js - Session protection
Backend/gateway/middleware/auth.middleware.js - Authentication service
Backend/services/auth/controllers/auth.controller.js - Firebase identity
- Redis sessions and memory
Backend/shared/redis/redis.js
Conversation service
- Chat history service
Backend/services/chat/controllers/chat.controller.js - Conversation records
Backend/services/chat/models/conversation.model.js - Message records
Backend/services/chat/models/message.model.js
Agent platform
- Agent request handler
Backend/services/agent/controllers/agent.controller.js - LangGraph workflow
Backend/services/agent/graph/graph.js - Intent router
Backend/services/agent/graph/router.js - Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image
Backend/services/agent/agents - Model providers
Backend/services/agent/config/llmModels.js - Tavily search
- Qdrant vectors
Backend/services/agent/config/vectorDb.js - S3 artifacts
Backend/services/agent/config/s3.js
Billing
- Billing service
Backend/services/billing/controllers/billing.controller.js - Payment records
Backend/services/billing/models/payment.model.js - Razorpay
Other components
- User
Connections 32
- User → React application: uses
- React application → Chat workspace: renders
Frontend/vite-project/src/App.jsx - Chat workspace → Prompt and files: accepts prompts
- Chat workspace → Conversation sidebar: shows conversations
- Prompt and files → API actions: dispatches actions
Frontend/vite-project/src/components/ChatInput.jsx - Conversation sidebar → API actions: loads conversations
Frontend/vite-project/src/components/SideBar.jsx - Conversation sidebar → Redux state: updates state
Frontend/vite-project/src/components/SideBar.jsx - API actions → API gateway: calls API
- API gateway → Session protection: protects routes
Backend/gateway/index.js - Session protection → Redis sessions and memory: reads sessions
Backend/gateway/middleware/auth.middleware.js - API gateway → Authentication service: routes requests
- API gateway → Chat history service: routes requests
- API gateway → Agent request handler: forwards prompts
- API gateway → Billing service: routes requests
- Authentication service → Firebase identity: verifies identity
Backend/services/auth/controllers/auth.controller.js - Authentication service → Redis sessions and memory: stores sessions
Backend/services/auth/controllers/auth.controller.js - Authentication service → Conversation records: persists users
- Chat history service → Conversation records: reads and writes
Backend/services/chat/controllers/chat.controller.js - Chat history service → Message records: reads and writes
Backend/services/chat/controllers/chat.controller.js - Agent request handler → Chat history service: saves messages
Backend/services/agent/controllers/agent.controller.js - Agent request handler → LangGraph workflow: invokes workflow
Backend/services/agent/controllers/agent.controller.js - LangGraph workflow → Intent router: routes requests
- Intent router → Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image: selects specialist
- Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image → Model providers: uses models
Backend/services/agent/agents/pdfRag.agent.js - Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image → Tavily search: retrieves web data
Backend/services/agent/agents/search.agent.js - Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image → Qdrant vectors: retrieves PDF context
Backend/services/agent/agents/pdfRag.agent.js - Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image → S3 artifacts: stores artifacts
- Billing service → Razorpay: creates orders
Backend/services/billing/controllers/billing.controller.js - Billing service → Payment records: records payments
Backend/services/billing/controllers/billing.controller.js - Billing service → Authentication service: updates plan
Backend/services/billing/controllers/billing.controller.js - Billing drawer → API actions: starts checkout
- Artifact viewer → User: displays results