# azizmessaoud/alia architecture

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

- Interactive diagram: https://gitdiagram.com/azizmessaoud/alia
- Repository: https://github.com/azizmessaoud/alia

## Overview

1. **Top-level shape**
   - This is a **Remix + TypeScript** full-stack app with a clear split between:
     - **UI/routes** under `app/routes`
     - **server-only domain logic** under `app/lib/*.server.*`
     - **browser-only interaction logic** under `app/lib/*.client.*`
     - **persistent state** in Supabase/Postgres migrations under `supabase/migrations`

2. **Primary user-facing flows**
   - The main experience is the **training session** route at `app/routes/training/session.$id.tsx`, which appears to host the live training session.
   - Supporting routes include:
     - `app/routes/_index.tsx` for landing/home
     - `app/routes/status.tsx` and `app/routes/api.health.ts` for status/health visibility
     - `app/routes/test.audio2face.tsx` and `app/routes/api.test.audio2face.ts` for avatar/audio integration testing

3. **Live interaction layer**
   - The browser-side session experience is built from React components in `app/components`, especially:
     - `Avatar.tsx` and `AvatarWithLipSync.tsx` for the 3D avatar
     - `ChatInput.tsx` for user prompts
     - `MultimodalHUD.tsx` and `SessionHUD.tsx` for real-time telemetry and session feedback
     - `CompetencyLevelDisplay.tsx` for progress/scoring feedback
   - `public/avatar.glb`, `public/avatars/*.glb`, and `public/glm5.js` are static assets used by the avatar/rendering layer.

4. **Real-time client processing**
   - `app/lib/multimodal-processor.client.ts` and `app/lib/lip-sync-animator.client.ts` indicate that some sensing and animation work happens **in the browser**.
   - `app/hooks/useALIAWebSocket.ts` suggests a persistent WebSocket connection that streams live session events/telemetry between browser and server.

5. **Avatar and speech pipeline**
   - The avatar pipeline is split across server and client:
     - `app/lib/tts-nvidia.server.ts` and `app/lib/tts.server.js` handle text-to-speech generation
     - `app/lib/lipsync.server.js` and `app/lib/lip-sync-animator.client.ts` handle synchronization between generated speech and avatar motion
     - `app/lib/nvidia-nim.server.ts` suggests a server-side integration with NVIDIA NIM for inference, likely used for speech or multimodal generation
   - The existence of `server-nvidia-nim.js` and `server-websocket.js` shows there are also **standalone Node server entry points** for some real-time services.

6. **Memory subsystem**
   - `app/lib/memory-os.server.ts` is the core of the repo’s memory system.
   - The API surface around it is in:
     - `app/routes/api.memory.store-episode.ts`
     - `app/routes/api.memory.retrieve.ts`
     - `app/routes/api.memory.profile.$rep_id.ts`
   - The database schema in `supabase/migrations/001_memory_os.sql` and `combined.sql` supports episodic storage, retrieval, and rep profile persistence.
   - This memory layer feeds personalization back into the training session and likely into orchestration/prompt context.

7. **Retrieval and reasoning layer**
   - `app/lib/rag-pipeline.server.ts` is the repository’s retrieval-augmented generation path, likely combining memory retrieval with LLM prompts.
   - `app/lib/providers.ts` centralizes model/provider selection.
   - `app/lib/orchestration.server.ts` is the main server-side control plane that likely coordinates memory, scenario generation, scoring, and feedback.

8. **Competency and evaluation**
   - `app/lib/competency-level.server.ts` plus `app/routes/api/competency-level.ts` indicate a scoring/evaluation subsystem separate from chat generation.
   - The UI component `CompetencyLevelDisplay.tsx` exposes those scores back to the user.
   - This is the repo’s main “performance feedback” loop: session data in, competency assessment out.

9. **API boundary**
   - The repo exposes a small set of focused API endpoints rather than a broad CRUD surface:
     - `api.chat.ts` for conversational/session turns
     - `api.health.ts` for system health
     - memory endpoints for episode/profile retrieval/storage
     - competency-level and audio2face test endpoints
   - This suggests the browser mostly talks to the server through **Remix route actions/loaders plus these API routes**, not via a separate backend service.

10. **Data and persistence**
   - Supabase is the persistent backend, and the migrations show two major data domains:
     - **Memory OS**
     - **Competency levels**
   - The README mentions pgvector, which implies vector-based semantic retrieval is part of the architecture even though the vector search implementation is hidden behind the server library layer.

11. **External/auxiliary runtime components**
   - The repository includes multiple standalone server scripts:
     - `server-ollama.js`
     - `server-nvidia-nim.js`
     - `server-websocket.js`
   - These suggest the app can run with different model backends or local inference stacks, and that real-time transport can be decoupled from the Remix app process.

12. **Operational and deployment support**
   - `scripts/` contains migration and test helpers, which indicates the system is designed to be deployed with database initialization and service validation steps.
   - The `docs/` and top-level markdown files heavily document audio/lip-sync, NVIDIA NIM migration, Supabase deployment, and security/performance, so the repo has significant emphasis on **operational readiness** and **integration tuning**, not just UI code.

13. **Important architectural boundary**
   - The most important boundary for a diagram is the split between:
     - **interactive browser session** (avatar, HUD, chat, WebSocket, client ML/animation)
     - **server orchestration** (memory, RAG, scoring, model/provider integration, speech generation)
     - **persistent storage** (Supabase/Postgres/pgvector)
   - That separation is central to how ALIA maintains low-latency real-time training while preserving cross-session memory and evaluation history.

14. **Repository-specific takeaway**
   - In architecture terms, this is not a generic chat app: it is a **real-time training system** where the live session UI is tightly coupled to a server-side intelligence layer, and that intelligence layer is backed by a memory store and competency scoring database.

Main entry points: [`app/routes/training/session.$id.tsx`](https://github.com/azizmessaoud/alia/blob/alia/app/routes/training/session.$id.tsx) (Training session), [`app/lib/orchestration.server.ts`](https://github.com/azizmessaoud/alia/blob/alia/app/lib/orchestration.server.ts) (Orchestration), [`app/lib/memory-os.server.ts`](https://github.com/azizmessaoud/alia/blob/alia/app/lib/memory-os.server.ts) (Memory OS), [`app/root.tsx`](https://github.com/azizmessaoud/alia/blob/alia/app/root.tsx) (Remix app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Browser session"]
  node_root["Remix app<br/>entry<br/>[root.tsx]"]
  node_index["Landing<br/>route<br/>[_index.tsx]"]
  node_session["Training session<br/>route<br/>[session.$id.tsx]"]
  node_status["Status page<br/>route<br/>[status.tsx]"]
  node_avatar["Avatar UI"]
  node_hud["Session HUD<br/>[SessionHUD.tsx]"]
  node_chatinput["Chat input<br/>[ChatInput.tsx]"]
  node_websocket["WebSocket hook<br/>client runtime"]
  node_multimodal["Multimodal processor<br/>client module"]
  node_animator["Lip animator<br/>client module"]
  node_audio2face["Audio2Face test<br/>route"]
end

subgraph group_server["Server intelligence"]
  node_chatapi["Chat API<br/>route api<br/>[api.chat.ts]"]
  node_healthapi["Health API<br/>route api<br/>[api.health.ts]"]
  node_memapi["Memory API<br/>route api"]
  node_memretrieve["Retrieve memory<br/>route api"]
  node_memprofile["Rep profile<br/>route api"]
  node_compapi["Competency API<br/>route api"]
  node_orchestrator["Orchestration<br/>server module"]
  node_rag["RAG pipeline<br/>server module"]
  node_memory["Memory OS<br/>server module"]
  node_competency["Competency logic<br/>server module"]
  node_providers["Model providers<br/>server module<br/>[providers.ts]"]
  node_nvidia["NVIDIA NIM<br/>server integration"]
  node_tts["Speech pipeline<br/>server module"]
  node_lipsync["Lip sync<br/>hybrid module<br/>[lipsync.server.js]"]
  node_audio2faceapi["Audio2Face API<br/>route api"]
end

subgraph group_data["Persistence"]
  node_db[("Supabase DB<br/>postgres<br/>[combined.sql]")]
  node_memschema["Memory schema<br/>migration<br/>[001_memory_os.sql]"]
  node_compschema["Competency schema<br/>migration"]
end

subgraph group_runtime["Aux runtimes"]
  node_glm5["Avatar asset<br/>static asset<br/>[avatar.glb]"]
  node_glm5js["GLM runtime<br/>static asset<br/>[glm5.js]"]
  node_serverws["WebSocket server<br/>node service"]
  node_nimsvc["NIM server<br/>node service"]
  node_ollamasvc["Ollama server<br/>node service<br/>[server-ollama.js]"]
end

node_root -->|"routes"| node_index
node_root -->|"routes"| node_session
node_root -->|"routes"| node_status
node_root -->|"routes"| node_audio2face
node_session -->|"renders"| node_avatar
node_session -->|"renders"| node_hud
node_session -->|"captures"| node_chatinput
node_session -->|"streams"| node_websocket
node_session -->|"processes"| node_multimodal
node_session -->|"animates"| node_animator
node_chatinput -->|"sends"| node_chatapi
node_websocket -->|"connects"| node_serverws
node_chatapi -->|"delegates"| node_orchestrator
node_orchestrator -->|"uses"| node_memory
node_orchestrator -->|"uses"| node_rag
node_orchestrator -->|"uses"| node_competency
node_orchestrator -->|"selects"| node_providers
node_providers -->|"routes to"| node_nvidia
node_orchestrator -->|"generates"| node_tts
node_tts -->|"feeds"| node_lipsync
node_lipsync -->|"updates"| node_animator
node_memapi -->|"writes"| node_memory
node_memretrieve -->|"reads"| node_memory
node_memprofile -->|"reads"| node_memory
node_compapi -->|"reads/writes"| node_competency
node_memory -->|"persists"| node_db
node_competency -->|"persists"| node_db
node_db -->|"defined by"| node_memschema
node_db -->|"defined by"| node_compschema
node_audio2face -->|"tests"| node_audio2faceapi
node_audio2face -->|"uses"| node_glm5
node_avatar -->|"loads"| node_glm5
node_avatar -->|"uses"| node_glm5js
node_status -->|"checks"| node_healthapi
node_healthapi -->|"observes"| node_serverws
node_nimsvc -->|"hosts"| node_nvidia
node_ollamasvc -->|"backs"| node_providers

click node_root "https://github.com/azizmessaoud/alia/blob/alia/app/root.tsx"
click node_index "https://github.com/azizmessaoud/alia/blob/alia/app/routes/_index.tsx"
click node_session "https://github.com/azizmessaoud/alia/blob/alia/app/routes/training/session.$id.tsx"
click node_status "https://github.com/azizmessaoud/alia/blob/alia/app/routes/status.tsx"
click node_chatapi "https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.chat.ts"
click node_healthapi "https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.health.ts"
click node_memapi "https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.memory.store-episode.ts"
click node_memretrieve "https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.memory.retrieve.ts"
click node_memprofile "https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.memory.profile.$rep_id.ts"
click node_compapi "https://github.com/azizmessaoud/alia/blob/alia/app/routes/api/competency-level.ts"
click node_orchestrator "https://github.com/azizmessaoud/alia/blob/alia/app/lib/orchestration.server.ts"
click node_rag "https://github.com/azizmessaoud/alia/blob/alia/app/lib/rag-pipeline.server.ts"
click node_memory "https://github.com/azizmessaoud/alia/blob/alia/app/lib/memory-os.server.ts"
click node_competency "https://github.com/azizmessaoud/alia/blob/alia/app/lib/competency-level.server.ts"
click node_providers "https://github.com/azizmessaoud/alia/blob/alia/app/lib/providers.ts"
click node_nvidia "https://github.com/azizmessaoud/alia/blob/alia/app/lib/nvidia-nim.server.ts"
click node_tts "https://github.com/azizmessaoud/alia/blob/alia/app/lib/tts-nvidia.server.ts"
click node_lipsync "https://github.com/azizmessaoud/alia/blob/alia/app/lib/lipsync.server.js"
click node_avatar "https://github.com/azizmessaoud/alia/blob/alia/app/components/AvatarWithLipSync.tsx"
click node_hud "https://github.com/azizmessaoud/alia/blob/alia/app/components/SessionHUD.tsx"
click node_chatinput "https://github.com/azizmessaoud/alia/blob/alia/app/components/ChatInput.tsx"
click node_websocket "https://github.com/azizmessaoud/alia/blob/alia/app/hooks/useALIAWebSocket.ts"
click node_multimodal "https://github.com/azizmessaoud/alia/blob/alia/app/lib/multimodal-processor.client.ts"
click node_animator "https://github.com/azizmessaoud/alia/blob/alia/app/lib/lip-sync-animator.client.ts"
click node_db "https://github.com/azizmessaoud/alia/blob/alia/supabase/migrations/combined.sql"
click node_memschema "https://github.com/azizmessaoud/alia/blob/alia/supabase/migrations/001_memory_os.sql"
click node_compschema "https://github.com/azizmessaoud/alia/blob/alia/supabase/migrations/002_competency_levels.sql"
click node_audio2face "https://github.com/azizmessaoud/alia/blob/alia/app/routes/test.audio2face.tsx"
click node_audio2faceapi "https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.test.audio2face.ts"
click node_glm5 "https://github.com/azizmessaoud/alia/blob/alia/public/avatar.glb"
click node_glm5js "https://github.com/azizmessaoud/alia/blob/alia/public/glm5.js"
click node_serverws "https://github.com/azizmessaoud/alia/blob/alia/server-websocket.js"
click node_nimsvc "https://github.com/azizmessaoud/alia/blob/alia/server-nvidia-nim.js"
click node_ollamasvc "https://github.com/azizmessaoud/alia/blob/alia/server-ollama.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_root,node_index,node_session,node_status,node_avatar,node_hud,node_chatinput,node_websocket,node_multimodal,node_animator,node_audio2face toneBlue
class node_chatapi,node_healthapi,node_memapi,node_memretrieve,node_memprofile,node_compapi,node_orchestrator,node_rag,node_memory,node_competency,node_providers,node_nvidia,node_tts,node_lipsync,node_audio2faceapi toneAmber
class node_db,node_memschema,node_compschema toneMint
class node_glm5,node_glm5js,node_serverws,node_nimsvc,node_ollamasvc toneRose
```

## Components

### Browser session

Remix routes and React components that drive the live training experience.

- [Remix app](https://github.com/azizmessaoud/alia/blob/alia/app/root.tsx): entry · Top-level Remix + TypeScript application shell. · `app/root.tsx`
- [Landing](https://github.com/azizmessaoud/alia/blob/alia/app/routes/_index.tsx): route · Home route for the app. · `app/routes/_index.tsx`
- [Training session](https://github.com/azizmessaoud/alia/blob/alia/app/routes/training/session.$id.tsx): route · Main live training experience for a single session. · `app/routes/training/session.$id.tsx`
- [Status page](https://github.com/azizmessaoud/alia/blob/alia/app/routes/status.tsx): route · Human-visible status and health view. · `app/routes/status.tsx`
- [Avatar UI](https://github.com/azizmessaoud/alia/blob/alia/app/components/AvatarWithLipSync.tsx): 3D avatar rendering and lip-synced presentation. · `app/components/AvatarWithLipSync.tsx`
- [Session HUD](https://github.com/azizmessaoud/alia/blob/alia/app/components/SessionHUD.tsx): Live telemetry and session feedback surfaces. · `app/components/SessionHUD.tsx`
- [Chat input](https://github.com/azizmessaoud/alia/blob/alia/app/components/ChatInput.tsx): User prompt entry for the live session. · `app/components/ChatInput.tsx`
- [WebSocket hook](https://github.com/azizmessaoud/alia/blob/alia/app/hooks/useALIAWebSocket.ts): client runtime · Persistent browser connection for live events and telemetry. · `app/hooks/useALIAWebSocket.ts`
- [Multimodal processor](https://github.com/azizmessaoud/alia/blob/alia/app/lib/multimodal-processor.client.ts): client module · Browser-side sensing and real-time processing logic. · `app/lib/multimodal-processor.client.ts`
- [Lip animator](https://github.com/azizmessaoud/alia/blob/alia/app/lib/lip-sync-animator.client.ts): client module · Client-side avatar motion and animation timing. · `app/lib/lip-sync-animator.client.ts`
- [Audio2Face test](https://github.com/azizmessaoud/alia/blob/alia/app/routes/test.audio2face.tsx): route · UI for testing avatar and audio integration. · `app/routes/test.audio2face.tsx`

### Server intelligence

Domain logic, orchestration, retrieval, scoring, speech, and model integration.

- [Chat API](https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.chat.ts): route api · Session turn handling and conversational backend boundary. · `app/routes/api.chat.ts`
- [Health API](https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.health.ts): route api · Simple system health endpoint. · `app/routes/api.health.ts`
- [Memory API](https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.memory.store-episode.ts): route api · Stores, retrieves, and serves rep profile memory. · `app/routes/api.memory.store-episode.ts`
- [Retrieve memory](https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.memory.retrieve.ts): route api · Memory retrieval endpoint. · `app/routes/api.memory.retrieve.ts`
- [Rep profile](https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.memory.profile.$rep_id.ts): route api · Profile lookup endpoint keyed by rep id. · `app/routes/api.memory.profile.$rep_id.ts`
- [Competency API](https://github.com/azizmessaoud/alia/blob/alia/app/routes/api/competency-level.ts): route api · Server endpoint for scoring and evaluation state. · `app/routes/api/competency-level.ts`
- [Orchestration](https://github.com/azizmessaoud/alia/blob/alia/app/lib/orchestration.server.ts): server module · Main control plane coordinating session flow, memory, scoring, and feedback. · `app/lib/orchestration.server.ts`
- [RAG pipeline](https://github.com/azizmessaoud/alia/blob/alia/app/lib/rag-pipeline.server.ts): server module · Retrieval-augmented generation path for prompts and context. · `app/lib/rag-pipeline.server.ts`
- [Memory OS](https://github.com/azizmessaoud/alia/blob/alia/app/lib/memory-os.server.ts): server module · Core episodic memory and profile logic. · `app/lib/memory-os.server.ts`
- [Competency logic](https://github.com/azizmessaoud/alia/blob/alia/app/lib/competency-level.server.ts): server module · Server-side scoring and evaluation subsystem. · `app/lib/competency-level.server.ts`
- [Model providers](https://github.com/azizmessaoud/alia/blob/alia/app/lib/providers.ts): server module · Central model/provider selection and configuration. · `app/lib/providers.ts`
- [NVIDIA NIM](https://github.com/azizmessaoud/alia/blob/alia/app/lib/nvidia-nim.server.ts): server integration · Server-side integration for hosted inference and generation. · `app/lib/nvidia-nim.server.ts`
- [Speech pipeline](https://github.com/azizmessaoud/alia/blob/alia/app/lib/tts-nvidia.server.ts): server module · Text-to-speech generation and speech preparation. · `app/lib/tts-nvidia.server.ts`
- [Lip sync](https://github.com/azizmessaoud/alia/blob/alia/app/lib/lipsync.server.js): hybrid module · Speech-to-avatar synchronization across server and client. · `app/lib/lipsync.server.js`
- [Audio2Face API](https://github.com/azizmessaoud/alia/blob/alia/app/routes/api.test.audio2face.ts): route api · Backend test endpoint for audio-to-avatar integration. · `app/routes/api.test.audio2face.ts`

### Persistence

Supabase/Postgres schema for memory and competency history.

- [Supabase DB](https://github.com/azizmessaoud/alia/blob/alia/supabase/migrations/combined.sql): postgres · Persistent Postgres backend for memory and competency state. · `supabase/migrations/combined.sql`
- [Memory schema](https://github.com/azizmessaoud/alia/blob/alia/supabase/migrations/001_memory_os.sql): migration · Episodic storage and retrieval tables/indexes. · `supabase/migrations/001_memory_os.sql`
- [Competency schema](https://github.com/azizmessaoud/alia/blob/alia/supabase/migrations/002_competency_levels.sql): migration · Persistence for competency history and scores. · `supabase/migrations/002_competency_levels.sql`

### Aux runtimes

Standalone Node services and static assets that support real-time interaction.

- [Avatar asset](https://github.com/azizmessaoud/alia/blob/alia/public/avatar.glb): static asset · Primary avatar model and supporting static assets. · `public/avatar.glb`
- [GLM runtime](https://github.com/azizmessaoud/alia/blob/alia/public/glm5.js): static asset · Client-side asset used by the avatar/rendering layer. · `public/glm5.js`
- [WebSocket server](https://github.com/azizmessaoud/alia/blob/alia/server-websocket.js): node service · Standalone real-time transport service. · `server-websocket.js`
- [NIM server](https://github.com/azizmessaoud/alia/blob/alia/server-nvidia-nim.js): node service · Standalone NVIDIA NIM-backed service entry point. · `server-nvidia-nim.js`
- [Ollama server](https://github.com/azizmessaoud/alia/blob/alia/server-ollama.js): node service · Standalone local model backend entry point. · `server-ollama.js`

## Connections

- Remix app → Landing: routes · Remix app exposes landing page.
- Remix app → Training session: routes · Main interactive session route lives in Remix.
- Remix app → Status page: routes · Status view is part of the browser app.
- Remix app → Audio2Face test: routes · Testing route for avatar/audio integration.
- Training session → Avatar UI: renders · Session UI mounts the avatar presentation.
- Training session → Session HUD: renders · Session UI shows live telemetry and feedback.
- Training session → Chat input: captures · User input enters the live session through chat.
- Training session → WebSocket hook: streams · Session subscribes to live events over WebSocket.
- Training session → Multimodal processor: processes · Browser-side multimodal processing supports live interaction.
- Training session → Lip animator: animates · Client animation logic updates avatar motion.
- Chat input → Chat API: sends · Prompt submissions are handled by the chat API.
- WebSocket hook → WebSocket server: connects · Browser connects to standalone realtime service.
- Chat API → Orchestration: delegates · Conversation turns are coordinated by orchestration.
- Orchestration → Memory OS: uses · Orchestration consults episodic and profile memory.
- Orchestration → RAG pipeline: uses · Retrieval-augmented prompts feed generation.
- Orchestration → Competency logic: uses · Session flow includes scoring and evaluation.
- Orchestration → Model providers: selects · Model/provider choice is centralized.
- Model providers → NVIDIA NIM: routes to · Provider layer can target NVIDIA NIM.
- Orchestration → Speech pipeline: generates · Speech output is produced server-side.
- Speech pipeline → Lip sync: feeds · Generated speech drives lip-sync timing.
- Lip sync → Lip animator: updates · Client animation consumes lip-sync signals.
- Memory API → Memory OS: writes · Store-episode endpoint persists memory.
- Retrieve memory → Memory OS: reads · Retrieve endpoint queries memory state.
- Rep profile → Memory OS: reads · Profile endpoint serves rep-specific memory.
- Competency API → Competency logic: reads/writes · Competency endpoint exposes scoring state.
- Memory OS → Supabase DB: persists · Memory OS stores episodic and profile data.
- Competency logic → Supabase DB: persists · Competency history is stored in Postgres.
- Supabase DB → Memory schema: defined by · Memory persistence is backed by migrations.
- Supabase DB → Competency schema: defined by · Competency persistence is backed by migrations.
- Audio2Face test → Audio2Face API: tests · Test UI exercises the integration endpoint.
- Audio2Face test → Avatar asset: uses · Avatar test UI depends on 3D assets.
- Avatar UI → Avatar asset: loads · Avatar component renders GLB assets.
- Avatar UI → GLM runtime: uses · Avatar rendering uses supporting browser asset.
- Status page → Health API: checks · Status page can surface health information.
- Health API → WebSocket server: observes · Health checks may reflect realtime service state.
- NIM server → NVIDIA NIM: hosts · Standalone service can serve NVIDIA-backed inference.
- Ollama server → Model providers: backs · Local model service can back provider selection.
