scriptometry

PRJ-04/Case study · Barakah

Less food wasted, in three markets.

A consumer app that sells restaurants’ and stores’ surplus food as discounted bags for pickup, live in Saudi Arabia, Bahrain and Kuwait, in Arabic and English.

Core stack
React NativeExpoTypeScriptMoyasarApple PaySTC PayBraze
/work/barakah
§ 01Challenge

Good food, not thrown away.

Restaurants and stores end the day with good food they cannot sell. Barakah sells it as discounted surprise bags for pickup, so less is wasted and people eat for less.

The app had to work for a busy, Arabic-first audience in more than one country, each with its own currency, phone format and favourite way to pay, without slowing down a live product.

§ 02What we built

One app, three markets.

From finding a bag nearby to paying with the method you already use.

BUILD SPECPRJ-04/work/barakah

What we built

  1. Stores on a map with clustering, live bag availability, pickup windows and flash offers
  2. Three markets in one app: country switch, local currency and phone formats
  3. Country-aware deep links, so a push message opens the right market
  4. Native Apple Pay with Mada, card payments with 3-D Secure, and STC Pay
  5. A server-driven home screen, a rewards program, referrals and savings tracking
  6. Guest browsing with a cart that carries over at sign-in
  7. Automated releases and over-the-air updates

Built with

App
React NativeExpoTypeScriptReact Query
Payments
MoyasarApple PayMadaSTC Pay
Engagement
BrazeMixpanelIntercom
Delivery
EAS buildsOTA updatesGitHub Actions
§ 03How it works

Country-aware from the first tap.

One codebase, with the market deciding currency, formats, payment methods and content.

  1. Market
    • Country switch
    • Currency and phone format
    • Deep links
  2. App
    • Server-driven home
    • Map and stores
    • Cart and rewards
  3. Payments
    • Apple Pay with Mada
    • Cards, 3-D Secure
    • STC Pay
PRJ-04SYSTEM MAP
  1. Server-driven home

    The home screen is assembled from sections the backend sends, cached on the device, so each market gets its own content without a release.

  2. Native where it matters

    Apple Pay runs through a custom native module, and rich push is set up with its own iOS extension.

  3. Local money

    Each market shows its own currency in Arabic and English, with three decimals for the Bahraini and Kuwaiti dinars.

§ 04Security and quality

Safe by default.

Protections built into the app’s everyday flows.

  1. Signed requests

    Every request carries an encrypted timestamp, so it cannot simply be replayed.

  2. Trusted time

    Pickup windows depend on the clock, so the app checks the device time against the server before you order.

  3. Private storage

    Secure storage is excluded from device backups, and the app accepts encrypted connections only.

  4. Feature flags

    New features sit behind flags that fail closed, so a bad rollout can be switched off.

§ 05Outcome

Live in three markets.

One app serves customers in Saudi Arabia, Bahrain and Kuwait, in Arabic and English, with the payment methods each market expects.

3 GCC marketsserved by one app
§ 07Start/brief.ts

Building something like this?

Tell us about it. We come back with questions and the next step: a short discovery call.

Book a call →
What do you need?
No spam. No sales sequences.