Local food marketplace
Harvest Hub
A two-sided marketplace where access is enforced four times over and every privileged action is attributable afterwards.

The baseline
Producers open a digital farm stand; buyers find them on a map.
Harvest Hub is a map-first marketplace for local food. A producer opens a Digital Farm Stand — a public profile on its own slug — then publishes listings, posts updates and runs pop-up events. Buyers discover producers geographically, follow them, save listings, leave reviews and message them directly. It is monetised through subscription tiers with Stripe. It was built new, which means there was no existing system to migrate and no legacy to protect — only the problem of standing up both sides of a marketplace at once.
What was wrong
- A two-sided marketplace is useless until both sides work, so neither side could be shipped as a phase one.
- Discovery is geographic. The map, the marketplace and the activity feed all have to agree about what counts as nearby, or a producer appears in one surface and vanishes from another.
- Producers are not software users. Opening a farm stand had to be a guided sequence, not a settings form.
- A marketplace needs moderation, billing, trust handling and support tooling. That admin surface is an application in its own right, and it is where the dangerous permissions live.
What it looks like
What it looks like
No before and after here. Harvest Hub was built new rather than replacing an existing system, so there is no honest 'before' to show. The domain does carry an unrelated site in older archive captures; it has nothing to do with this project and is not presented as a predecessor.
Approach
What was decided, and why
Thirteen engines, each with a contract
Notifications, activity, conversations, listings, catalogue, discovery, events, trust and safety, growth, auth, billing, email and demo — each owning its own tables and a written contract. The cross-engine rules are explicit: an event is emitted once; notifications never become feed entries; reputation is always derived and never stored; one discovery radius serves every nearby surface.
Four independent layers of access control
An auth gate across the whole authenticated subtree, a route-level tier gate, a capability check inside every individual admin server function, and row-level security at the database where roles can only change through capability-gated definer functions. Interface-level tiering and server-level capability are never collapsed into one check, because the first is a convenience and only the second is a control.
Assume the access model will regress
Every privileged mutation writes to an audit log with CSV export, and a set of smoke scripts asserts the access model still holds. This is the part that caught the worst bug in the project — see the outcome below.
Billing as data, not as code paths
Plans, features, offerings, promotions, subscriptions and entitlements are tables with a replayable entitlement audit, wired to Stripe Checkout, Portal and Connect behind a signature-verified, idempotent webhook. A pricing change is a row, and an entitlement dispute can be replayed rather than argued about.
Email through a queue with a preview
A central template registry with a QA preview route, a queue drained on a schedule, and a suppression list — so a send failure is a retry rather than a lost notification, and a template can be reviewed before a customer sees it.
No AI in the recommendations, on purpose
Discovery and recommendation run on rule-based matrices. A producer asking why they were surfaced gets an answer that can be checked, which matters more here than sophistication.
What shipped
- Farm stand builder as a ten-step guided wizard
- Map, marketplace and activity feed sharing one discovery radius
- Events with QR sharing, direct messaging, reviews and trust cases
- Producer dashboard with listings, locations, availability and a customer CRM
- A roughly sixty-route admin surface for moderation, billing, trust and growth
- Subscription tiers with Stripe Checkout, Portal and Connect
- Queued transactional email with a template preview route
Outcome
- An internal audit found that only three of thirty admin modules were enforcing a capability check. It was closed by moving the check inside every admin server function and adding a smoke script that fails if it regresses — the bug class is now visible rather than latent.
- Access is enforced in four independent layers, so no single mistake in the interface exposes an administrative action.
- Every privileged action is attributable after the fact, which is the difference between suspecting what happened and knowing.
- Thirteen engines with written contracts mean a change to notifications cannot quietly become a change to the feed.
Other work
More of the same kind of thing
Live · staff onlyCrew Chief
The internal platform the shop runs on: fitment, the build queue, pricing, CRM, marketing and the storefront's own tools.
Livewarp9racing.com
A storefront a rider can search by their own bike, fixed in place on the live theme one tested change at a time.
In progressThe wheel builder
A 3D wheel builder that knows the rider's bike, replacing a 357 KB script with 812 hard-coded keys.
Contact
Your project would be the next one of these.
Forty-five minutes, no charge, no pitch deck. Bring what is breaking and what you are planning.
Worth having to hand
- Rough headcount and how fast it is changing
- What you use for email and identity today
- The problem you have been putting off