How sun33t/suneet-codes works
Main System Components
a) Frontend Layer:
• Next.js Application (App Router)
• Client-side Components
• Server-side Components
• Static Pages
• Dynamic Routes
b) External Services:
• Cloudinary (Image Management)
• PostHog (Analytics)
• Resend (Email Service)
• Cloudflare Turnstile (Security)
c) Content Management:
• MDX Content Collections
• Static Content
App Router
• Pages (Static & Dynamic)
• Components
• UI Components
• Layout Components
• Feature Components
• Content
• MDX Articles
• Static Content
Data Flow Indicators
• Content rendering flow
• API calls to external services
• User interaction paths
• Email submission flow
• Analytics tracking
Key Elements to Highlight
a) Application Features:
• Dark/Light mode implementation
• Contact form with Turnstile protection
• Article system with MDX
• Analytics integration
• Image optimization with Cloudinary
b) Technical Implementation:
• Environment variable handling (t3-env)
• Type safety
• Server-side vs. Client-side components
• Content collection management
Specific Implementation Details
a) Page Routes:
/
• /about
• /articles
• /[slug]
• /contact
• /following
• /projects
• /uses
b) Component Architecture:
components/
• UI (shadcn/ui)
• Typography
• Layout
• Feature-specific
Integration Points
Integration points with external services:
• Cloudinary for image optimization
• PostHog for analytics
• Resend for email handling
• Turnstile for form protection
Development Workflow
A small section showing:
• Local development setup
• Environment variable management
• Build and deployment process