Skip to content
View IbrahimHafez1's full-sized avatar

Block or report IbrahimHafez1

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
IbrahimHafez1/README.md

Hi, I'm Ibrahim Hafez 👋

Backend Software Engineer · Node.js · NestJS · TypeScript

I build production multi-tenant SaaS platforms end to end — from an empty repo to live product.

LinkedIn Email WhatsApp Egypt Open to work


👨‍💻 About me

I'm a backend engineer with 3 years of experience designing and shipping production multi-tenant SaaS platforms end to end. I work primarily in Node.js, NestJS and TypeScript, across both SQL (PostgreSQL, MySQL) and NoSQL (MongoDB), and I've delivered systems for e-commerce marketplaces, EdTech / school management, dental clinics, booking, and point-of-sale.

I'm drawn to the parts most people avoid: multi-tenancy & RBAC, payment and WhatsApp/SMS integrations, real-time systems (WebSockets / SSE), message queues, caching strategies, and secure, well-documented REST & GraphQL APIs built for high traffic.

🦷 I'm a licensed dentist (B.D.S.) who taught myself to code and pivoted into software engineering — so when I build a dental-clinic SaaS, I understand the domain from the inside.

⚡ Highlights

  • 🏗️ Shipped 6+ production SaaS backends end to end — architecture, data modeling, APIs, queues, deployment and CI
  • 🧱 Flagship is a 45,000-line multi-tenant dental SaaS: 200+ endpoints, 48 entities, 1,340+ tests across 74 Jest suites
  • 🔌 Integrated payments (Kashier), SMS, Google OAuth, and the Meta WhatsApp Cloud API into live products
  • ⚙️ Comfortable across real-time (WebSockets/SSE), BullMQ queues, Redis caching, multi-tenant RBAC and Swagger-documented APIs
  • ⚡ Performance work: cut a dropshipping platform's login from ~6s → <1s and improved API response times ~40%
  • 🧩 Open-source contributor to TypeORM — merged upstream fix for a many-to-many data-loss regression (typeorm#12711)

🔓 Open Source

  • TypeORM — Diagnosed and fixed a data-loss regression where batch save() silently deleted many-to-many junction rows for entities whose relations were not loaded. Merged upstream with a regression test for the 2.0 milestone → PR #12711 · Issue #12710

🚀 Selected work

  • Intelladent — Founder & Engineer. Multi-tenant, multi-clinic dental SaaS (NestJS · Next.js · TypeORM · PostgreSQL · Redis · Bull). 200+ REST endpoints, 7-role RBAC, subscription billing, a 5-channel notification engine (WebSocket / Web Push / email / SMS / WhatsApp), AI-assisted clinical features, and 1,340+ automated tests.
  • MasrMart — A multi-vendor e-commerce marketplace SaaS for Egyptian sellers (NestJS 11 · Prisma · PostgreSQL 16 · Next.js 15): 215+ endpoints, vendor subscriptions & payout ledgers, localized payments (Cash on Delivery, InstaPay, Vodafone Cash), SSE + Redis real-time, and BullMQ transactional-email flows.
  • Simbel AI — Marketing-AI SaaS backend: rebuilt a production Python/CrewAI platform from scratch in NestJS 11 · TypeORM · PostgreSQL (pgvector) — 189 endpoints, 46 entities, an LLM router with tiered fallback chains and per-agent cost accounting, RAG over pgvector embeddings, Stripe billing with usage metering, and a web/worker Docker split for independent scaling.
  • Pupilera — Multi-tenant K-12 school-management platform (NestJS 11 · TypeORM · PostgreSQL · Redis · Bull): 404 endpoints, 78 entities, per-school subdomain tenancy, 14-role RBAC with per-school custom roles, a gradebook with at-risk detection, finance with a double-entry ledger, real-time chat, and 1,229 unit tests plus e2e against real Postgres/Redis in CI.
  • The Cooking School — E-commerce + culinary-education backend (NestJS 11 · MariaDB · Redis): 94+ endpoints, Kashier payments, SMS OTP, course-booking with tiered refund policies, and Arabic-aware invoice PDFs.
  • POS Platform (Taqdum) — Multi-tenant point-of-sale backend (TypeScript · Express.js · PostgreSQL/Sequelize): 3-tier RBAC (Organization → Market → Users), real-time inventory, automated VAT, invoice refund/rebuy, supplier management, thermal-receipt printing (80mm/A4), and Excel-based cross-market migration; deployed on Dokploy with JWT, Helmet, and rate limiting.
  • EndahQR — A WhatsApp-driven QR-sticker system for vehicles — scan a windshield code to message the owner (NestJS 10 · PostgreSQL/Prisma · Redis · BullMQ). Integrates the Meta WhatsApp Cloud API with HMAC-verified webhooks, Redis-backed idempotency, a conversation state machine, 24-hour messaging-window handling with approved-template fallback, durable inbound-event queueing, and plain-language send-failure surfacing with dead-letter management.
  • Auto Drop — Dropshipping backend integrating 4+ marketplaces (Salla, Zid, AliExpress) with real-time order sync via WebSockets and webhooks; optimized MongoDB to cut login from ~6s to under 1s.
  • Nugttah — Backend RESTful APIs for a Saudi platform serving thousands of users (Node.js · MongoDB/Mongoose): designed well-structured schemas and refactored legacy APIs to modern async/await, improving maintainability and performance.

🛠️ Tech Stack

Languages & Frameworks

TypeScript Node.js NestJS Express Next.js React

Databases & ORM

PostgreSQL MySQL MongoDB Redis Prisma TypeORM

Infrastructure & Tools

Docker GitHub Actions BullMQ Socket.io GraphQL Swagger JWT

Testing

Jest Vitest Playwright

📊 GitHub Stats

GitHub streak

🤝 Connect

Backend · Multi-tenant SaaS · System Design · Payments · Real-time · API Integration

Popular repositories Loading

  1. kib-movies-api kib-movies-api Public

    RESTful movies API built with NestJS - syncs TMDB data into PostgreSQL with Redis caching, JWT auth, ratings and watchlists. Runs with docker-compose on :8080.

    TypeScript 1

  2. typeorm typeorm Public

    Forked from typeorm/typeorm

    TypeScript & JavaScript ORM for Node.js — supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, and more.

    TypeScript 1

  3. MERN-Blog MERN-Blog Public archive

    JavaScript

  4. simple-crud-app simple-crud-app Public archive

    JavaScript

  5. Github-MERN Github-MERN Public archive

    JavaScript

  6. task-manager task-manager Public archive

    CSS