# arunbhaskar94/buliya architecture

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

- Interactive diagram: https://gitdiagram.com/arunbhaskar94/buliya
- Repository: https://github.com/arunbhaskar94/buliya

## Overview

Buliya is an interactive 3D AI-host talk-show preview. Users choose a presenter, inspect and animate its character, then start or pause a conversational exchange; the browser sends turns to a local Express endpoint and displays returned dialogue with speech playback. The main source excerpt also indicates rendering, model inspection, and host-selection behavior, while the server excerpt shows an in-memory conversation context and generated fallback replies. Source excerpts are partial, so unsupported details and links are omitted.

Main entry points: [`src/main.js`](https://github.com/arunbhaskar94/buliya/blob/main/src/main.js) (Interactive studio), [`server.js`](https://github.com/arunbhaskar94/buliya/blob/main/server.js) (Chat endpoint), [`src/hosts/hostProfiles.js`](https://github.com/arunbhaskar94/buliya/blob/main/src/hosts/hostProfiles.js) (Host profiles), [`public/models/babulal/Babulal.glb`](https://github.com/arunbhaskar94/buliya/blob/main/public/models/babulal/Babulal.glb) (Babulal model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Host experience"]
  node_experience["Interactive studio<br/>[main.js]"]
  node_profiles["Host profiles<br/>[hostProfiles.js]"]
  node_stage["3D preview stage<br/>[main.js]"]
  node_model_loading["Model loading<br/>[main.js]"]
  node_model_inspection["Model inspection<br/>[main.js]"]
  node_animation["Animation controls<br/>[main.js]"]
  node_dialogue_ui["Dialogue controls<br/>[main.js]"]
  node_speech["Speech playback<br/>[main.js]"]
end

subgraph group_conversation["Conversation runtime"]
  node_chat_api["Chat endpoint<br/>[server.js]"]
  node_history["Conversation context<br/>[server.js]"]
  node_fallback["Reply generation<br/>[server.js]"]
end

subgraph group_characters["Character assets"]
  node_babulal_asset["Babulal model<br/>[Babulal.glb]"]
  node_bulbul_asset["Bulbul model<br/>[Bulbul.glb]"]
end

node_visitor(("Visitor"))
node_browser(("Browser runtime"))

node_visitor -->|"interacts"| node_experience
node_experience -->|"selects hosts"| node_profiles
node_experience -->|"renders"| node_stage
node_experience -->|"loads models"| node_model_loading
node_model_loading -->|"loads"| node_babulal_asset
node_model_loading -->|"loads"| node_bulbul_asset
node_model_loading -->|"inspects"| node_model_inspection
node_experience -->|"controls"| node_animation
node_visitor -->|"starts or pauses"| node_dialogue_ui
node_dialogue_ui -->|"posts turns"| node_chat_api
node_chat_api -->|"updates context"| node_history
node_chat_api -->|"generates reply"| node_fallback
node_chat_api -->|"returns JSON"| node_browser
node_experience -->|"plays reply"| node_speech

click node_experience "https://github.com/arunbhaskar94/buliya/blob/main/src/main.js"
click node_profiles "https://github.com/arunbhaskar94/buliya/blob/main/src/hosts/hostProfiles.js"
click node_stage "https://github.com/arunbhaskar94/buliya/blob/main/src/main.js"
click node_model_loading "https://github.com/arunbhaskar94/buliya/blob/main/src/main.js"
click node_model_inspection "https://github.com/arunbhaskar94/buliya/blob/main/src/main.js"
click node_animation "https://github.com/arunbhaskar94/buliya/blob/main/src/main.js"
click node_dialogue_ui "https://github.com/arunbhaskar94/buliya/blob/main/src/main.js"
click node_speech "https://github.com/arunbhaskar94/buliya/blob/main/src/main.js"
click node_babulal_asset "https://github.com/arunbhaskar94/buliya/blob/main/public/models/babulal/Babulal.glb"
click node_bulbul_asset "https://github.com/arunbhaskar94/buliya/blob/main/public/models/bulbul/Bulbul.glb"
click node_chat_api "https://github.com/arunbhaskar94/buliya/blob/main/server.js"
click node_history "https://github.com/arunbhaskar94/buliya/blob/main/server.js"
click node_fallback "https://github.com/arunbhaskar94/buliya/blob/main/server.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_experience,node_profiles,node_stage,node_model_loading,node_model_inspection,node_animation,node_dialogue_ui,node_speech,node_browser toneBlue
class node_chat_api,node_history,node_fallback toneAmber
class node_babulal_asset,node_bulbul_asset toneMint
class node_visitor toneIndigo
```

## Components

### Host experience

- [Interactive studio](https://github.com/arunbhaskar94/buliya/blob/main/src/main.js): `src/main.js`
- [Host profiles](https://github.com/arunbhaskar94/buliya/blob/main/src/hosts/hostProfiles.js): `src/hosts/hostProfiles.js`
- [3D preview stage](https://github.com/arunbhaskar94/buliya/blob/main/src/main.js): `src/main.js`
- [Model loading](https://github.com/arunbhaskar94/buliya/blob/main/src/main.js): `src/main.js`
- [Model inspection](https://github.com/arunbhaskar94/buliya/blob/main/src/main.js): `src/main.js`
- [Animation controls](https://github.com/arunbhaskar94/buliya/blob/main/src/main.js): `src/main.js`
- [Dialogue controls](https://github.com/arunbhaskar94/buliya/blob/main/src/main.js): `src/main.js`
- [Speech playback](https://github.com/arunbhaskar94/buliya/blob/main/src/main.js): `src/main.js`

### Conversation runtime

- [Chat endpoint](https://github.com/arunbhaskar94/buliya/blob/main/server.js): `server.js`
- [Conversation context](https://github.com/arunbhaskar94/buliya/blob/main/server.js): `server.js`
- [Reply generation](https://github.com/arunbhaskar94/buliya/blob/main/server.js): `server.js`

### Character assets

- [Babulal model](https://github.com/arunbhaskar94/buliya/blob/main/public/models/babulal/Babulal.glb): `public/models/babulal/Babulal.glb`
- [Bulbul model](https://github.com/arunbhaskar94/buliya/blob/main/public/models/bulbul/Bulbul.glb): `public/models/bulbul/Bulbul.glb`

### Other components

- **Visitor**
- **Browser runtime**

## Connections

- Visitor → Interactive studio: interacts (evidence: `src/main.js`)
- Interactive studio → Host profiles: selects hosts (evidence: `src/main.js`)
- Interactive studio → 3D preview stage: renders (evidence: `src/main.js`)
- Interactive studio → Model loading: loads models (evidence: `src/main.js`)
- Model loading → Babulal model: loads
- Model loading → Bulbul model: loads
- Model loading → Model inspection: inspects (evidence: `src/main.js`)
- Interactive studio → Animation controls: controls (evidence: `src/main.js`)
- Visitor → Dialogue controls: starts or pauses (evidence: `src/main.js`)
- Dialogue controls → Chat endpoint: posts turns (evidence: `src/main.js`)
- Chat endpoint → Conversation context: updates context (evidence: `server.js`)
- Chat endpoint → Reply generation: generates reply (evidence: `server.js`)
- Chat endpoint → Browser runtime: returns JSON (evidence: `server.js`)
- Interactive studio → Speech playback: plays reply (evidence: `src/main.js`)
