How datakult0r/meta-stack works
Main System Components
a) Frontend Layer:
• Sub-components:
• Pages/Routes (from src/app)
• UI Components (from src/components)
• Client-side Hooks (from src/hooks)
• Theme System
b) API Layer:
• tRPC Routes
• NextAuth Authentication
• API Routes (transcribe, upload)
• Inngest Event Handler
c) Backend Services:
• Supabase Database (via Prisma ORM)
• AI Services Integration
• AWS S3 Storage
• Resend Email Service
• Background Jobs (Inngest)
Connection Flows
• Client → API Layer (tRPC calls)
• API Layer → Database (Prisma queries)
• API Layer → External Services
• Authentication flow with NextAuth
• Background job workflows with Inngest
Specific Implementation Details
Frontend:
• Next.js 14 App Router
• TailwindCSS
• React Components
• TypeScript
API Layer:
• tRPC Endpoints
• NextAuth Integration
• REST API Routes
Backend Services:
• Prisma ORM
• Multiple AI Providers
• Email Service
• File Storage
Key Architectural Patterns to Highlight
• Type-safe API calls with tRPC
• Server-side rendering with Next.js
• Authentication flow with NextAuth
• Background job processing
• Email templating system
• Theme system implementation
Additional Elements
Supporting elements:
• Environment configuration
• Build/Deploy pipeline
• Development tools (Storybook)
• Type system flow
Important Notes
• Type-safety aspect between frontend and backend
• Distinction between server and client components
• How the authentication flow integrates with the rest of the system
• How background jobs are processed through Inngest
• Email template system architecture
• How the theme system is implemented
Remember to maintain a balance between detail and clarity, focusing on the architectural decisions that make this template unique, such as the AI integration options and the type-safe API layer with tRPC.