# vasishta-04/axiora architecture

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

- Interactive diagram: https://gitdiagram.com/vasishta-04/axiora
- Repository: https://github.com/vasishta-04/axiora

## Overview

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: [`Backend/gateway/index.js`](https://github.com/vasishta-04/axiora/blob/main/Backend/gateway/index.js) (API gateway), [`Backend/services/agent/agents`](https://github.com/vasishta-04/axiora/tree/main/Backend/services/agent/agents) (Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image), [`Backend/services/auth/controllers/auth.controller.js`](https://github.com/vasishta-04/axiora/blob/main/Backend/services/auth/controllers/auth.controller.js) (Authentication service), [`Backend/services/billing/controllers/billing.controller.js`](https://github.com/vasishta-04/axiora/blob/main/Backend/services/billing/controllers/billing.controller.js) (Billing service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client experience"]
  node_app["React application<br/>[App.jsx]"]
  node_home["Chat workspace<br/>[Home.jsx]"]
  node_chatinput["Prompt and files<br/>[ChatInput.jsx]"]
  node_sidebar["Conversation sidebar<br/>[SideBar.jsx]"]
  node_artifact["Artifact viewer<br/>[Artifact.jsx]"]
  node_billingui["Billing drawer<br/>[BillingDrawer.jsx]"]
  node_clientfeatures["API actions"]
  node_state["Redux state"]
end

subgraph group_edge["Gateway and identity"]
  node_gateway["API gateway<br/>[index.js]"]
  node_authmw["Session protection<br/>[auth.middleware.js]"]
  node_auth["Authentication service<br/>[auth.controller.js]"]
  node_firebase["Firebase identity"]
  node_redis[("Redis sessions and memory<br/>[redis.js]")]
end

subgraph group_conversation["Conversation service"]
  node_chatservice["Chat history service<br/>[chat.controller.js]"]
  node_conversations[("Conversation records")]
  node_messages[("Message records<br/>[message.model.js]")]
end

subgraph group_ai["Agent platform"]
  node_agentcontroller["Agent request handler"]
  node_graph["LangGraph workflow<br/>[graph.js]"]
  node_router["Intent router<br/>[router.js]"]
  node_agents["Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image"]
  node_llms["Model providers<br/>[llmModels.js]"]
  node_search["Tavily search"]
  node_vectordb[("Qdrant vectors<br/>[vectorDb.js]")]
  node_s3[("S3 artifacts<br/>[s3.js]")]
end

subgraph group_commerce["Billing"]
  node_billing["Billing service"]
  node_payments[("Payment records<br/>[payment.model.js]")]
  node_razorpay["Razorpay"]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_home
node_home -.->|"accepts prompts"| node_chatinput
node_home -.->|"shows conversations"| node_sidebar
node_chatinput -->|"dispatches actions"| node_clientfeatures
node_sidebar -->|"loads conversations"| node_clientfeatures
node_sidebar -->|"updates state"| node_state
node_clientfeatures -.->|"calls API"| node_gateway
node_gateway -->|"protects routes"| node_authmw
node_authmw -->|"reads sessions"| node_redis
node_gateway -.->|"routes requests"| node_auth
node_gateway -.->|"routes requests"| node_chatservice
node_gateway -.->|"forwards prompts"| node_agentcontroller
node_gateway -.->|"routes requests"| node_billing
node_auth -->|"verifies identity"| node_firebase
node_auth -->|"stores sessions"| node_redis
node_auth -.->|"persists users"| node_conversations
node_chatservice -->|"reads and writes"| node_conversations
node_chatservice -->|"reads and writes"| node_messages
node_agentcontroller -->|"saves messages"| node_chatservice
node_agentcontroller -->|"invokes workflow"| node_graph
node_graph -.->|"routes requests"| node_router
node_router -.->|"selects specialist"| node_agents
node_agents -.->|"uses models"| node_llms
node_agents -->|"retrieves web data"| node_search
node_agents -->|"retrieves PDF context"| node_vectordb
node_agents -.->|"stores artifacts"| node_s3
node_billing -->|"creates orders"| node_razorpay
node_billing -->|"records payments"| node_payments
node_billing -->|"updates plan"| node_auth
node_billingui -.->|"starts checkout"| node_clientfeatures
node_artifact -.->|"displays results"| node_user

click node_app "https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/App.jsx"
click node_home "https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/pages/Home.jsx"
click node_chatinput "https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/components/ChatInput.jsx"
click node_sidebar "https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/components/SideBar.jsx"
click node_artifact "https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/components/Artifact.jsx"
click node_billingui "https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/components/BillingDrawer.jsx"
click node_clientfeatures "https://github.com/vasishta-04/axiora/tree/main/Frontend/vite-project/src/features"
click node_state "https://github.com/vasishta-04/axiora/tree/main/Frontend/vite-project/src/redux"
click node_gateway "https://github.com/vasishta-04/axiora/blob/main/Backend/gateway/index.js"
click node_authmw "https://github.com/vasishta-04/axiora/blob/main/Backend/gateway/middleware/auth.middleware.js"
click node_auth "https://github.com/vasishta-04/axiora/blob/main/Backend/services/auth/controllers/auth.controller.js"
click node_redis "https://github.com/vasishta-04/axiora/blob/main/Backend/shared/redis/redis.js"
click node_chatservice "https://github.com/vasishta-04/axiora/blob/main/Backend/services/chat/controllers/chat.controller.js"
click node_conversations "https://github.com/vasishta-04/axiora/blob/main/Backend/services/chat/models/conversation.model.js"
click node_messages "https://github.com/vasishta-04/axiora/blob/main/Backend/services/chat/models/message.model.js"
click node_agentcontroller "https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/controllers/agent.controller.js"
click node_graph "https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/graph/graph.js"
click node_router "https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/graph/router.js"
click node_agents "https://github.com/vasishta-04/axiora/tree/main/Backend/services/agent/agents"
click node_llms "https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/config/llmModels.js"
click node_vectordb "https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/config/vectorDb.js"
click node_s3 "https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/config/s3.js"
click node_billing "https://github.com/vasishta-04/axiora/blob/main/Backend/services/billing/controllers/billing.controller.js"
click node_payments "https://github.com/vasishta-04/axiora/blob/main/Backend/services/billing/models/payment.model.js"

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_app,node_home,node_chatinput,node_sidebar,node_artifact,node_billingui,node_clientfeatures,node_state,node_user toneBlue
class node_gateway,node_authmw,node_auth,node_firebase,node_redis toneAmber
class node_chatservice,node_conversations,node_messages toneMint
class node_agentcontroller,node_graph,node_router,node_agents,node_llms,node_search,node_vectordb,node_s3 toneRose
class node_billing,node_payments,node_razorpay toneIndigo
```

## Components

### Client experience

- [React application](https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/App.jsx): `Frontend/vite-project/src/App.jsx`
- [Chat workspace](https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/pages/Home.jsx): `Frontend/vite-project/src/pages/Home.jsx`
- [Prompt and files](https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/components/ChatInput.jsx): `Frontend/vite-project/src/components/ChatInput.jsx`
- [Conversation sidebar](https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/components/SideBar.jsx): `Frontend/vite-project/src/components/SideBar.jsx`
- [Artifact viewer](https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/components/Artifact.jsx): `Frontend/vite-project/src/components/Artifact.jsx`
- [Billing drawer](https://github.com/vasishta-04/axiora/blob/main/Frontend/vite-project/src/components/BillingDrawer.jsx): `Frontend/vite-project/src/components/BillingDrawer.jsx`
- [API actions](https://github.com/vasishta-04/axiora/tree/main/Frontend/vite-project/src/features): `Frontend/vite-project/src/features`
- [Redux state](https://github.com/vasishta-04/axiora/tree/main/Frontend/vite-project/src/redux): `Frontend/vite-project/src/redux`

### Gateway and identity

- [API gateway](https://github.com/vasishta-04/axiora/blob/main/Backend/gateway/index.js): `Backend/gateway/index.js`
- [Session protection](https://github.com/vasishta-04/axiora/blob/main/Backend/gateway/middleware/auth.middleware.js): `Backend/gateway/middleware/auth.middleware.js`
- [Authentication service](https://github.com/vasishta-04/axiora/blob/main/Backend/services/auth/controllers/auth.controller.js): `Backend/services/auth/controllers/auth.controller.js`
- **Firebase identity**
- [Redis sessions and memory](https://github.com/vasishta-04/axiora/blob/main/Backend/shared/redis/redis.js): `Backend/shared/redis/redis.js`

### Conversation service

- [Chat history service](https://github.com/vasishta-04/axiora/blob/main/Backend/services/chat/controllers/chat.controller.js): `Backend/services/chat/controllers/chat.controller.js`
- [Conversation records](https://github.com/vasishta-04/axiora/blob/main/Backend/services/chat/models/conversation.model.js): `Backend/services/chat/models/conversation.model.js`
- [Message records](https://github.com/vasishta-04/axiora/blob/main/Backend/services/chat/models/message.model.js): `Backend/services/chat/models/message.model.js`

### Agent platform

- [Agent request handler](https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/controllers/agent.controller.js): `Backend/services/agent/controllers/agent.controller.js`
- [LangGraph workflow](https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/graph/graph.js): `Backend/services/agent/graph/graph.js`
- [Intent router](https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/graph/router.js): `Backend/services/agent/graph/router.js`
- [Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image](https://github.com/vasishta-04/axiora/tree/main/Backend/services/agent/agents): `Backend/services/agent/agents`
- [Model providers](https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/config/llmModels.js): `Backend/services/agent/config/llmModels.js`
- **Tavily search**
- [Qdrant vectors](https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/config/vectorDb.js): `Backend/services/agent/config/vectorDb.js`
- [S3 artifacts](https://github.com/vasishta-04/axiora/blob/main/Backend/services/agent/config/s3.js): `Backend/services/agent/config/s3.js`

### Billing

- [Billing service](https://github.com/vasishta-04/axiora/blob/main/Backend/services/billing/controllers/billing.controller.js): `Backend/services/billing/controllers/billing.controller.js`
- [Payment records](https://github.com/vasishta-04/axiora/blob/main/Backend/services/billing/models/payment.model.js): `Backend/services/billing/models/payment.model.js`
- **Razorpay**

### Other components

- **User**

## Connections

- User → React application: uses
- React application → Chat workspace: renders (evidence: `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 (evidence: `Frontend/vite-project/src/components/ChatInput.jsx`)
- Conversation sidebar → API actions: loads conversations (evidence: `Frontend/vite-project/src/components/SideBar.jsx`)
- Conversation sidebar → Redux state: updates state (evidence: `Frontend/vite-project/src/components/SideBar.jsx`)
- API actions → API gateway: calls API
- API gateway → Session protection: protects routes (evidence: `Backend/gateway/index.js`)
- Session protection → Redis sessions and memory: reads sessions (evidence: `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 (evidence: `Backend/services/auth/controllers/auth.controller.js`)
- Authentication service → Redis sessions and memory: stores sessions (evidence: `Backend/services/auth/controllers/auth.controller.js`)
- Authentication service → Conversation records: persists users
- Chat history service → Conversation records: reads and writes (evidence: `Backend/services/chat/controllers/chat.controller.js`)
- Chat history service → Message records: reads and writes (evidence: `Backend/services/chat/controllers/chat.controller.js`)
- Agent request handler → Chat history service: saves messages (evidence: `Backend/services/agent/controllers/agent.controller.js`)
- Agent request handler → LangGraph workflow: invokes workflow (evidence: `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 (evidence: `Backend/services/agent/agents/pdfRag.agent.js`)
- Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image → Tavily search: retrieves web data (evidence: `Backend/services/agent/agents/search.agent.js`)
- Specialist agents: chat, search, coding, PDF, PPT, RAG, vision, image → Qdrant vectors: retrieves PDF context (evidence: `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 (evidence: `Backend/services/billing/controllers/billing.controller.js`)
- Billing service → Payment records: records payments (evidence: `Backend/services/billing/controllers/billing.controller.js`)
- Billing service → Authentication service: updates plan (evidence: `Backend/services/billing/controllers/billing.controller.js`)
- Billing drawer → API actions: starts checkout
- Artifact viewer → User: displays results
