How bayllama/marinabox works
Main Components
a) Frontend Layer:
• React-based UI (evident from .jsx files)
• Key components: Dashboard, ChatInput, LiveAgentConsole, SessionDialog, SessionList
• Built with Vite (shown by vite.config.js)
b) Backend Core:
• Python-based server (server.py)
• SDK interface (sdk.py)
• API layer (api.py)
• Configuration management (config.py)
c) Environment Management:
• Local Manager (local_manager.py)
• Cloud Manager (cloud_manager.py)
• Models layer (models.py)
d) Computer Use Module:
• Tools collection (computer_use/tools/)
• Execution loop (computer_use/loop.py)
• Various tool implementations (bash.py, computer.py, edit.py, run.py)
e) External Dependencies:
• Docker containers (marinabox-browser, marinabox-desktop)
• Anthropic API integration
• noVNC for remote desktop access
Component Relationships
• Frontend → Backend API (REST/WebSocket communication)
• SDK → Environment Managers
• Environment Managers → Docker Containers
• Computer Use Module → Tools
• External Services Integration
Specific Design Elements
Use these visual elements:
[Frontend Layer (UI Components)]
• ↓
[Backend API/SDK Layer]
• ↓
[Environment Management Layer]
• ↙ ↘
[Local Docker] [Cloud Services]
• ↓
[Computer Use Module]
• ↓
[External Services]
Important Details
• Session management flow
• Sandbox isolation boundaries
• API communication paths
• Tool execution pipeline
• Security perimeter