//Riyadh, Saudi Arabia

Hazem Megahed

Product EngineerCTO & sole engineer at Flavoria — the company behind Waafi and Zady, two multi-tenant SaaS platforms in production.

I design, build, and operate SaaS products end-to-end — from architecture and backend to mobile apps and production infrastructure.

Fig.01 — Systems in production
24.7136° N, 46.6753° ERiyadh
  • ZATCA Phase 2Compliance, live in production
  • PaymentsTap · Tabby · Tamara · Apple Pay
  • Multi-tenant SaaSPer-tenant config & onboarding
  • iOS + AndroidShipped to both stores
01 · WaafiClient accounts
1,000+
02 · ZadyApp downloads
2,000+
03 · Multi-tenantSaaS platforms in production
02
04 · Sole ownerEngineer, end to end
01

01//Selected work

Work

Two production platforms. Designed, built, shipped and operated by one person — from product decisions and the first database table to the App Store.

Waafi logoP/01—Multi-Tenant Business Operations Platformwaafi.io
Fig.P01 — Product
waafi.io
Waafi dashboard: collections, open quotes, projects and latest invoices
Waafi logo

Waafi

Designed and built the full platform from database schema to production. Includes CRM, invoicing, contracts, client portal, WhatsApp integration, and ZATCA Phase 2 e-invoicing.

Role
CTO & sole engineer — product decisions, architecture, and production.
Origin
Started as an internal operations tool — grew into a multi-tenant SaaS serving 1,000+ client accounts.
Tech
  • TypeScript
  • PostgreSQL + Prisma
  • React Native
  • Google Cloud Run
  • Socket.IO

Fig.P01b — System map

  1. Clients
    • Web app
    • Client portal
    • iOS + Android (Expo)
  2. Security
    • JWT + refresh rotation
    • Fine-grained RBAC
    • HMAC-verified webhooks
  3. Core
    • Express · TypeScript API
    • BullMQ worker service
    • Socket.IO realtime
  4. Data
    • PostgreSQL + Prisma
    • Row-Level Security per tenant
    • Redis
  5. Integrations
    • ZATCA Phase 2
    • WhatsApp Cloud API
    • Odoo sync
    • Tap · Apple Pay
  6. Infra
    • Cloud Run
    • Cloud Build
    • Secret Manager
01 · Client accounts
1,000+
02 · ZATCA e-invoicing, X.509 signed
Phase 2
03 · Tenant isolation at the database
RLS
04 · Stores — App Store & Google Play
2
Zady logoP/02—School Canteen Payments and Operations Platformzadyapp.ai
Fig.P02 — Product
zadyapp.ai
Zady canteen POS on a phone next to the collections reconciliation dashboard
Zady logo

Zady

Built the complete web and mobile platform used by parents, canteen staff, and admins. Includes student wallets, multiple payment methods, QR/face recognition, and an AI support agent.

Role
CTO & sole engineer — product, web, and mobile.
Users
Parents, canteen staff, collectors, suppliers, and admins.
Tech
  • React Native
  • Tap / Tabby / Tamara
  • AWS Rekognition
  • Anthropic Claude API

Fig.P02b — System map

  1. Clients
    • Parents app (iOS + Android)
    • Canteen POS
    • Admin & supplier portals
  2. Counter ID
    • QR codes
    • Physical cards
    • Face recognition · Rekognition
  3. Payments
    • Tap · Tabby · Tamara
    • Wallet top-ups in DB transactions
    • Idempotent webhooks
  4. AI
    • Claude support agent
    • Policy & risk checks
    • Shadow mode → staff escalation
  5. Operations
    • Inventory & purchasing
    • Reconciliation & payroll
    • Wafeq tax invoices
  6. Edge device
    • .NET print service
    • Crash-safe payment journal
01 · App downloads
2,000+
02 · Payment providers
3
03 · Ways to identify a student
3
04 · Support agent, shadow mode first
AI

02//About

About

I'm a product engineer in Riyadh and CTO at Flavoria. I'm the only technical person behind Waafi and Zady — deciding what to build, then building and running it: architecture, backend, web, mobile, payments, ZATCA compliance, infrastructure, and support. The platforms now serve 1,000+ client accounts and 2,000+ app downloads, and their results led the ownership group to found Flavoria to offer both as SaaS products.

// Owned end to end

  1. 01Product decisions
  2. 02UI/UX
  3. 03Architecture
  4. 04Backend
  5. 05Frontend
  6. 06Mobile apps
  7. 07Payments
  8. 08Compliance
  9. 09Infrastructure
  10. 10Support

// How I ship

  1. 01

    Shadow mode before live actions

    Zady's AI support agent ran in shadow mode, with policy and risk checks, before it was allowed to act — with automatic escalation to staff.

  2. 02

    Validated in staging before production

    Tenant isolation with PostgreSQL Row-Level Security was proven in staging first, enforced at both the application and database layers, then shipped to production.

  3. 03

    Idempotent by default

    Payment webhooks are processed idempotently and wallet top-ups run inside database transactions, so money is never applied twice.

03//Stack

Stack

The tools I ship production with — grouped by the job they do.

  • 01 · Languages

    • TypeScript
    • JavaScript
    • C# (.NET)
    • Swift
    • SQL
  • 02 · Backend

    • Node.js
    • Express
    • PostgreSQL
    • Prisma
    • Redis
    • BullMQ
    • Socket.IO
    • Zod
  • 03 · Frontend & Mobile

    • Next.js
    • React
    • React Native
    • Expo
    • App Store & Play releases
  • 04 · SaaS & Architecture

    • Multi-tenant design
    • PostgreSQL RLS
    • RBAC
  • 05 · Payments & Integrations

    • Tap
    • Tabby
    • Tamara
    • Apple Pay
    • ZATCA Phase 2
    • WhatsApp Cloud API
    • Odoo
    • Wafeq
  • 06 · AI

    • Anthropic Claude API
    • LLM support agents
  • 07 · Cloud & DevOps

    • Google Cloud — Cloud Run · Cloud Build · Cloud SQL · Storage · Pub/Sub · Secret Manager
    • Cloudflare — DNS · CDN · WAF · R2 · Workers · Turnstile
    • AWS — S3 · Rekognition
    • Docker
    • CI/CD
  • 08 · Security

    • JWT
    • CSRF protection
    • Rate limiting
    • HMAC webhooks
    • Idempotency

04//Experience

Experience

  1. Nov 2024 — PresentRiyadh, Saudi Arabia

    CTO · Flavoria

    Employed via SIMAH Business Services

    Sole engineer responsible for product decisions, architecture, development, deployment, and support for the group's platforms.

    • 01Only technical person across SIMAH, Zady and Flavoria — product, architecture, deployment, monitoring and support.
    • 02Turned an internal operations tool into Waafi, a multi-tenant SaaS with 1,000+ client accounts.
    • 03Work directly with non-technical owners and operations teams to turn business requirements into shipped features.
    Shipped during this role

05//Contact

Let's talk

Building a SaaS product, or need someone to own one — from product to production? Email is the fastest way to reach me.

Available for new work

A full product, end to end — or any single piece of one: a website, a backend system, a mobile app, an integration.

Fig.05 — Open channel● Live
Riyadh, SARUH --:--GMT+3