Chocobliss by Tasnim
A premium, artisanal chocolate e-commerce platform featuring a luxury design, a custom 90-frame scroll-linked canvas animation on the homepage, secure user accounts with loyalty points, and a highly protected admin CMS for managing products, orders, and site content.

Architecture & Implementation Details
Chocobliss by Tasnim is a full-stack, production-ready e-commerce platform designed for a luxury artisanal chocolate brand. The project combines a high-end, warm aesthetic (Deep Cacao, Cream, Terracotta, and Warm Gold) with a custom 90-frame scroll-linked HTML canvas animation on the homepage.
The architecture is built on Next.js 14+ (App Router) with TypeScript and Tailwind CSS, utilizing Redux Toolkit for cart and user state management. The backend is powered by Next.js Server Actions and Prisma ORM connected to a serverless NeonDB (PostgreSQL) database. Authentication is handled by Supabase Auth, ensuring secure session management.
Key technical decisions focused heavily on security and performance. The platform enforces strict server-side Role-Based Access Control (RBAC), ensuring only verified admins can access the CMS. All user inputs are validated using Zod on the server, and a token bucket rate limiter (10 capacity, 1 refill every 2 seconds) protects sensitive operations like authentication, order creation, and review submission. To ensure optimal performance, the site implements image compression, lazy loading, API caching, and dynamic imports, while protecting sensitive data by masking PII and using generic error messages.