0%
cd ../projects
STORYLINE_ROADMAP // DOC_01
01. Origin Story & System Context[README.MD]

A behind-the-scenes look at how Bazelink evolved from observing fragmented social media selling into a multi-vendor platform handling 200+ active sellers and instant M-Pesa settlements.

Bazelink was engineered to give local businesses a structured digital storefront with automated inventory tracking and real-time Safaricom Daraja API payment verification—eliminating manual M-Pesa message cross-checking.

// How the Idea Came From (The Problem Statement)

As a group of 5 friends, we saw an existing market gap across Rongai and Nairobi: local merchants were losing orders in buried WhatsApp threads and manually verifying M-Pesa SMS codes before dispatching goods. We teamed up to build a single platform where storefront listing, checkout, and payment reconciliation happen automatically.

02. Architectural Trade-Offs (Why This, Not That)[ADR_LOG]
Selected Architecture

MVC architecture (Node.js/Express) + BullMQ Workers

Alternative Rejected

Full Microservices Architecture

Engineering Rationale:

At an early stage with a lean engineering team, microservices introduce unnecessary network latency and DevOps overhead. A modular monolith kept domain boundaries clean while BullMQ + Redis offloaded slow tasks like Daraja payment callbacks and order notifications asynchronously.

Selected Architecture

PostgreSQL Relational Ledger

Alternative Rejected

NoSQL Document Store (MongoDB)

Engineering Rationale:

Multi-vendor carts, stock reservations, and vendor payout ledgers demand strict ACID compliance. Relational foreign keys and row-level transactions prevented race conditions where two buyers purchase the last item simultaneously.

03. Production Findings & Lessons Learned[FIELD_NOTES]
  • 01.Mobile money callbacks are inherently unpredictable—network delays or duplicate webhook retries from payment gateways will corrupt order states unless every callback endpoint is strictly idempotent.
  • 02.Merchants onboarding on mobile devices need minimal friction; simplifying product upload flows mattered more than complex analytics dashboards in version one.

Room for Improvement

  • ~Vendor payout reconciliation currently relies on batch verification; automated real-time split-settlement ledgers would reduce manual accounting.
  • ~Search relevance relies heavily on exact keyword matching rather than semantic intent.

Future Enhancements (v2)

  • +Automated rider dispatch integration with live delivery status webhooks.
  • +Escrow-backed buyer protection workflows for high-value electronics.
05. Re-Architecting for the AI Era[NEXT_GEN_VISION]

In the AI era, merchant onboarding can be compressed from 20 minutes to 30 seconds: a seller snaps a photo of their physical shelf, and multimodal vision models automatically extract product titles, categorize items, generate descriptions, and suggest competitive local pricing—paired with a conversational WhatsApp shopping assistant for buyers.