Surplus
deployingbuilt at SaySoftAn Arabic-first B2B marketplace in Egypt where verified food and beverage businesses sell surplus, B-grade, and scrap stock — offers, deals, and subscriptions, with a WhatsApp assistant that can reserve and negotiate.
- 30
- API modules
- 30
- Database models
- 178
- API + unit tests
- 100
- Lighthouse accessibility
PROBLEM
Food and beverage businesses in Egypt end up with surplus, short-dated, B-grade, and waste stock, and sell it through phone calls and personal contacts — or throw it away. Surplus gives verified sellers a place to list it and verified buyers a place to find it, make an offer, and close a deal directly, with the food-safety rules built into the listing form. Sellers pay a subscription after a free period; buyers are free.
WHAT'S IN IT
- Phone sign-up with WhatsApp one-time codes, business verification with documents in private storage, and an admin queue to approve, ask, or reject.
- Listings with auto-saved drafts, up to eight photos converted to WebP, food-safety rules, a review queue, bulk Excel upload, and automatic price drops.
- Arabic-aware search with filters and sorts, saved-search alerts batched hourly, and quote requests matched to up to 50 sellers with the buyer kept anonymous.
- Offers with one counter, 24-hour expiry, stock locks, follow-ups, and ratings; reports with automatic suspension after three upheld ones.
- A WhatsApp assistant: browse, see details and deals, reserve, make or answer price offers — every action ends in a Confirm button tied to one request, and AI for typed messages is off by default.
- Paymob subscription checkout with a signed webhook, a re-check, and a sweep, plus reminders, grace, and lapse rules — tested end to end with Paymob's test cards.
- A full code review in five phases (security and money, website basics, buyer screens, seller screens, launch readiness) fixed and deployed to staging, and a load test at launch-scale data.
ROLE
Engineer at SaySoft — the NestJS API and background worker, the Next.js website, the WhatsApp integration and assistant, Paymob billing, and the staging deployment.
NOTABLE DECISION
Stock can never be oversold. Accepting an offer or a reservation locks the listing's stock inside one database transaction, and a race test fires competing buyers at the same last units to prove only one wins; cancelling a deal returns the stock. Contact details are revealed to the two parties of a deal only, so the marketplace can't be scraped for a supplier list.