Two-Sided Hyperlocal On-Demand Delivery & Pharmacy Marketplace
How RafayLabs re-engineered a localized pharmacy ordering platform into a decentralized, real-time two-sided marketplace powered by multimodal requests (voice notes & handwritten slips) and sub-second socket negotiation.
Customer and Business (Pharmacy) portals unified in 1 clean Expo mobile app with zero separate desktop requirements.
Instant order requests via native audio voice notes, handwritten prescription photos, or freeform text items.
Real-time state updates powered by Socket.IO and Neon Serverless Postgres for sub-second quote delivery.
Local pharmacies manage inventory & delivery directly; platform operates as high-margin B2B SaaS.

Moving from central fleet dispatch to a decentralized marketplace unlocked exponential scale.
Originally, GharTak operated as a single pharmacy delivery service where the founder employed dedicated riders and maintained a centralized catalog. This created severe operational friction:
GharTak was architected into a pure digital marketplace. The platform connects consumers directly with local pharmacies, shifting fulfillment responsibility to the merchant:
Overcoming literacy and typing barriers in emerging markets through multimodal intake.
Customers record an Urdu or English audio clip describing their medicine needs or symptoms. The audio is uploaded directly to Firebase Storage CDN and delivered to the pharmacist in sub-second latency.
Users snap a photograph of a doctor's handwritten prescription slip ("Parchi") or paper list. The pharmacist reviews the high-resolution image directly in the business app interface to prepare accurate doses.
Instead of forcing stores into rigid catalog pickers, pharmacists enter freeform item names, quantities, prices, and per-item discounts. The customer receives a clear, transparent quote to accept or decline.
A single PostgreSQL entity governs the entire order lifecycle with zero duplicate tables or race conditions. Socket.IO broadcasts status events instantly to both customer and merchant clients:
If We Can Architect GharTak, Here Is What We Can Build For Your Startup.
Engineering an on-demand marketplace or logistics platform from scratch typically takes 6 to 9 months of painful architectural trial and error. Because RafayLabs solved the foundational complexities in GharTak—two-sided role switching, sub-second socket negotiation, GPS pinning, and state machines—we can adapt this battle-tested engine to ship your next product in weeks, not quarters.
Passenger creates a ride request with origin & destination GPS pins. Nearby drivers receive the request, submit bids/fares, and passenger confirms. The state machine transitions in real time from Bid Accepted to Driver Arrived to En Route.
Sender takes a photo of the parcel, specifies dimensions/weight, and sets pickup and dropoff coordinates. Local couriers quote pricing based on distance and vehicle type, with photographic proof of delivery upon dropoff.
Homeowner records a voice note or snaps a picture of an AC leak, plumbing issue, or electrical fault. Verified local technicians review the request, assemble a custom line-item quote with parts & labor, and confirm the visit.
Neighborhood merchants and mini-fulfillment centers receive instant consumer order requests. Stores accept and assemble orders rapidly, bypassing heavy centralized stock reconciliations with a lightweight monthly SaaS subscription.
Whether you need driver bidding, service dispatching, or multimodal orders, we already own the building blocks.
Engineered for high throughput, sub-second event synchronization, and zero server management overhead.
Expo SDK 54, Redux Toolkit, RTK Query cache invalidation, Native Audio Recording, and Bilingual RTL localization.
Modular architecture with dedicated Order-Requests gateway, JWT role-based auth guards, and real-time state broadcasts.
Serverless PostgreSQL with instant DB branching, paired with Firebase Storage CDN for audio and prescription image assets.
Reverse geocoding for informal delivery addresses, interactive GPS pin dropping, and radius-based pharmacy filtering.
Skip months of architectural guesswork. Let's engineer your production-grade MVP in 4 weeks backed by proven, scalable foundations.