
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
- Clients
- Web app
- Client portal
- iOS + Android (Expo)
- Security
- JWT + refresh rotation
- Fine-grained RBAC
- HMAC-verified webhooks
- Core
- Express · TypeScript API
- BullMQ worker service
- Socket.IO realtime
- Data
- PostgreSQL + Prisma
- Row-Level Security per tenant
- Redis
- Integrations
- ZATCA Phase 2
- WhatsApp Cloud API
- Odoo sync
- Tap · Apple Pay
- 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



