How ahmet-dedeler/ai-llm-comparison works
Main Components Identification
The system appears to be a modern web application with the following key components:
a) Frontend Layer (Next.js Application)
• Client-side components
• Server-side components
• Static assets
b) External Services
• BerriAI's LiteLLM (Data Source)
• Supabase (Database/Backend)
• v0 (Likely for deployment)
[Client Browser] → [Next.js Application] → [External Services]
Specific Elements
┌─ Client Layer ─────────────────────────┐
• Browser / User Interface │
• ┬─────────────────────┘
• ↓
┌─ Next.js Application ─────────────────┐
• ┌─ Components ─┐ ┌─ Data Utils ────┐ │
• Header │ │ - aiModels.ts │ │
• Calculator │ │ - helpers.ts │ │
• Comparison │ │ - providerMap │ │
• ┘ └────────────────┘ │
• ┌─ UI Library ─┐ ┌─ State Mgmt ──┐ │
• Button │ │ - TypeScript │ │
• Card │ │ - Types │ │
• Table │ └────────────────┘ │
• ┘ │
• ┬─────────────────────┘
• ↓
┌─ External Services ──────────────────┐
• ┌─────────────┐ ┌────────────────┐ │
• LiteLLM │ │ Supabase │ │
• (Data) │ │ (Backend) │ │
• ┘ └────────────────┘ │
• ┘
Additional Notes
• A note about the GitHub Actions workflow for model updates
• Relationship with BerriAI's LiteLLM as the data source
• Role of Supabase in the application
• Public assets directory for static resources