Lirevon
ServicesWorkIndustriesPricingAboutContact
العربية
Book a free audit
Loading
Lirevon

A creative + AI studio in Lahore, building brands, websites and AI consoles for the Gulf.

Lahore, Pakistan

Studio

About
Work
Pricing
Contact

Services

Brand & logo
WordPress
Web apps
AI consoles
Mobile apps
Content & video

Industries

Clinics
Restaurants
Real estate
Retail
Professional services

Resources

  • Blog
  • Tools
  • Automations

Explore

Work
Solutions
Answers
Locations
Glossary
Explore All

Start a project

  • hello@lirevon.com
  • WhatsApp
  • Book a call

© 2026 Lirevon. All rights reserved.

PrivacyTerms
LinkedInInstagramBehance

Work / Murjan Client Portal

All work

Enterprise systems

Murjan Client Portal

Client:Multi-tenant SaaS platform for Gulf SMEs · BahrainYear:2024Industry:SaaS / Business servicesDuration:14 weeks
  • enterprise
  • saas
  • bahrain

Overview

Self-hosted Supabase replaced a fragile Firebase setup powering a 14 000-user SME portal: row-level security enforces tenant isolation, edge functions handle VAT-invoice generation, and the built-in realtime channel streams job-status updates. Infra cost drops 61%; data residency now fully within Bahrain AWS region.

The challenge

The existing Firebase setup lacked row-level tenant isolation, causing occasional cross-tenant data leaks that scared away enterprise prospects. Bahraini data-localisation requirements also mandated that all PII stay within the Gulf. The team needed a migration path with zero downtime across 14 000 active users.


The solution

Our approach

We adapted the open-source Supabase stack — self-hosted on Bahrain AWS eu-south-1 — and wrote Postgres RLS policies that enforce tenant_id scoping on every table, removing the application-layer check surface. Edge Functions replaced Cloud Functions for VAT PDF generation, and Supabase Realtime replaced Firestore listeners for live job-status streams. A dual-write migration script ran for three weeks before the final cutover.


Outcomes

What we delivered

Infra cost reduced 61% vs Firebase plan

Zero cross-tenant data leaks since cutover

Bahrain data-residency compliance achieved

VAT invoice generation latency 8s → 1.1s


Key metrics

−61%Infra cost reduction
100% BahrainData residency
1.1sInvoice gen latency
0Tenant data leaks

Tech stack

  • Next.js 15
  • Supabase (self-hosted)
  • Supabase Edge Functions
  • Supabase Realtime
  • Tailwind CSS
  • Zod
  • pdfkit

Services

  • Supabase self-hosted migration
  • RLS policy design
  • Edge function development
  • Zero-downtime cutover
  • Compliance documentation

Client testimonial

“The migration was invisible to our users and the RLS architecture finally let us pitch regulated clients without a legal fight. Worth every dirham.”

— Faisal Al-Hardan, CTO — Murjan Technologies


Related work

More in this category

Management & strategy consultancy · Dubai

Afkar Consulting Group

AI-powered research and proposal factory: replaces 6 junior analysts with 1 ops lead. Proposal first-draft time 5 days → 4 hours; win rate on submitted proposals rises from 31% to 47%.

  • enterprise
  • consulting
  • uae

Result:6 analysts → 1 ops; proposal draft 5 days → 4h; win rate 31% → 47%

View project

FMCG regional distributor (11 Gulf countries) · Abu Dhabi

Mawrid Trade Portal

Medusa.js replaced a costly SAP B2B portal for a GCC FMCG distributor. Custom Medusa modules handle tiered trade pricing, multi-currency AED/SAR/KWD checkout with VAT-inclusive line items, and credit-limit enforcement per customer account. 1,400 active retailer accounts onboarded; order processing time 3 days → 4 hours; IT licensing cost saved AED 920k/yr.

  • enterprise
  • ecommerce
  • uae

Result:Order processing 3 days → 4h; 1,400 retailers onboarded; AED 920k/yr IT saving

View project

Economic development agency (government-linked) · Riyadh

Bawabat Agency Platform

Payload CMS v3 replaced a locked-down SharePoint publishing workflow for a Saudi Vision 2030-aligned development agency. Payload's code-first schema lets TypeScript types drive both the CMS and the Next.js frontend, ensuring Arabic/English bilingual content stays in sync at type-check time. The fully self-hosted stack satisfies NCSC data-classification Level 2 requirements. Publishing cycle 4 days → same day; content-sync discrepancies 0 for 6 months post-launch.

  • enterprise
  • web
  • saudi

Result:Publishing cycle 4 days → same day; zero content-sync discrepancies 6 months

View project

Let's build something that ranks — and runs itself.

Book a free 30-minute audit, or message us on WhatsApp. We'll send a fixed-price proposal in two days.

Book a free 30-min auditWhatsApp us