# belyaev-dev/studentik-ai architecture

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

- Interactive diagram: https://gitdiagram.com/belyaev-dev/studentik-ai
- Repository: https://github.com/belyaev-dev/studentik-ai

## Overview

studentik-chat is a Vue chat widget: a user opens an embedded chat, submits a message, and sees the user and bot messages. The visible request handler posts to an external API and displays its response and buttons. The app bootstrap and shell are evidenced, as are the iframe URL and chat-window implementation; the contents of the iframe page were not sampled, so its connection to the chat window is unverified. The README describes a generic Vue/Vite template and documents no further product capabilities.

Main entry points: [`src/components/ChatWindow.vue`](https://github.com/belyaev-dev/studentik-ai/blob/main/src/components/ChatWindow.vue) (Chat window), [`src/components/ChatComponent.vue`](https://github.com/belyaev-dev/studentik-ai/blob/main/src/components/ChatComponent.vue) (Chat launcher), [`src/App.vue`](https://github.com/belyaev-dev/studentik-ai/blob/main/src/App.vue) (App shell), [`public/chat.html`](https://github.com/belyaev-dev/studentik-ai/blob/main/public/chat.html) (Chat page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_bootstrap["Vue bootstrap<br/>[main.ts]"]
  node_app["App shell<br/>[App.vue]"]
end

subgraph group_chat["Chat interface"]
  node_launcher["Chat launcher<br/>[ChatComponent.vue]"]
  node_chat_page["Chat page<br/>[chat.html]"]
  node_conversation["Chat window<br/>[ChatWindow.vue]"]
  node_message_view["Message display<br/>[ChatMessage.vue]"]
end

subgraph group_integration["Chat service"]
  node_api{{"Chat API"}}
end

node_user(("User"))

node_user -->|"opens chat"| node_launcher
node_bootstrap -->|"mounts"| node_app
node_app -->|"renders"| node_launcher
node_launcher -->|"loads iframe"| node_chat_page
node_chat_page -.->|"hosts chat"| node_conversation
node_user -->|"submits message"| node_conversation
node_conversation -->|"posts message"| node_api
node_conversation -->|"renders messages"| node_message_view

click node_bootstrap "https://github.com/belyaev-dev/studentik-ai/blob/main/src/main.ts"
click node_app "https://github.com/belyaev-dev/studentik-ai/blob/main/src/App.vue"
click node_launcher "https://github.com/belyaev-dev/studentik-ai/blob/main/src/components/ChatComponent.vue"
click node_chat_page "https://github.com/belyaev-dev/studentik-ai/blob/main/public/chat.html"
click node_conversation "https://github.com/belyaev-dev/studentik-ai/blob/main/src/components/ChatWindow.vue"
click node_message_view "https://github.com/belyaev-dev/studentik-ai/blob/main/src/components/ChatMessage.vue"

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_bootstrap,node_app,node_user toneBlue
class node_launcher,node_chat_page,node_conversation,node_message_view toneAmber
class node_api toneMint
```

## Components

### App shell

- [Vue bootstrap](https://github.com/belyaev-dev/studentik-ai/blob/main/src/main.ts): `src/main.ts`
- [App shell](https://github.com/belyaev-dev/studentik-ai/blob/main/src/App.vue): `src/App.vue`

### Chat interface

- [Chat launcher](https://github.com/belyaev-dev/studentik-ai/blob/main/src/components/ChatComponent.vue): `src/components/ChatComponent.vue`
- [Chat page](https://github.com/belyaev-dev/studentik-ai/blob/main/public/chat.html): `public/chat.html`
- [Chat window](https://github.com/belyaev-dev/studentik-ai/blob/main/src/components/ChatWindow.vue): `src/components/ChatWindow.vue`
- [Message display](https://github.com/belyaev-dev/studentik-ai/blob/main/src/components/ChatMessage.vue): `src/components/ChatMessage.vue`

### Chat service

- **Chat API**

### Other components

- **User**

## Connections

- User → Chat launcher: opens chat (evidence: `src/components/ChatComponent.vue`)
- Vue bootstrap → App shell: mounts (evidence: `src/main.ts`)
- App shell → Chat launcher: renders (evidence: `src/App.vue`)
- Chat launcher → Chat page: loads iframe (evidence: `src/components/ChatComponent.vue`)
- Chat page → Chat window: hosts chat
- User → Chat window: submits message (evidence: `src/components/ChatWindow.vue`)
- Chat window → Chat API: posts message (evidence: `src/components/ChatWindow.vue`)
- Chat window → Message display: renders messages (evidence: `src/components/ChatWindow.vue`)
