Storefront Overview
The Spectra storefront is a Next.js-based e-commerce site where customers browse and purchase refurbished devices.
What it does
- Product catalog with categories, variants, reviews
- Cart and checkout with tax, shipping, promos, gift cards
- Customer accounts with order history, wishlist, returns, privacy tools
- Mobile-responsive, SEO-optimized
Where to find it
- Storefront URL: your public domain (e.g.
shop.example.com) - Admin config: Spectra admin → Commerce section
- Source:
storefront/directory in the repo
Key concepts
Tenant — each white-label storefront runs on its own tenant (source ID). Products, categories, and orders are isolated per tenant.
Product vs. Variant — a product (e.g. "iPhone 13") has multiple variants (different colors, storage, carriers). Customers select the variant they want at the product detail page.
Cart — server-side cart tied to a UUID. Can be created anonymously and upgraded to a customer account at checkout.
Order — created at checkout. Once placed, cart items are locked and inventory is allocated to the order.