How poemsforaphrodite/eval works
Main Components
a. Frontend Layer:
• Pages (Dashboard, Playground, Settings, etc.)
• UI Components (from app/components)
• Client-side State Management
• Use blue coloring for frontend components
b. API Layer:
• Authentication APIs (/api/auth/*)
• Admin APIs (/api/admin/*)
• Model Management APIs (/api/manage-models/*)
• Evaluation APIs (/api/evaluations/*)
• Use green coloring for API components
c. Authentication System:
• Google OAuth integration
• Local authentication flow
• To User Management
• Use yellow coloring for auth components
d. Database Layer:
• MongoDB connection (indicated by mongodb.ts)
• Indexes and schemas
• Use purple coloring for database components
e. External Services:
• OpenAI API integration
• Google OAuth service
• Use orange coloring for external services
Connection Flows
Client Components → API Routes → Database
• ↘ External Services
Authentication Flow → User Sessions → Protected Routes
Specific Implementation Details
a. Frontend Architecture:
• Next.js App Router structure
• Server and client components
• Shared UI components library
b. API Structure:
• Related endpoints (auth, admin, models)
• Middleware layers
• Protected routes
c. Data Flow:
• User authentication flow
• Model management pipeline
• Evaluation process flow
Special Features to Highlight
• AB Testing System
• Model Management Interface
• UMAP Visualization
• Performance Analytics
Technical Specifications
A technical stack section showing:
• Next.js 13+ (App Router)
• MongoDB
• TypeScript
• TailwindCSS
• Authentication Providers