Skip to content
View Ali-Haggag7's full-sized avatar

Organizations

@AliHaggag-Dev

Block or report Ali-Haggag7

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.

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
Ali-Haggag7/README.md

πŸ‘¨β€πŸ’» About Me

"Architecting high-performance, real-time web applications, custom compilers, and deterministic multiplayer game engines with clean code."

I'm Ali Haggag, a Software Engineer & CS Student focused on System Design, Performance Optimization, and Security Hardening. I specialize in building complex backends, custom language parsers, and low-latency real-time synchronization layers.


🌟 Featured Engineering Builds

  • πŸ€– Logic Arena β€” Competitive Robot Battle Simulator v3.6.5

    • Compiler & Sandbox: Engineered AliScript v3 (Lexer β†’ AST β†’ sandboxed evaluator, no eval()) with a deterministic 2,000-ops/tick TLE quota β€” fair execution limits regardless of hardware.
    • Real-time Sync: 20 TPS server physics engine with client-side lerp interpolation to 60 FPS; delta diffing cuts WebSocket payload size by ~80%.
    • Tech Stack: Next.js 16, NestJS 11, React Three Fiber (Three.js), Socket.io, Redis, PostgreSQL, Prisma, Docker + Nginx, DigitalOcean.
  • πŸš€ Flurry Super App β€” Real-time Social Super App v2.0

    • Communication: WebRTC P2P audio/video via a custom Socket.io signaling server (<50ms latency).
    • Resilience: Offline-first PWA β€” IndexedDB action queue synced through Inngest durable functions and a Workbox service worker.
    • Tech Stack: WebRTC, Socket.io, Gemini AI, PWA, React, MongoDB, i18next.
  • πŸ—οΈ CS Arena Platform β€” Developer Ecosystem

    • State Engine: Resolved cascading UI filter race conditions using useTransition and a URL-first state engine on Next.js 16 Server Components.
    • Tech Stack: Next.js 16, Sanity CMS, NextAuth, Sentry, Resend, Framer Motion.

🩹 Notable Engineering Incidents

A few real production issues I've diagnosed and fixed β€” documented in full on my portfolio.

  • The Ghost Match Massacre (Logic Arena, WebSocket/NestJS) β€” Disconnected players' matches kept running server-side, pinning CPU at 100%. Fixed by tying match lifecycle to live client count.
  • Operator Precedence Disaster (AliScript compiler) β€” 2 + 3 * 4 evaluated to 20. The expression parser had no precedence tower. Fixed by splitting addition/multiplication into separate parse levels.
  • Deterministic TLE Quota (Sandboxing) β€” Wall-clock execution limits made the same script pass on one machine and fail on another. Replaced with a platform-agnostic ops-per-tick counter.

⚑ Core Capabilities

  • Systems Design: Domain-Driven Design (DDD), Microservices, Anti-Corruption Layers (Zod), and Enterprise Security pipelines.
  • Real-time Protocols: WebSocket event handling, WebRTC signaling, and client-side interpolation buffers.
  • Performance Optimization: CPU profiling, database pagination query constraints, and asset bundle pruning.


πŸ› οΈ Technical Arsenal

Category Technologies
Frontend
Backend
Compiler & Systems AST Design Deterministic Sandboxing A* Pathfinding
Data & ORM Layer Prisma Redis Zod
Real-time & AI Socket.io WebRTC Gemini PWA Inngest
Auth & Security JWT NextAuth Clerk OAuth 2.0 Helmet
DevOps & Infra DigitalOcean Sevalla pnpm Workspaces
CMS & State Sanity Zustand React Query i18next
Monitoring Sentry Azure Monitor
Design & UI shadcn/ui Framer Motion
CS & Tools


πŸ† GitHub Trophies

GitHub Trophies

πŸ“Š GitHub Stats

Ali's GitHub Stats Ali's Top Languages
Ali's Streak Ali's Coding Time

πŸš€ Building deterministic systems where performance, correctness, and maintainability come first.

Pinned Loading

  1. AliHaggag-Dev/logic-arena AliHaggag-Dev/logic-arena Public

    βš”οΈ Logic Arena β€” Competitive real-time robot battle simulator. Program your robot using AliScript, a custom scripting language, and fight in 3D arenas. Built with Next.js, NestJS, and React Three F…

    TypeScript 7

  2. AliHaggag-Dev/CS-Arena AliHaggag-Dev/CS-Arena Public

    A platform for CS developers to showcase training projects, graduation projects, find open-source contributors, and compete on the global leaderboard.

    TypeScript 17

  3. AliHaggag-Dev/Flurry-Super-App AliHaggag-Dev/Flurry-Super-App Public

    πŸš€ A comprehensive Social Super App merging Real-time Communication (Socket.io & WebRTC) with AI features (Google Gemini). Built with MERN Stack & PWA.

    JavaScript 15

  4. Ali-Haggag-Portfolio Ali-Haggag-Portfolio Public

    πŸš€ My professional full-stack developer portfolio built with Next.js 15, Tailwind CSS, PWA support, and an integrated Google Gemini AI assistant.

    TypeScript 13

  5. Blog-Pro-Platform Blog-Pro-Platform Public

    πŸ” A secure MERN Stack CMS featuring Role-Based Access Control, JWT Auth, Nested Comments, and enterprise-grade security (Helmet & XSS-Clean).

    JavaScript 15

  6. cybership-carrier-service cybership-carrier-service Public

    A robust Carrier Integration Service built in TypeScript for fetching UPS real-time rates.

    TypeScript 12