How delta-kor/ma-eum works
Main System Components
a) Frontend Layer:
• Next.js Application (app directory structure)
• Main feature modules:
• About section
• Video player
• Music mixer
• Talk (social/community feature)
• Spark (AI-related feature)
• Calendar/Schedules
b) API Layer:
• tRPC API endpoints
• Video API
• Cache management API
c) Backend Services:
• Prisma ORM with database
• Authentication system
• Cache system
• File storage (for media)
Architectural Patterns to Highlight
a) Next.js App Router Architecture:
• Route groups: (main), (header), (artistic), (details), (neutral)
• API routes structure
• Server and client components separation
b) Feature Modules:
• Clear boundaries between different features
• Shared components and utilities
• Provider pattern implementation
Specific Implementation Details
a) Data Flow:
• Client-server communication via tRPC
• API routes interaction
• Cache invalidation paths
• Media content delivery
b) State Management:
• Provider hierarchy
• Context relationships
• Data persistence
┌─────────────────────────────────────────────┐
• Client Layer │
• ┌─────────┐ ┌─────────┐ ┌─────────────────┐│
• About │ │ Video │ │ Music Mixer ││
• ┘ └─────────┘ └─────────────────┘│
• ┌─────────┐ ┌─────────┐ ┌─────────────────┐│
• Talk │ │ Spark │ │ Calendar ││
• ┘ └─────────┘ └─────────────────┘│
• ┬───────────────────────┘
┌─────────────────────▼───────────────────────┐
• API Layer │
• ┌─────────────┐ ┌──────────┐ ┌───────────┐ │
• tRPC API │ │Video API │ │Cache API │ │
• ┘ └──────────┘ └───────────┘ │
• ┬───────────────────────┘
┌─────────────────────▼───────────────────────┐
• Service Layer │
• ┌─────────┐ ┌──────────┐ ┌───────────────┐ │
• Prisma │ │ Auth │ │ File Storage │ │
• ┘ └──────────┘ └───────────────┘ │
• ┘