# radityasandi62728-bit/my-projek architecture

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

- Interactive diagram: https://gitdiagram.com/radityasandi62728-bit/my-projek
- Repository: https://github.com/radityasandi62728-bit/my-projek

## Overview

Celia is a small Indonesian-language conversational AI with terminal and browser chat interfaces, mood/personality behavior, basic NLP, and arithmetic responses. The workflows start in Main.js or mainWeb.js, pass input through the matching chat adapter, and invoke Ai.generateResponse; the AI analyzes text, handles arithmetic locally or requests a reply from a local backend, then returns it to the adapter for display. The backend endpoints are evidenced in source, but no backend implementation is present in the tree. Browser markup and styling are present but their wiring is not shown in the excerpts.

Main entry points: [`Classs/Ai.js`](https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Ai.js) (AI response engine), [`mainWeb.js`](https://github.com/radityasandi62728-bit/my-projek/blob/main/mainWeb.js) (Browser setup), [`Classs/Chat.js`](https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Chat.js) (Terminal chat), [`Main.js`](https://github.com/radityasandi62728-bit/my-projek/blob/main/Main.js) (Terminal setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Chat entrypoints"]
  node_terminal_setup["Terminal setup<br/>[Main.js]"]
  node_browser_setup["Browser setup<br/>[mainWeb.js]"]
end

subgraph group_conversation["Conversation runtime"]
  node_terminal_chat["Terminal chat<br/>[Chat.js]"]
  node_web_chat["Web chat<br/>[chatWeb.js]"]
  node_user_profile["User profile<br/>[User.js]"]
end

subgraph group_intelligence["AI capabilities"]
  node_ai_response["AI response engine<br/>[Ai.js]"]
  node_nlp_analysis["NLP analysis<br/>[NLP.js]"]
  node_mood_attitude["Mood and attitude<br/>[Ai_Attitude.js]"]
  node_arithmetic["Arithmetic calculator<br/>[Calculator.js]"]
end

node_terminal_user(("Terminal user"))
node_browser_user(("Browser user"))
node_chat_backend{{"Local chat backend"}}
node_wordbank_backend{{"Word-bank backend"}}

node_terminal_user -->|"enters text"| node_terminal_chat
node_terminal_setup -->|"creates user"| node_user_profile
node_terminal_setup -->|"creates calculator"| node_arithmetic
node_terminal_setup -->|"creates AI"| node_ai_response
node_terminal_setup -->|"starts chat"| node_terminal_chat
node_terminal_chat -->|"sends input"| node_user_profile
node_terminal_chat -->|"requests reply"| node_ai_response
node_ai_response -->|"returns reply"| node_terminal_chat
node_browser_user -->|"submits text"| node_browser_setup
node_browser_setup -->|"creates user"| node_user_profile
node_browser_setup -->|"creates calculator"| node_arithmetic
node_browser_setup -->|"creates AI"| node_ai_response
node_browser_setup -->|"routes input"| node_web_chat
node_web_chat -->|"requests reply"| node_ai_response
node_ai_response -->|"returns reply"| node_web_chat
node_ai_response -->|"analyzes text"| node_nlp_analysis
node_ai_response -->|"checks and calculates"| node_arithmetic
node_ai_response -->|"gets mood"| node_mood_attitude
node_ai_response -->|"requests chat reply"| node_chat_backend
node_nlp_analysis -->|"loads and updates bank"| node_wordbank_backend

click node_terminal_setup "https://github.com/radityasandi62728-bit/my-projek/blob/main/Main.js"
click node_browser_setup "https://github.com/radityasandi62728-bit/my-projek/blob/main/mainWeb.js"
click node_terminal_chat "https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Chat.js"
click node_web_chat "https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/chatWeb.js"
click node_user_profile "https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/User.js"
click node_ai_response "https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Ai.js"
click node_nlp_analysis "https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Ai_Asset/NLP.js"
click node_mood_attitude "https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Ai_Asset/Ai_Attitude.js"
click node_arithmetic "https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Calculator.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_terminal_setup,node_browser_setup,node_terminal_user,node_browser_user toneBlue
class node_terminal_chat,node_web_chat,node_user_profile toneAmber
class node_ai_response,node_nlp_analysis,node_mood_attitude,node_arithmetic toneMint
class node_chat_backend,node_wordbank_backend toneIndigo
```

## Components

### Chat entrypoints

- [Terminal setup](https://github.com/radityasandi62728-bit/my-projek/blob/main/Main.js): `Main.js`
- [Browser setup](https://github.com/radityasandi62728-bit/my-projek/blob/main/mainWeb.js): `mainWeb.js`

### Conversation runtime

- [Terminal chat](https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Chat.js): `Classs/Chat.js`
- [Web chat](https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/chatWeb.js): `Classs/chatWeb.js`
- [User profile](https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/User.js): `Classs/User.js`

### AI capabilities

- [AI response engine](https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Ai.js): `Classs/Ai.js`
- [NLP analysis](https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Ai_Asset/NLP.js): `Classs/Ai_Asset/NLP.js`
- [Mood and attitude](https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Ai_Asset/Ai_Attitude.js): `Classs/Ai_Asset/Ai_Attitude.js`
- [Arithmetic calculator](https://github.com/radityasandi62728-bit/my-projek/blob/main/Classs/Calculator.js): `Classs/Calculator.js`

### Other components

- **Terminal user**
- **Browser user**
- **Local chat backend**
- **Word-bank backend**

## Connections

- Terminal user → Terminal chat: enters text (evidence: `Classs/Chat.js`)
- Terminal setup → User profile: creates user (evidence: `Main.js`)
- Terminal setup → Arithmetic calculator: creates calculator (evidence: `Main.js`)
- Terminal setup → AI response engine: creates AI (evidence: `Main.js`)
- Terminal setup → Terminal chat: starts chat (evidence: `Main.js`)
- Terminal chat → User profile: sends input (evidence: `Classs/Chat.js`)
- Terminal chat → AI response engine: requests reply (evidence: `Classs/Chat.js`)
- AI response engine → Terminal chat: returns reply (evidence: `Classs/Chat.js`)
- Browser user → Browser setup: submits text (evidence: `mainWeb.js`)
- Browser setup → User profile: creates user (evidence: `mainWeb.js`)
- Browser setup → Arithmetic calculator: creates calculator (evidence: `mainWeb.js`)
- Browser setup → AI response engine: creates AI (evidence: `mainWeb.js`)
- Browser setup → Web chat: routes input (evidence: `mainWeb.js`)
- Web chat → AI response engine: requests reply (evidence: `Classs/chatWeb.js`)
- AI response engine → Web chat: returns reply (evidence: `Classs/chatWeb.js`)
- AI response engine → NLP analysis: analyzes text (evidence: `Classs/Ai.js`)
- AI response engine → Arithmetic calculator: checks and calculates (evidence: `Classs/Ai.js`)
- AI response engine → Mood and attitude: gets mood (evidence: `Classs/Ai.js`)
- AI response engine → Local chat backend: requests chat reply (evidence: `Classs/Ai.js`)
- NLP analysis → Word-bank backend: loads and updates bank (evidence: `Classs/Ai_Asset/NLP.js`)
