How gijela/cr-mentor works
Main System Components
The system architecture should be divided into these key components:
a) Frontend Layer (apps/admin):
• User Interface (React-based)
• Authentication System
• Code Review Interface
• Knowledge Base Management Interface
• Theme and Internationalization Support
b) Backend Services (apps/api, apps/server):
• API Gateway
• Authentication Service
• GitHub Integration Service
• Knowledge Base Service
• LLM Integration Service
• Code Analysis Service
c) External Integrations:
• GitHub API
• LLM Services
• Supabase (for RAG implementation)
• Storage Services
Key Relationships to Highlight
a) Code Review Flow:
GitHub Repository -> GitHub Integration Service -> Code Analysis Service -> LLM Service -> Knowledge Base Service -> User Interface
b) Knowledge Base Flow:
User Interface -> Knowledge Base Service -> Supabase RAG -> Storage Service
Architectural Patterns to Emphasize
• Microservices Architecture (separate apps for admin, server, and API)
• Monorepo Structure (workspace with shared packages)
• Event-Driven Architecture (for real-time updates)
• RAG (Retrieval Augmented Generation) Pattern
Use these visual elements:
• Rectangles: Main services
• Hexagons: External services
• Rounded rectangles: UI components
• Blue: Frontend components
• Green: Backend services
• Purple: External services
• Orange: Data stores
• Gray: Infrastructure components
Implementation Details
a) Frontend Architecture:
• React Components
• State Management
• Routing System
• Internationalization
• Theme System
b) Backend Services:
• API Routes
• Authentication Flow
• GitHub Integration
• LLM Processing Pipeline
• Knowledge Base Management
c) Data Flow:
• User Interactions
• Code Review Process
• Knowledge Base Updates
• Authentication Flow
Technical Stack Indicators
• React
• Next.js
• Supabase
• GitHub API
• LLM Services
• TailwindCSS
• TypeScript