Work / Spazafy
case study · saas · marketplace · complianceSpazafy: a marketplace and shop platform for South African small businesses.
A multi-tenant marketplace and SaaS for South African micro and small businesses. Each seller subscribes to run their own shop on one shared platform, with a storefront, a seller dashboard and their own payment details. Customers pay the business directly. POPIA, ECTA and payments law shaped the architecture from the first commit.
- RoleCo-founder: product strategy, UX, design system and build
- PlatformMulti-tenant web SaaS: storefront, seller dashboard (installable), staff admin
- MarketSouth African micro and small businesses
- StatusClosed beta from 30 November 2026
The problem
Thousands of small South African businesses sell without a shop of their own: through social posts, by hand and by word of mouth. It works until it doesn’t: orders get lost, prices live in the owner’s head, and there is no record to show a bank or a supplier.
Global ecommerce platforms assume things these businesses don’t have: card payments as the default, prices in dollars, a computer for running the business, and high reading confidence in English. Many of their customers pay cash or by EFT, on prepaid data, on older phones.
The brief was one platform on which any small business can run a real shop on a monthly subscription, without changing how its customers pay. And to run it as a platform that never touches the money, so it stays outside payment-services regulation.
Key design decisions
Every shop is a tenant, walled off by the database
Many independent shops share one platform, so isolation cannot depend on every query remembering a filter. Every tenant row carries a store id and row-level security is forced, so a query that forgets its shop returns nothing rather than another shop’s customers. Each shop’s theme, settings and payment details stay its own.
The platform never holds the money
Customers pay the seller in cash, by EFT into the seller’s own bank account, or later through the seller’s own PayFast account. No code path may route money to a Spazafy account, and every change is reviewed against that rule. This one rule keeps Spazafy outside the National Payment System Act and is why the staff console has no payouts to watch.
Build on a computer, run orders on the phone
Asking how sellers really work changed the device model: they set up the shop on a computer where they have one, then live in orders on their phone. The phone dashboard lost its dark top bar and mode switch, taking chrome on a 360 by 740 screen from about 238 px to 130 px. Home is ordered by urgency: orders waiting first, then what customers need before they can trust the shop.
Shops that work without JavaScript
Cart and checkout are server-rendered forms. Shop pages work with JavaScript off, so they still work on old phones and slow prepaid data. Every theme is checked at 360 px with JavaScript off before release.
Four themes instead of a page builder
Separate font and layout pickers asked sellers to make design decisions they shouldn’t have to. Sellers now pick one of four themes (Spaza, Garden, Studio, Heritage), then a colour, logo, banner and sections. Any colour a seller picks is darkened until white text passes 4.5:1, and a shop never wears Spazafy’s own colours.
Plain words as a system, not a pass
A fixed vocabulary: shop not storefront, stock not inventory, code not OTP, Money in not revenue. Sentence case everywhere, because capitals are harder to read in a second language. “Open” had crept into six different actions; each now has its own verb. Every string was padded by 40% in a pseudo-locale run to make sure isiZulu will fit.
Never claim what didn’t happen
A review caught a toast that said “The customer has been told” when no message had gone out. It now says only what the system actually did, and names the next step for the seller. Status always pairs a word with a colour, and undo replaces “Are you sure?”









Trust and safety, designed in
An open shop builder that shows bank details is a gift to scammers. A threat model and a privacy impact assessment before alpha produced five must-fix items. All five are built and tested for the closed beta. The full security programme, including an external penetration test, comes before Spazafy opens more widely.
Scam shops. New and renamed shops are screened for impersonation. A flagged shop can be set up but cannot take orders or show bank details until a person clears it, and “Report this shop” sits in every shop footer and next to the bank details.
Account takeover. Sign-in is by SMS code, so SIM swap was designed for from the start. The actions a thief would want, such as changing bank details or exporting customers, need a second check, and the owner hears about a new sign-in through a channel the phone number does not control.
People decide, machines flag. The staff console sorts everything that needs a person by age. Screening can hide a product or hold a shop name; only a person can suspend a merchant, and every decision lands in the audit trail.

Compliance as architecture
I mapped each South African obligation to a control before writing code: POPIA, ECTA, the Consumer Protection Act, the National Payment System Act and the FIC Act. The ones that matter most became invariants. Breaking one needs a written decision record and legal sign-off, and most are enforced by tests.
| id | rule | why |
|---|---|---|
| INV-1 | Never receive, hold or pay out merchant or buyer money | Payments law |
| INV-2 | Every tenant row has a store id; row-level security is forced and the app role cannot bypass it | POPIA s19 |
| INV-3 | No marketing message without a recorded opt-in per shop, channel and number | POPIA s69 |
| INV-4 | Card data never touches Spazafy; provider-hosted pages only | ECTA s43(5) |
| INV-5 | No personal information in logs, analytics or error reports | POPIA s19 |
| INV-6 | A shop can’t publish without supplier details, a returns policy and a privacy notice | ECTA s43, POPIA s18 |
| INV-7 | Suspension always passes through a recorded human decision | POPIA s71 |
| INV-8 | A customer belongs to exactly one shop; no cross-shop profile | POPIA, operator role |
Spazafy is the operator for buyer data and each merchant is the responsible party, so merchants get their own tools: find, export, correct or delete a customer, with orders kept for tax but unlinked from the person. A nightly job enforces the retention schedule. The database and its encrypted backups stay in Johannesburg. Error reports are scrubbed of phone numbers, emails, tokens and query strings, and a test checks a real event.
Architecture
A TypeScript modular monolith, sized for one person to run. Four apps share one domain package and one PostgreSQL database:
Storefront in Next.js with server-rendered forms. Seller dashboard as an installable React web app. Staff admin as a separate app and API process, with its own database role and its own sign-in, so a bug in the merchant API cannot reach staff powers. Worker for email, SMS, order expiry and retention, on Postgres-backed jobs with no Redis. Messages are claimed, sent with no lock held and recorded, so a deploy can never send one twice.
Tenancy is one shared schema with a store id on every row and row-level security forced on every tenant table. An isolation test walks the app’s own route table, so routes added later are covered: as shop A it calls every route against a fully set-up shop B and fails if any of B’s data comes back. Its first version passed for the wrong reason, which is why it is now mutation-checked: remove a guard, confirm it fails.
Hosting follows the money. The pilot runs on a single server in Johannesburg, sized so subscriptions cover it early, with a planned move to managed infrastructure and a failover database as the platform grows. Backups are encrypted before they leave the server, and restores are rehearsed.




How it’s built
- 232automated tests, isolation suite included
- 19architecture decision records
- 8invariants enforced by tests and review
- 3UX review phases before alpha
Every change goes through a separate review pass against a checklist: tenant scoping, row-level security, invariants, consent, idempotency, money, secrets and tests. CI runs type checks, tests, Gitleaks and Semgrep on every push, and an external penetration test comes before the scaled launch. Each decision is written down as a record that names what it replaces, so the reasoning survives the person who made it.
Design follows the same discipline. A UX and visual review at 360 px and desktop produced twelve issues and a three-phase fix plan. Contrast failures were fixed at the token level: the focus ring went from 1.7:1 to over 14:1, and field edges from 1.3:1 to 3.6:1. Before any logo is drawn, the brief asks for the mark and app icon to be shown to people in Durban, because green, gold and black together read as a political party.
Building for small businesses, or for the platforms that serve them?
I design products where compliance, payments and low-literacy users meet, and build the records in from the start.
Now taking on projects for 2027. 2026 is fully booked.