Book a call
Choose how to read this case

Client workBuilt for an external organization under a paid engagement.

Architecture, system rules, decisions & documented evidence.

← All workProduct case file / 003
Commerce platformArabic / EnglishActive build · release gates remain

NILE PHARMA FOOD / NPF STOREFRONT

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.

System snapshotNPF / WEB

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.

Role: Product, platform & experienceDomain: Health commerce2026

Have a similar product or workflow in mind?

Tell me what you need and we can define deliverables, timing and cost. A finished brief is optional.

Discuss your project →

01 / The challenge

One storefront. Separate systems. One source of truth per data type.

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

Each layer has a clear boundary.

The browser does not call Vendure directly; commerce operations pass through server-side Server Actions.

01

Storefront

Next.js 16 · React 19

Arabic RTL + English LTR shopping experience

02

Content CMS

Payload CMS 3 · PostgreSQL

Product copy, categories, media and customer inquiries

03

Commerce engine

Vendure 3 · Shop API

Live variants, pricing, orders, accounts and checkout

04

Operations

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

From product discovery to post-purchase.

Discovery

Home · Product atlas · Categories

Product

Product dossier · Leaflet PDF · Availability

Purchase

Cart · Checkout · Confirmation

Account

Login · Registration · Orders · Addresses

Trust

Quality sourcing · About · Contact · Policies

04 / Engineering decisions

Reliability starts by refusing to invent data.

01↗

Content and commerce are separate

Payload owns the editorial product catalogue; Vendure owns transactional truth. Product pages resolve content by slug and request live SKU/price data from commerce.

02↗

Never invent a live price

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.

03↗

Commerce stays server-side

The browser does not call Vendure directly. Server Actions mediate cart, checkout, authentication and wishlist operations, keeping the commerce boundary inside the Next application.

04↗

Arabic is a first-class interface

Locale-prefixed /ar and /en routes, locale-aware metadata and copy parity, logical CSS properties, directional asset handling and a dedicated Arabic display face.

05↗

Commerce flows, not just screens

Cart, checkout, confirmation, customer accounts, addresses, order history, password recovery, email verification, wishlist and manually reconciled transfers are represented in the app.

06↗

Recover gracefully when data is down

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.

07↗

Operations are part of the product

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

Nile Glass — glass with a job to do.

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

Reported evidence — and its limits.

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

A passing build is not a production sign-off.

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

Experience, content, commerce and operations.

Next.js 16React 19TypeScriptTailwind CSS v4Payload CMS 3Vendure 3PostgreSQLSerwist PWAVitestPlaywrightaxe-core

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

Commerce engineering with visible boundaries.

The next step is not decorative feature work; it is closing security and commercial approval gates and validating real production data and operations.

Switch Reading Lens · 02

Want the practical business breakdown—what this project does, how it runs, and its core advantages?

Have a similar product or workflow in mind?

Tell me what you need and we can define deliverables, timing and cost. A finished brief is optional.

Discuss your project →

NEXT CASE ↳ FROM THE FILES

OLTRÈ Collective