WorkDigital platforms

Al Hatab Rewards: from signing in to a card at the counter.

We built Al Hatab’s web member area so customers can sign in with a phone number and code, see their points and show a membership barcode at the counter. The Arabic and English experience connects directly to the brand’s existing customer system, keeping the member record where the business already manages it.

Organisation
Al Hatab Foods, Saudi Arabia
Role
Design, architecture and engineering
Stack
  • Astro
  • Cloudflare Pages
  • Cloudflare Workers, KV
Status
In production
Since
2024 to present
  1. Join register or sign in with a phone number and code
  2. View see available points and upcoming expiry
  3. Scan bring the membership card to the counter

Give members access to the record the business already uses.

Al Hatab needed a member area connected to its existing customer system. Customers needed a straightforward way to join, sign in and retrieve their card in either language. We built that interface around the existing records, with temporary storage for the sign-in flow.

A phone number, a code and a membership card.

The service checks the phone number against the customer system and guides the visitor through verification and registration where needed. Once signed in, members can see their points, upcoming expiry and a barcode generated from their membership ID. Short-lived codes and the browser’s session timer support the sign-in journey.

Check the flow at each step.

The Workers validate API keys and apply bot checks according to the operation and environment settings. Shared utilities handle those checks, request identifiers and calls to the customer system. Playwright tests exercise registration and sign-in in the testing environment, where configured bypasses allow automated runs. Production frontend builds remove console output.

Small services with clear responsibilities.

The Astro frontend handles the bilingual member experience. Four Cloudflare Workers handle customer lookup, verification codes, temporary phone storage and customer creation or updates. They share utilities for phone formatting, OAuth, request checks and logging, so common behaviour can be maintained in one place.

A view of the work happening behind each visit.

The historical Cloudflare sample recorded here covers twelve weeks and approximately 1.59 million requests across the four Workers. Normalised to thirty days, it represents about 568,000 requests, 256,000 storage reads and 114,000 writes. These are infrastructure operations, so they should not be read as counts of members or successful sign-ins. The figures are rounded, sampled and exclude logging Workers.

Historical Cloudflare sample, shown as 30-day averages.

Connect membership to the wider customer experience.

Rewards sits alongside Al Hatab’s content platform and link service. Each has a focused job: publishing content, bringing visitors to the right destination or giving members access to their account. The rewards interface connects to the brand’s customer system rather than maintaining a separate permanent member database.

Next05Digital platform 2025Al Hatab Foods: one link, every channel

A link service on Al Hatab’s own domain, built to route visitors and connect app activity to campaigns. The Worker is deployed and tested in staging; the updated mobile integration is awaiting release and device verification.

All work