
Cosmictics
A GPU-accelerated cosmetics e-commerce storefront built with Next.js 16 App Router, React 19, Tailwind CSS 4, and TypeScript — featuring real-time WebGPU-powered visuals via TypeGPU & Redraw, persistent cart/favorites with Redux Toolkit, and an interactive swatch laboratory.
About This Project
Cosmictics is an immersive cosmetics e-commerce experience that pushes the boundaries of web performance with GPU-accelerated rendering throughout. The storefront features a WebGPU-powered global background with mouse-tracking orbital rings and cursor trails, a hero section with 6 animated gradient curves rendered via TypeGPU shaders, and a fully interactive Cosmic Swatch Laboratory where users draw GPU-rendered gradient strokes with glow effects across 5 cosmetic formulations. Product cards feature Redraw-powered neon border animations on hover. State management uses Redux Toolkit with Redux Persist for cart and wishlist data surviving browser refreshes, while a custom high-fidelity Redraw mock provides the fitPath, GradientAlongPath, SingleStrokeBrush, and Feather APIs aliased via webpack.




