# aldrichhhhhhhhhhhhh/vant-ai architecture

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

- Interactive diagram: https://gitdiagram.com/aldrichhhhhhhhhhhhh/vant-ai
- Repository: https://github.com/aldrichhhhhhhhhhhhh/vant-ai

## Overview

VANT is an AI work platform. The main user journey runs from the React workspace, through attachment extraction and a serverless chat endpoint, to streamed NVIDIA NIM responses; Supabase supports authentication, quotas, and persistent workspace features. The repository also includes education, study widgets, personal memory, and project/team workspace capabilities. Some interactions are established only by the README or SOURCE INDEX; unsampled implementation details and unsupported links are omitted.

Main entry points: [`src/App.jsx`](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/App.jsx) (VANT Workspace), [`src/supabase.js`](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/supabase.js) (Supabase Client), [`api/chat.js`](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/api/chat.js) (Chat API), [`src/VantEducationPage.jsx`](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/VantEducationPage.jsx) (Education Library)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace UI"]
  node_app["VANT Workspace<br/>[App.jsx]"]
  node_legacy_app["Phase 04 Workspace"]
  node_entry["React Entry<br/>[main.jsx]"]
end

subgraph group_intelligence["AI Work Engine"]
  node_attachments["Attachment Parser"]
  node_enhancements["Chat Enhancements"]
  node_work_envelope["Work Understanding<br/>[vantEngine.js]"]
  node_chat_api["Chat API<br/>[chat.js]"]
  node_vant_api["VANT API<br/>[vant.js]"]
  node_completion["Response Engine<br/>[_vant-engine.js]"]
end

subgraph group_learning["Learning and Memory"]
  node_education["Education Library"]
  node_study_widgets["Study Widgets"]
  node_memory["Personal Memory<br/>[VantMemoryPage.jsx]"]
end

subgraph group_services["Persistence and Services"]
  node_supabase_client["Supabase Client<br/>[supabase.js]"]
  node_supabase_service[("Supabase")]
end

node_user(("User"))
node_nvidia["NVIDIA NIM"]

node_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"parses files"| node_attachments
node_app -->|"requests chat"| node_chat_api
node_chat_api -->|"delegates completion"| node_completion
node_completion -->|"requests completions"| node_nvidia
node_chat_api -->|"authenticates and checks quota"| node_supabase_client
node_supabase_client -->|"configures client"| node_supabase_service
node_app -->|"shows education"| node_education
node_app -->|"shows memory"| node_memory
node_education -->|"renders widgets"| node_study_widgets
node_education -->|"uses client"| node_supabase_client
node_study_widgets -->|"uses client"| node_supabase_client
node_memory -->|"uses client"| node_supabase_client
node_legacy_app -->|"uses client"| node_supabase_client
node_app -.->|"uses work engine"| node_work_envelope
node_app -.->|"uses enhancements"| node_enhancements
node_vant_api -->|"delegates completion"| node_completion

click node_app "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/App.jsx"
click node_legacy_app "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/App.phase04-architecture.jsx"
click node_entry "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/main.jsx"
click node_attachments "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/chatAttachmentParser.js"
click node_enhancements "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/aiChatEnhancements.js"
click node_work_envelope "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/vantEngine.js"
click node_chat_api "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/api/chat.js"
click node_vant_api "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/api/vant.js"
click node_completion "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/api/_vant-engine.js"
click node_education "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/VantEducationPage.jsx"
click node_study_widgets "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/VantEducationWidgets.jsx"
click node_memory "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/VantMemoryPage.jsx"
click node_supabase_client "https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/supabase.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_legacy_app,node_entry,node_user toneBlue
class node_attachments,node_enhancements,node_work_envelope,node_chat_api,node_vant_api,node_completion toneAmber
class node_education,node_study_widgets,node_memory toneMint
class node_supabase_client,node_supabase_service toneRose
class node_nvidia toneIndigo
```

## Components

### Workspace UI

- [VANT Workspace](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/App.jsx): `src/App.jsx`
- [Phase 04 Workspace](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/App.phase04-architecture.jsx): `src/App.phase04-architecture.jsx`
- [React Entry](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/main.jsx): `src/main.jsx`

### AI Work Engine

- [Attachment Parser](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/chatAttachmentParser.js): `src/chatAttachmentParser.js`
- [Chat Enhancements](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/aiChatEnhancements.js): `src/aiChatEnhancements.js`
- [Work Understanding](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/vantEngine.js): `src/vantEngine.js`
- [Chat API](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/api/chat.js): `api/chat.js`
- [VANT API](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/api/vant.js): `api/vant.js`
- [Response Engine](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/api/_vant-engine.js): `api/_vant-engine.js`

### Learning and Memory

- [Education Library](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/VantEducationPage.jsx): `src/VantEducationPage.jsx`
- [Study Widgets](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/VantEducationWidgets.jsx): `src/VantEducationWidgets.jsx`
- [Personal Memory](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/VantMemoryPage.jsx): `src/VantMemoryPage.jsx`

### Persistence and Services

- [Supabase Client](https://github.com/aldrichhhhhhhhhhhhh/vant-ai/blob/main/src/supabase.js): `src/supabase.js`
- **Supabase**

### Other components

- **User**
- **NVIDIA NIM**

## Connections

- User → React Entry: opens app (evidence: `src/main.jsx`)
- React Entry → VANT Workspace: renders (evidence: `src/main.jsx`)
- VANT Workspace → Attachment Parser: parses files (evidence: `src/App.jsx`)
- VANT Workspace → Chat API: requests chat (evidence: `README.md`)
- Chat API → Response Engine: delegates completion (evidence: `api/chat.js`)
- Response Engine → NVIDIA NIM: requests completions (evidence: `api/_vant-engine.js`)
- Chat API → Supabase Client: authenticates and checks quota (evidence: `api/chat.js`)
- Supabase Client → Supabase: configures client (evidence: `src/supabase.js`)
- VANT Workspace → Education Library: shows education (evidence: `src/App.jsx`)
- VANT Workspace → Personal Memory: shows memory (evidence: `src/App.jsx`)
- Education Library → Study Widgets: renders widgets (evidence: `src/VantEducationPage.jsx`)
- Education Library → Supabase Client: uses client (evidence: `src/VantEducationPage.jsx`)
- Study Widgets → Supabase Client: uses client (evidence: `src/VantEducationWidgets.jsx`)
- Personal Memory → Supabase Client: uses client (evidence: `src/VantMemoryPage.jsx`)
- Phase 04 Workspace → Supabase Client: uses client (evidence: `src/App.phase04-architecture.jsx`)
- VANT Workspace → Work Understanding: uses work engine (evidence: `src/App.jsx`)
- VANT Workspace → Chat Enhancements: uses enhancements
- VANT API → Response Engine: delegates completion (evidence: `api/vant.js`)
