Project · 2026, MVP

SoukPay.

Offline-first point of sale for Moroccan souks and Grand Taxis, with a tourist view and a merchant view on one phone.

rolefounder · design + build
stackKotlin, Jetpack Compose, Material 3, Hilt, Gemma 4, Cactus, on-device AI
statusbuilding · MVP
usersMVP · Marrakech and Fes
SoukPay.
The problem

Bargaining without a shared language or signal.

Tourists fear an unfair price and cannot follow the currency conversion. Merchants can sell below cost during a fast negotiation. Deep in the medina, the mobile network often fails.

How it works

One phone, two screens, zero network calls.

The tourist sees a clear basket in EUR or USD. The merchant sees a high-contrast Darija view with the live margin, and an alert when the price falls below cost. A taxi mode shows the official fare per seat. Everything runs on the device.

01Dual-screen checkoutTurn the phone 180 degrees to switch between the tourist basket and the merchant view.
02Margin guardLive margin in Darija and Arabizi, with an alert below the floor price.
03Offline by designOn-device models and no network calls, built for the medina.
Small language model

A Darija translator small enough for the phone.

Built in the prototype: Darija and English translate offline on a Pixel 10. A small language model (Gemma 4 E2B, 4-bit, run by the Cactus engine) shows its first word in about 1.1 seconds. On a 125-line souk bargaining test set it scores chrF 68, up from 52 with a plain prompt, and it keeps every price intact.

Next, fine-tuning: the training path already works end to end on a test run (LoRA on Colab, 4-bit conversion, back on the phone), and the change survives the conversion. Planned: train on real Darija data, English first and French after, with larger open Darija models as teachers to produce the training data.

Also planned: Cactus Needle (cactuscompute.com/needle), a tiny tool-calling model of 8 to 29 MB, to turn the English side of each turn into an exact action. It is not wired in yet. Needle reads English only, so it will only read the English text.

The flow

A fair sale with no network.

  1. 01Scan itemOn-device vision reads the product.
  2. 02Tourist basketPrices in EUR or USD.
  3. 03NegotiateTurn the phone between both sides.
  4. 04Margin guardDarija view alerts below the floor price.
  5. 05Pay offlineThe sale closes with zero network calls.
Both sides see the same deal in their own language, and the merchant never sells below cost by accident.
SoukPay. | Belghitis