# vishwakaliyamoorthy/aram-ai architecture

> Architecture diagram of the GitHub repository vishwakaliyamoorthy/aram-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vishwakaliyamoorthy/aram-ai
- Repository: https://github.com/vishwakaliyamoorthy/aram-ai

## Overview

AI Law Bot Interface is a legal-question chat UI branded as an Indian Law Information System. A user submits a question in the React app; the app manages chat state and displays messages and a loading indicator. The sampled App excerpt shows locally simulated responses, not a backend request. The repository also contains ingestion and RAG Python modules, but their relationship to the UI is not established by the available evidence. Shared UI primitives form an internal presentation layer.

Main entry points: [`src/app/App.tsx`](https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/app/App.tsx) (Chat app), [`src/main.tsx`](https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/main.tsx) (React entry), [`src/app/components/ChatMessage.tsx`](https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/app/components/ChatMessage.tsx) (Message bubbles), [`src/app/components/LoadingAnimation.tsx`](https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/app/components/LoadingAnimation.tsx) (Loading indicator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_chat["Chat experience"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["Chat app<br/>[App.tsx]"]
  node_messages["Message bubbles<br/>[ChatMessage.tsx]"]
  node_loading["Loading indicator"]
  node_branding["Justice logo<br/>[JusticeLogo.tsx]"]
end

subgraph group_python["Python modules"]
  node_ingestion["Document ingestion<br/>[ingest.py]"]
  node_rag["RAG module<br/>[rag.py]"]
end

subgraph group_ui["UI primitives"]
  node_primitives["UI primitives"]
end

node_visitor(("Legal questioner"))

node_entry -->|"renders"| node_app
node_visitor -->|"submits question"| node_app
node_app -->|"renders messages"| node_messages
node_app -->|"shows loading"| node_loading
node_app -->|"renders logo"| node_branding

click node_entry "https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/main.tsx"
click node_app "https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/app/App.tsx"
click node_messages "https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/app/components/ChatMessage.tsx"
click node_loading "https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/app/components/LoadingAnimation.tsx"
click node_branding "https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/app/components/JusticeLogo.tsx"
click node_ingestion "https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/ingest.py"
click node_rag "https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/rag.py"
click node_primitives "https://github.com/vishwakaliyamoorthy/aram-ai/tree/main/src/app/components/ui"

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_entry,node_app,node_messages,node_loading,node_branding toneBlue
class node_ingestion,node_rag toneAmber
class node_primitives toneMint
class node_visitor toneIndigo
```

## Components

### Chat experience

- [React entry](https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/main.tsx): `src/main.tsx`
- [Chat app](https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/app/App.tsx): `src/app/App.tsx`
- [Message bubbles](https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/app/components/ChatMessage.tsx): `src/app/components/ChatMessage.tsx`
- [Loading indicator](https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/app/components/LoadingAnimation.tsx): `src/app/components/LoadingAnimation.tsx`
- [Justice logo](https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/src/app/components/JusticeLogo.tsx): `src/app/components/JusticeLogo.tsx`

### Python modules

- [Document ingestion](https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/ingest.py): `ingest.py`
- [RAG module](https://github.com/vishwakaliyamoorthy/aram-ai/blob/main/rag.py): `rag.py`

### UI primitives

- [UI primitives](https://github.com/vishwakaliyamoorthy/aram-ai/tree/main/src/app/components/ui): `src/app/components/ui`

### Other components

- **Legal questioner**

## Connections

- React entry → Chat app: renders (evidence: `src/main.tsx`)
- Legal questioner → Chat app: submits question (evidence: `src/app/App.tsx`)
- Chat app → Message bubbles: renders messages (evidence: `src/app/App.tsx`)
- Chat app → Loading indicator: shows loading (evidence: `src/app/App.tsx`)
- Chat app → Justice logo: renders logo (evidence: `src/app/App.tsx`)
