Storefront
Next.js 16 · React 19
Arabic RTL + English LTR shopping experience
Client workBuilt for an external organization under a paid engagement.
Architecture, system rules, decisions & documented evidence.
NILE PHARMA FOOD / NPF STOREFRONT
A bilingual commerce experience for Nile Pharma Food, built around a clear separation between content and commerce, live product pricing and real purchase flows.
02
Locales / directions
03
Core platform layers
Data path
Payload content → Next storefront → Vendure commerce
Counts summarize the application architecture; they are not performance metrics or proof of completed production transactions.
Tell me what you need and we can define deliverables, timing and cost. A finished brief is optional.
01 / The challenge
A commerce site is more than product images and prices. Editorial content needs a flexible CMS, while SKU, live price, cart and order state belong to a transactional commerce engine.
The project connects those layers without merging their responsibilities: product content from Payload, transactional commerce from Vendure, and Next.js coordinating the experience and server-side operations.
Core decision: a commerce outage must not invent a price, and a CMS read failure should not automatically take down the whole page.
02 / Architecture
The browser does not call Vendure directly; commerce operations pass through server-side Server Actions.
Next.js 16 · React 19
Arabic RTL + English LTR shopping experience
Payload CMS 3 · PostgreSQL
Product copy, categories, media and customer inquiries
Vendure 3 · Shop API
Live variants, pricing, orders, accounts and checkout
PostgreSQL · Worker · Serwist
Persistent jobs, offline fallback, validation and recovery
Payload CMS
Content & media
Next.js
Experience & orchestration
Vendure
Pricing & orders
A simplified architecture view based on the README and source, not a complete deployment diagram of every process and database.
03 / Journey map
Home · Product atlas · Categories
Product dossier · Leaflet PDF · Availability
Cart · Checkout · Confirmation
Login · Registration · Orders · Addresses
Quality sourcing · About · Contact · Policies
04 / Engineering decisions
Payload owns the editorial product catalogue; Vendure owns transactional truth. Product pages resolve content by slug and request live SKU/price data from commerce.
Unavailable or zero-priced variants are not presented as valid offers. Demo catalogue fallback is explicit, labeled and transaction-blocked; production does not silently substitute mock prices.
The browser does not call Vendure directly. Server Actions mediate cart, checkout, authentication and wishlist operations, keeping the commerce boundary inside the Next application.
Locale-prefixed /ar and /en routes, locale-aware metadata and copy parity, logical CSS properties, directional asset handling and a dedicated Arabic display face.
Cart, checkout, confirmation, customer accounts, addresses, order history, password recovery, email verification, wishlist and manually reconciled transfers are represented in the app.
CMS reads can degrade to an explicit unavailable state without taking down the whole page. Missing live prices are omitted, not replaced with invented inventory or pricing.
Validated environment configuration, a separate Vendure worker for queues, backup/restore tooling, security headers, rate limits, health checks and automated regression suites.
05 / Design system
The redesign consolidates previously conflicting visual languages into one system: a light ground sampled from pack photography, navy accents, restrained glass surfaces, Noto Kufi Arabic display type, Manrope and Bricolage Grotesque.
Design tokens
--ng-*
Shared color, spacing, radius, shadow and motion tokens.
RTL / LTR
AR ↔ EN
Logical CSS properties and locale-aware direction.
Glass is used selectively, with surface fallbacks for browsers without backdrop-filter and for reduced-transparency or reduced-motion preferences.
06 / Validation
413/413
Unit tests passing in the handoff report
0
axe violations in the documented route/viewport matrix
80/80
Routes passing the documented crawl audit
0 px
Horizontal overflow in the documented viewport matrix
These figures come from the repository handoff, not a fresh test run during this review. The handoff also reports browser tests with some database-gated skips.
07 / Release gates
The repository documentation reports 25 production dependency audit findings, including 16 high severity. Production-authenticated accounts, live orders and SMTP were not exercised in the cited validation matrix.
Owner evidence is still needed for some retail prices, Ellamuselle availability, actual stock quantities, VAT-inclusive pricing, registration/claims documentation and permission to display the partner logo.
The case study therefore describes the implemented engineering and exposes what remains; it does not claim production commerce, regulatory approval or release gates are fully cleared.
08 / Technology stack
The repository includes logic, browser and accessibility tests, operational tooling, database workflows and deployment configuration—not a marketing UI detached from commerce.
HAND-OFF / 003
The next step is not decorative feature work; it is closing security and commercial approval gates and validating real production data and operations.
Want the practical business breakdown—what this project does, how it runs, and its core advantages?
Tell me what you need and we can define deliverables, timing and cost. A finished brief is optional.
NEXT CASE ↳ FROM THE FILES