Lorenzo Wynberg

Pre-launch. Mar 2025 – Present.

Mandados

Errand & delivery platform

Errands, shopping and courier work in Costa Rica for individuals, hotels and businesses, run by salaried drivers.

Mandados admin: a driver's route for the day, with ordered pickup and delivery stops beside a map of San José
Client app: an order in transitDriver app: a stop's detailsDriver app: the route map

What I built

  • Built the full product: Laravel 12 / PostGIS API, Next.js admin, React Native client and driver apps (iOS, Android and web), real-time updates via Reverb and push via FCM; ~8,900 tests.
  • Designed automatic dispatch as bin-packing: feasibility checks, driver ranking by distance rings, insertion simulation within time windows, and cascading re-dispatch when a window overflows.
  • Built the payments lifecycle behind a provider contract: saved cards, reconciling quote vs. actual route into automatic surcharge or refund, and debt collection.

More of the detail

  • Found and measured a daylight-saving bug (a 30-minute shift window parsed as 1,410 minutes) and removed the hard-coded timezone assumption platform-wide.
  • Domain model where a stop is an obligation that outlives any single attempt, with its own state machine; multi-stop orders priced per leg and re-quoted from the route actually driven.
  • TypeScript types and typed broadcast payloads generated from PHP DTOs and shared byte-for-byte across four codebases.
  • Diff-aware test selection that picks tests by domain from the git diff and falls back to the full suite when unsure.
  • Three locales served from the API through laravel-to-i18next, my open-source package.
Client app: an order in transit
Client app: an order in transit
Driver app: a stop's details
Driver app: a stop's details
Driver app: the route map
Driver app: the route map
Admin: an order's stops, quote history and payments
Admin: an order's stops, quote history and payments
Client app: creating an order
Client app: creating an order
Driver app: the day's dashboard
Driver app: the day's dashboard