# 🤖 GB Project Architecture

Component Space Allocation Visualization - Treemap Report

### 📦 botserver

basic/keywords
core/bot
llm/models
vector-db
security
compliance
attendance
drive
email
whatsapp
calendar
console
~100+ modules | Rust | Core Platform
45%

### 📚 botbook

20 chapters | 150+ docs | mdBook
20%

### 🎨 botui

HTMX | Tailwind | Admin UI
8%

### 🖥️ botapp

Tauri | Cross-platform
7%

### 📖 botlib

Core types | HTTP | Models
5%

### 📱 botdevice

Embedded | Tauri | ROM
4%

### 🧠 botcoder

AI Assistant
2%

### 🧪 bottest

Tests | Benches
3%

### 🤖 botmodels

Python | ML
3%

### 📋 bottemplates

Bots | Dialogs
2%

### 🔌 botplugin

Browser Extension | JS | Chrome/Firefox
1%
Backend CoreServer, API, Business Logic
DocumentationGuides, API Docs, Tutorials
User InterfaceWeb UI, Admin Panel
Shared LibrariesCommon Types, Utils

#### 🎯 Core Features Status

- LLM Integration Complete
- Vector Database Complete
- BASIC Interpreter Complete
- WhatsApp Channel Complete
- Email Integration Complete
- MCP Client In Progress
- A2A Protocol In Progress
- Multi-Agent System Planned

#### 📊 Component Breakdown

- botserver ~100 modules
- botbook 150+ pages
- botui Web components
- botapp Desktop app
- botlib 7 core files
- botdevice IoT/Embedded
- bottest Test suite
- bottemplates Bot templates

#### 🔧 Technology Stack

- Language Rust
- Web Framework Actix-Web
- UI Framework HTMX + Tailwind
- Desktop Tauri
- Database PostgreSQL
- Vector DB Custom + Hybrid
- ML/AI Python + Rust
- Docs mdBook

#### 📁 Keywords (70+)

- Data Operations GET, SET, SAVE
- HTTP POST, PUT, DELETE
- Messaging TALK, HEAR, SMS
- Files READ, WRITE, UPLOAD
- KB USE KB, FIND
- AI USE MODEL, LLM
- Control FOR, SWITCH, ON
- Integration WEBHOOK, MAIL

#### 🏗️ Architecture Zones

- Core Engine botserver + botlib
- User Facing botui + botapp
- Intelligence botmodels + botcoder
- IoT/Edge botdevice
- Quality bottest
- Content bottemplates + botbook
- Extension botplugin

#### 📈 Project Metrics

- Total Lines ~868K
- Primary Language Rust
- Secondary Python, JS, TS
- Doc Coverage ~40%
- Test Coverage ~8.7%
- Active Modules 11
- BASIC Keywords 70+
- REST Endpoints 100+