· Case file / CS-001 · Flagship

One business, two storefronts,
and the system that joins them.

Greenbrook is a Canadian Natural Pharmacy & Health Foods retailer. In-store, they run on Lightspeed X and PropelRx. Online, they sell vitamins, supplements and health foods at GreenRx.ca. Two brands, two storefronts, one customer who expects them to behave as one place. The agency market priced that quietly at $1.5M+. We shipped it for a fraction.

Client
Greenbrook · GreenRx.ca
Domain
greenrx.ca
Sector
Pharmacy · Vitamins / Supplements / Health Foods
Year
2023 — present
Role
Platform · Integrations · Ops
Status
Live · we still operate it
● LIVE · greenrx.ca HOMEPAGE · 1440×900 · PNG
GreenRx.ca homepage — Magento 2 + Hyva storefront
· 01 · Outcome

99 / 99 / 99 / 99

Lighthouse Pagespeed across Performance, Accessibility, Best Practices and SEO. On a Magento 2 storefront. With a full omnichannel stack behind it.

Performance
0
/100 · LIGHTHOUSE
Accessibility
0
/100 · LIGHTHOUSE
Best Practices
0
/100 · LIGHTHOUSE
SEO
0
/100 · LIGHTHOUSE
· 02 · The problem

A working store.
No working web.

Greenbrook had a working retail pharmacy on Lightspeed X and a working dispensing system on PropelRx. What they didn’t have was an online storefront that meant anything — and no way to make a customer’s loyalty balance, account or stock follow them between the store and the web.

The cost of fixing that was the whole question. The market answered like this:

$200K+
Quoted as the floor for base Magento 2 dev. Before any custom integrations.
$100K
Quoted to scope ONE loyalty integration. Just the discovery phase. No build.
$1.5M+
Total estimated value of the platform the owner needed delivered.
18+ months
Typical agency timeline for an omnichannel rebuild of this scope.

The owner didn't accept a single one of those quotes. He called us.

· 03 · The approach

We wrote the connective tissue ourselves.

Three bidirectional syncs and one pharmacy bridge, all written in-house against the vendor APIs. Magento 2 + Hyva is the online face. Lightspeed X is the source of truth for retail inventory, customers and loyalty. PropelRx is McKesson’s pharmacy management software — Greenbrook uses it in-store; we don’t own it and we don’t touch its patient database. The PropelRx → Lightspeed bridge we wrote is one-way and carries nothing but a UPC and a price.

● ARCHITECTURE / SIMPLIFIED · build vs. buy: build
ONLINE · GREENRX.CA IN-STORE · GREENBROOK Magento 2 + Hyva online storefront Lightspeed X in-store POS · source of truth · TRACE-AI · CUSTOM SYNCS · BIDIRECTIONAL Inventory Sync real-time · one stock pool Customer Sync one profile across channels Loyalty Sync points · tiers · redemptions PropelRx McKesson pharmacy software · we don’t own UPC + price · no PHI Cloudflare + Algolia edge cache · search ALL CUSTOM SYNCS WRITTEN BY TRACE-AI · NO 3RD-PARTY MIDDLEWARE · ZERO PATIENT DATA CROSSES THE BOUNDARY
· 04 · What we built

Four integrations. Zero middleware.

01
Inventory Sync
BIDIRECTIONAL
Real-time inventory mirrored between Lightspeed X (in-store) and Magento 2 (online). One stock pool for vitamins, supplements and health foods. Sells online → decrements in-store stock instantly. Sells in-store → reflects on greenrx.ca in real time. Conflict resolution and reservation logic written from scratch.
Lightspeed X API Magento 2 REST Webhooks Reservation locks
02
Customer Sync
BIDIRECTIONAL
One customer profile across in-store (Greenbrook) and online (GreenRx.ca) — auth, addresses, order history. A walk-in transaction updates the same customer record the online storefront authenticates against. Magento ↔ Lightspeed only — PropelRx is not involved.
Magento Customer API Lightspeed Customers Auth federation Dedupe + audit
03
Loyalty Sync
BIDIRECTIONAL
Loyalty points and tiers move freely between in-store and online. Earn online, redeem in-store. Earn in-store, redeem online. Tier upgrades trigger across both channels in real time. The "$100K-just-to-scope" agency quote — built from spec.
Custom points ledger Tier engine Real-time redemption Audit-ready
04
PropelRx → Lightspeed Bridge
ONE-WAY · NO PHI
In-store only. When a prescription is filled in PropelRx — McKesson’s pharmacy management software, which Greenbrook uses to run its dispensary — our bridge reads only the prescription label’s UPC and total price, then calls the Lightspeed X API to create or update a matching product so the cashier can ring the prescription through the regular POS flow. We don’t own PropelRx, we didn’t build it, and we never touch its patient database. The bridge moves UPC + price — nothing else.
PropelRx capture Lightspeed X API UPC + price only PIPEDA-aware
· 05 · Said about us
“ We were quoted $200K just for base Magento dev — another $100K to even scope one loyalty integration. Trace-AI shipped the full platform, every custom sync, every integration, for a fraction of that. It hits 99 across every Pagespeed metric. They still operate it for us. ”
Owner — Greenbrook · GreenRx.ca
Natural Pharmacy & Health Foods
greenrx.ca ↗
· 06 · Selected screens

From storefront to checkout.

● Product detail page · vitamins / supplements 16/9
GreenRx.ca — Product detail page · vitamins / supplements
● Algolia faceted search · instant 16/9
GreenRx.ca — Algolia faceted search · instant
● Hyva Checkout · one page · address / shipping / payment 2/1
GreenRx.ca — Hyva Checkout · one page · address / shipping / payment
· 07 · Still live · still ours

We didn't ship it
and leave.

Trace-AI continues to operate the GreenRx stack — live ops, SEO, marketing automation, integrations, and the autonomous ops layer we're piloting on top of it. It's our flagship.

UPTIME · last 90 days 99.99%
ORDERS PROCESSED · live ● STREAMING
INVENTORY SKUs SYNCED 2,140+
AUTONOMOUS AGENTS ACTIVE 5 ● PILOT
· End of file

Want one like this?

We take on a handful of partners per quarter. Send us a brief, a repo link, or just an idea — we respond within 48 hours.

Start a project → More work