How ghost-oo5/alpha-agi works
Main System Components
a. Frontend Layer (Next.js Application)
• Client-side UI components (/src/apps/*)
• Common components (/src/common/*)
• Layout system (/src/common/layout/*)
• State management stores (/src/common/stores/*)
b. Core Modules Layer (/src/modules/*)
• AI/LLM integrations
• Authentication
• File handling
• Chat processing
• Voice/Speech processing
• Image generation
• Search functionality
c. Backend Layer
• API Routes (/app/api/*)
• TRPC Router (/server/trpc/*)
• Database connections (/server/prisma/*)
d. External Services Integration
• AI Providers (OpenAI, Anthropic, Google, etc.)
• Cloud Services (storage, authentication)
• Third-party tools (Browserless, search engines)
Component Relationships
• Data flow between frontend components and core modules
• API communication paths between frontend and backend
• External service integration points
• State management flow
Key Architectural Patterns
Highlight:
• Next.js Pages Router architecture
• TRPC for type-safe API communication
• Module-based organization for AI services
• Component composition patterns
Specific Implementation Details
Specialized features:
• Chat system architecture (/src/apps/chat/*)
• Beam feature implementation (/src/apps/beam/*)
• Voice call system (/src/apps/call/*)