Headless E-Commerce Reference Architecture for 143 Fragrance
An internal prototype exploring how a decoupled Next.js + MongoDB storefront eliminates third-party script bloat and speeds up product navigation.
Native App Functions
Five common storefront app functions were implemented natively in the reference architecture.
The Project
143 Fragrance (Reference Prototype)
143 Fragrance is an internal concept build and reference storefront engineered to evaluate headless e-commerce architectures.
Technologies Used
The Architecture Challenge
Monolithic e-commerce templates often accumulate third-party scripts that delay page interaction and complicate custom design requirements.
Standard hosted templates frequently rely on external widget scripts for carts, product variations, and reviews. We engineered an app-free Next.js + MongoDB reference prototype to test the speed and flexibility benefits of a custom headless architecture.
Execution Timeline
Catalog Schema
Structured MongoDB schemas for perfume collections, scent notes, and product variants.
Next.js Storefront
Built the responsive UI shell with server components and edge rendering.
Media Optimization
Implemented responsive image sets and preloading for featured fragrance bottles.
Cart & Checkout Handler
Constructed lightweight Node.js API handlers for cart states and order workflows.
Engineering Decisions
How We Solved the Bottlenecks
Problem
Standard template stores often require multiple external app scripts for basic product features.
Root Cause
Monolithic platforms pushing merchants toward third-party hosted widgets instead of native code.
Solution
Engineered native React state handlers for product discovery sets, cart drawers, and variant switches.
Architectural Result
Eliminated external JavaScript dependencies while keeping the client bundle lean.
Problem
Slow database queries during multi-attribute perfume searches can degrade buyer experience.
Root Cause
Unindexed relational queries across complex fragrance notes and volume variations.
Solution
Structured indexed MongoDB collections for instant lookups across scent families and sizes.
Architectural Result
Reduced catalog query latency to fast localized database lookups.
import Image from 'next/image';
import Link from 'next/link';
export default function ProductCard({ product }) {
return (
<div className="product-card bg-[#0a0a0f] border border-white/5 p-4 rounded-xl">
<div className="relative w-full h-48 mb-4">
<Image
src={product.imageSrc}
alt={product.title}
fill
sizes="(max-width: 768px) 100vw, 33vw"
priority={product.isFeatured}
className="object-cover rounded-lg"
/>
</div>
<h3 className="text-sm font-bold text-white mb-2">{product.title}</h3>
<p className="text-xs text-indigo-400 mb-4">{product.price}</p>
<Link
href={`/products/${product.slug}`}
prefetch={true}
className="btn-premium py-2 text-center text-xs block rounded-full"
>
View Product
</Link>
</div>
);
}Next Step
Explore our engagement models and price segments
Case Study FAQ
Frequently Asked Questions
Why build a headless prototype instead of using a standard template?
↓
How are products managed in this architecture?
↓
You May Also Like
Headless Luxury Storefront for Indrani Jewelers
How we replaced a slow WooCommerce plugin stack with a custom Next.js storefront and MongoDB catalog to deliver fast, reliable product browsing.
Shopify Theme & Script Optimization
How we replaced slow third-party apps with native Liquid features to reduce script payloads and eliminate monthly app fees.
Ready to optimize your storefront's conversion?
Schedule a free strategy consult with our engineers. We will inspect your theme logic, locate load-blocking scripts, and deliver a detailed speed increase action plan.
