Return to Portfolio Home
SYS.03PRIVATE SYSTEM
Enterprise SaaS Architecture•2024 – Present

Labika | Islamic Pilgrimage by Proxy Platform

لبيك | منصة العمرة بالإنابة والخدمات الرقمية

A dedicated pilgrimage-by-proxy platform connecting seekers with verified performers in Mecca, featuring step-by-step ritual verification and secure escrow payments.

Engineering Role
Lead Full-Stack Architect & Systems Engineer
Architecture Scope
Core Team · 3 Applications (API Engine, Operations Dashboard, Marketing Portal)
Core Backend & DB
NestJS · TypeScript · TypeORM
System Status
Private Enterprise System
labika.sys
Private Enterprise System
Request Technical Consultation
Disbursement Reconciliation
100%

Zero ledger discrepancies across Bank, PayPal, and Crypto payout rails

Architecture Scope
3 Applications

Modular ecosystem consisting of Backend API, Operations Dashboard, and Marketing Web

Ritual Verification Integrity
4 Gates

Sequential verification across Ihram, Tawaf, Sa'i, and Haircut milestones

01 //

01: Operational Challenge & Concurrency Bottleneck

Engineering Ownership & Architecture Scope

I architected and built the three-tier system: the core API engine, the administrative governance dashboard, and the public web portal.

01: Operational Challenge & Concurrency Bottleneck

Arranging Umrah on behalf of elderly, ill, or deceased family members (Badal Umrah) often lacks trust, ritual verification, and payment protection. Seekers have no clear proof that rites are fulfilled correctly, while performers face payment delays across international borders.

Concurrency & State Contention

Preventing race conditions during simultaneous payout withdrawals and payment webhooks, and preventing fraudulent instant ritual completions without blocking database transactions.

DIAGNOSIS_LOGGED
02: Engineered Solution & ACID Guarantees

I engineered a pessimistic-locked transaction model that transitions funds through five distinct balance states (escrow hold, pending earnings, locked disbursement, available balance, platform fee). I paired this with a time-gated ritual state machine requiring minimum duration thresholds and media proof before releasing escrowed funds.

ARCHITECTURAL_PARITY
02 //

Core Subsystem Modules & Domain Isolation

Financial Engine

Multi-Partition Escrow & Wallet Ledger

Pessimistic locking and transactional accounting (Available, Locked, Pending, Converted, Refund) guaranteeing zero double-spending during payouts.

MODULE_ISOLATED
Pilgrimage Core Engine

Time-Gated Ritual Progression State Machine

Sequential validation engine enforcing prerequisite checks, duration minimums, and media proof uploads for each sacred pillar.

MODULE_ISOLATED
Communication Gateway

Real-Time Chat & Presence Mesh

WebSocket gateway with multi-device socket mapping, localized profanity filtering, and automated ritual milestone event insertion.

MODULE_ISOLATED
Job Processing Subsystem

Notification Worker

Worker queue with exponential backoff handling push notifications, SMS OTP pipelines, and payment expiration tasks.

MODULE_ISOLATED
03 //

Architectural Capabilities & Engineered Workflows

CAP.01

Performer Matching

Allows verified pilgrims in Mecca to accept requests with custom schedules.

FEATURE_VERIFIED
CAP.02

Four-Stage Ritual Verification

Requires photo and video milestones at each sacred pillar before moving forward.

FEATURE_VERIFIED
CAP.03

Escrow Payment Ledger

Holds funds securely and releases payouts only after full verification.

FEATURE_VERIFIED
CAP.04

Multi-Rail Disbursements

Processes payouts through bank transfers, digital wallets, and payout rails.

FEATURE_VERIFIED
CAP.05

Direct Chat & Milestone Updates

Keeps seekers and performers connected with real-time progress updates.

FEATURE_VERIFIED
CAP.06

Automated Reminders

Dispatches scheduled notifications and verification prompts to performers.

FEATURE_VERIFIED
04 //

System Topology & Architectural Data Flow

END-TO-END TRANSACTIONAL TOPOLOGY[5 NODES]
01. CLIENT

Marketing Landing Portal

Bilingual Next.js 16 web portal with onboarding flow and clear ritual explanations.

02. CLIENT

Admin & Operations Dashboard

Operations portal for Umrah request oversight, chat moderation, and payout approvals.

03. SERVICE

Core API & WebSocket Server

NestJS application managing JWT/RBAC auth, ritual state machines, and payment webhook listeners.

04. SERVICE

BullMQ Queue Workers

Distributed Redis queue processing push notifications, SMS OTPs, and scheduled expiration jobs.

05. DB

Database, Ledger & Object Storage

ACID-compliant MySQL relational store, Redis session cache, and S3 media storage.

05 //

Production Technology Matrix & Ecosystem

Backend Engine (`server`)12 components
NestJSTypeScriptTypeORMMySQLBullMQRedisSocket.ioExpress 5WinstonFirebase Admin SDKTwilio SDKAWS/DO S3 SDK
Operations Dashboard (`dashboard`)10 components
Next.js 16 (App Router)React 19Redux Toolkit (RTK Query)TanStack TableTanStack VirtualTailwind CSS v4Radix UIRechartsnext-intl (RTL/LTR)AutoForm (Zod)
Marketing Landing Portal (`landing-page`)8 components
Next.js 16 (Standalone Output)React 19Tailwind CSS v4Framer MotionSwiperRadix UInext-intl (Bilingual AR/EN)SEO Structured Schema
Disbursement & Third-Party Hub5 components
Credit Card / Mada Payment Webhooks (HMAC Verified)SWIFT / IBAN Bank Wire EnginePayPal Payouts APIBinance Crypto Pay (USDT)Al-Adhan Astronomical Prayer API
Adjacent System Case StudiesINDEX_NAV
ARCHITECTURAL CONSULTING & CONTRACTS

Next Steps & Technical Inquiries

Looking for a systems architect or full-stack engineer for your next high-throughput platform? Let's discuss architecture and technical requirements.