How hmohamed080/aladdin works
Aladdin is described as an AI-first operating system for Egypt’s construction and finishing sector, with B2C, B2B, and admin surfaces. Its intended journey runs from need and advice through discovery, trusted matching, RFQ, quotation, decision, execution, and follow-up. The README says these product features remain scaffolded, so the domain map represents intended capabilities, not verified implemented flows. The runtime foundation is a Next.js app, Supabase, and a specialized FastAPI AI/document service, with Cloudflare Workers for hosting and selected media and OTP functions. Several domain links below are documented product flow rather than inspected calls.
Main entry points: app Next.js web app · main.py FastAPI service · index.ts WhatsApp OTP Worker · home Need discovery
Components 21
Product surfaces
- B2C B2B Admin
Value journey
- Need discovery
frontend/src/app/home - AI advice
backend/app/ai - Catalog discovery
frontend/src/features/commerce - Trusted match
frontend/src/app/(workspace)/showroom - RFQ
frontend/src/features/commerce/rfq-form.tsx - Quotations
frontend/src/features/commerce/quotation-detail.tsx - Sales decision
frontend/src/app/(workspace)/b2b - Project execution
frontend/src/features/execution - Follow-up
frontend/src/app/(workspace)/b2b/follow-ups
Application platform
- Next.js web app
frontend/src/app - Supabase data platform
- Frontend Worker
frontend/cloudflare/worker.ts
Edge services
- Media Worker
edge/media-worker/src/handler.ts - Media bucket
- WhatsApp OTP Worker
edge/whatsapp-otp-worker/src/index.ts - OTP D1 state
- Meta WhatsApp API
AI document service
- FastAPI service
backend/app/main.py - AI OCR RAG
backend/app/retrieval - Documents embeddings
backend/app/documents
Connections 18
- B2C B2B Admin → Next.js web app: use surfaces
README.md - Next.js web app → Need discovery: start journey
README.md - Need discovery → AI advice: seek advice
README.md - AI advice → Catalog discovery: discover options
README.md - Catalog discovery → Trusted match: find match
README.md - Trusted match → RFQ: request quote
README.md - RFQ → Quotations: receive quote
README.md - Quotations → Sales decision: decide
README.md - Sales decision → Project execution: proceed to work
README.md - Project execution → Follow-up: follow up
README.md - Next.js web app → Supabase data platform: uses data platform
README.md - Next.js web app → Frontend Worker: hosted by
README.md - Frontend Worker → FastAPI service: proxies backend
frontend/cloudflare/worker.ts - FastAPI service → AI OCR RAG: provides service scope
README.md - FastAPI service → Documents embeddings: provides service scope
README.md - Media Worker → Media bucket: reads media objects
edge/media-worker/src/handler.ts - WhatsApp OTP Worker → OTP D1 state: uses settings state
edge/whatsapp-otp-worker/src/index.ts - WhatsApp OTP Worker → Meta WhatsApp API: sends OTP
edge/whatsapp-otp-worker/src/index.ts