Album Cart - High-Performance Digital Asset Marketplace
🎯 The Core Problem
Indian photo studios were relying on heavily fragmented and manual workflows. Sharing multi-gigabyte PSD master files through generic cloud drives like Google Drive or Dropbox consistently hit bandwidth limits, caused failed downloads, and required manual payment screenshot verifications over WhatsApp. Generic off-the-shelf e-commerce templates failed miserably to showcase the high-density template spreads needed for this specific niche.
- What was broken?: Studio owners wasted 10 to 14 hours manually designing albums, dealing with download failures, and tracking payments. This delayed wedding album deliveries to clients by weeks.
- The Technical Bottleneck: Delivering massive 10GB+ binary assets directly from a standard monolithic backend would cause server timeouts, memory exhaustion, and bankrupt the project with immense bandwidth egress costs.
- The Business Impact: The lack of a streamlined, automated delivery system meant creators spent more time doing customer support for failed downloads than actually creating new designs.
âš¡ The Architectural Solution (How I Solved It)
Built using Vite, React 18, TypeScript, and Supabase, the platform completely decouples the heavy file delivery pipeline from the frontend application layer.
- Frontend Strategy: A highly optimized, virtualized React interface prioritizing an edge-to-edge layout with zero wasted whitespace. I used aggressive code-splitting, lazy decoding, and GPU-accelerated transforms to ensure sub-100ms UI responsiveness while displaying dozens of high-resolution image spreads.
- Backend & Data Pipeline: Supabase PostgreSQL manages relational state, user authentication, and Razorpay webhooks. The actual multi-gigabyte files are offloaded to Cloudflare R2, utilizing Anycast edge networks and ephemeral presigned URLs to bypass the Vercel/Node compute layer entirely.
- Data Integrity: Strict PostgreSQL Row-Level Security (RLS) policies ensure that unauthenticated users cannot scrape master download links, and order records are cryptographically bound to authenticated user sessions.
style I fill:#f97316,stroke:#ea580c,stroke-width:2px,color:#fff style E fill:#10b981,stroke:#047857,stroke-width:2px,color:#fff ```
