Skip to main content

The platform behind Korek Treasure

The engine that runs the game.

Live matches, tournaments and leaderboards — driven by a white-label, multi-carrier promotion platform I led the backend for, with my team. Korek Treasure is its most vivid face.

  • Backend engineering
  • API architecture
  • Automation & messaging
  • Game backend

A live view of the game engine: head-to-head and survival matches running in real time, a tournament bracket advancing from four players to a champion, and a leaderboard the points service recomputes as scores change.

One engine, many carriers

The platform behind the play.

Korek Treasure is one branded deployment of a white-label promotion engine — the same platform also runs Syriatel, with direct-carrier-billing integrations for around eleven operators. I led the backend across all of it, with my team.

~11
carrier integrations
~8
countries reached
3
locales · en · ar · ckb
  • Korek
  • Syriatel
  • STC
  • Zain
  • MTN
  • Ooredoo
  • +5 more

The brief

Korek Treasure is a gamified promotion for Korek Telecom subscribers across Iraq, built to drive engagement and retention through play. Players answer quizzes, enter tournaments, battle head-to-head and spin to win — collecting points and credits as they go, with a grand prize on the line.

Behind the consumer game sits a much larger system: a modular Laravel backend powering the gameplay, a coin-and-credit economy and a promotion automation engine that segments subscribers and reaches them over Korek's DCB SMS channel. I led the backend and the platform with my team; Korek owns the brand, and the consumer game design is the team's — my work is the engine underneath.

What players experience

A game built to bring subscribers back every day.

Quizzes, tournaments, head-to-head battles and spin-to-win — designed by the team in Korek's brand. The backend underneath drives every match, score and reward.

Korek Treasure home screen with weekly prizes, daily challenge, spin-and-win, and a leaderboard
// home — daily challenge, spin & win, leaderboard
Korek Treasure game modes screen: daily challenges, puzzle quiz, solo survival, 1v1 battle, tug of war
// game modes — five game types the engine drives

The playful payoff

The moment the engine pays off.

Players see a spin and a leaderboard climb. Underneath, it's the points engine settling a reward and the points service rebuilding the standings — the backend doing its job, made playful.

the spinner the points engine settles

2nd13,6502
1st300,1491
3rd9,8203

leaderboards the points service rebuilds

The gamification, by the numbers

A configurable game system.

Modes, game types, boosters, achievements and rewards are all data-driven — the backend turns a fixed set of building blocks into an endlessly tunable promotion.

2
game modes
5
game types
7
booster types
16
achievements
3
leaderboards
8
redeem types
3
spinner reward classes
10
spinner items

Under the hood

The backend I led, with my team.

The platform is organised into modular namespaces — Promotion, Play, Shop and System — that share infrastructure but own their own models, services and jobs.

  • Promotion automation engine

    Flows, triggers and ordered actions evaluate subscriber conditions — days inactive, message counts, subscription status, segment membership — then queue jobs that send SMS or award points, with cooldowns, quiet hours, concurrency limits and per-user trigger state for idempotency.

  • Template library & versioning

    Reusable message templates with immutable version snapshots, per-language translations, dynamic placeholders and a validate-then-approve workflow. Inbound SMS keywords route to categories, services and response templates.

  • Segmentation & points

    A segmentation service derives lifecycle, engagement, spending, churn-risk, acquisition and tier segments from subscriber activity; a points service manages the ledger and rebuilds grand, weekly and monthly leaderboards.

  • Play orchestration

    A game service drives matchmaking, bot fallback, coin deduction, question release, scoring and boosters — backed by an extensive queue of tournament, challenge, achievement and invitation jobs.

  • DCB SMS over Korek

    A single dispatch service hex-encodes UCS-2 messages and delivers them through Korek’s direct-carrier-billing gateway, with API endpoints to send, receive MO messages and log webhooks — and a promotion log channel for visibility.

  • System notifications & observability

    Operational notifications track severity and status with open / in-progress / resolved / muted transitions, comments, and a rerun mechanism that re-evaluates or re-queues automation triggers.

Korek Treasure store screen with credit packs, boosters and avatars
// store — credit packs, boosters, the redeem catalogue
Korek Treasure leaderboard screen with monthly and weekly podium rankings
// leaderboard — grand, weekly and monthly standings

A coin-and-credit economy

The store sells credit packs, boosters and avatars, while a separate redeem flow lets players exchange points for branded cards and gifts. Every points or credit mutation is recorded in a per-subscriber ledger that also feeds the segmentation engine and the leaderboard calculations.

Korek Treasure player profile with total matches, credits, ranking, tiers and achievements
// profile — matches, credits, ranking, tiers, achievements

Player profile, tiers & achievements

Each player has a profile tracking total matches, credit balance, current ranking, tier level and achievements — alongside subscription management, localisation and gameplay settings. Achievement progress is processed on the queue as players hit milestones.

Platform scope

The backend is built on Laravel with Sanctum-authenticated APIs, Spatie packages for media and translations, Scout-powered search and Laravel queues for all asynchronous work. A web dashboard manages configuration, templates, segmentation, libraries, automation and the play and shop catalogues, while versioned APIs serve the gameplay, store, system and DCB messaging surfaces.

It reads as both a consumer game and an operations platform: a white-label promotion that runs itself — choosing who to talk to, what to say and when — with Korek Treasure as one branded instance and the same engine reaching other carriers. I led the backend and platform with my team; the game design and Korek's brand belong to the team and to Korek.