How monamatv/tadify works
Main Components
a) Client-Side (Frontend):
• Next.js Application Layer
• Component Library
• Theme System (Light/Dark)
• Client-side State Management
b) Server-Side:
• Next.js API Routes
• Authentication Layer
• External Service Integrations:
• Spotify API Integration
• AI Services (ChatGPT/Gemini)
c) Database Layer:
• Prisma ORM
• Database (implied from prisma.js)
[Client Layer]
• ↑↓
[Server Layer]
• ↑↓
[External Services & Database]
Detailed Component Breakdown
• Relationship with utility functions (src/utils)
• API routes (/api/*)
• Authentication flow (/api/login)
• Playlist management endpoints
• Music data endpoints
• Spotify API Integration
• AI Services Integration (ChatGPT/Gemini)
• Future Payment Gateway (from Todo list)
Key Flows to Highlight
a) Authentication Flow:
User → Login Request → Spotify OAuth → Token Storage
b) Playlist Generation Flow:
User Prompt → AI Service → Spotify API → Playlist Creation
Important Architectural Patterns
• API Route Pattern: Show how the Next.js API routes handle different functionalities
• Component Architecture: Demonstrate the relationship between pages and components
• Service Integration Pattern: Show how external services are integrated
Technical Stack Indicators
• Next.js
• React
• Tailwind CSS
• Prisma ORM
• Spotify SDK
• AI Services