The Challenge: Decisions Without Data
Growing D2C brands hit a point where spreadsheets stop scaling. mdlondon had data everywhere — Shopify for orders, Klaviyo for email performance, spreadsheets for inventory planning, and no unified view tying it all together.
The specific problems:
- No single source of truth: Revenue, customer, and product data scattered across four different platforms
- Slow reporting cycles: Monthly business reviews relied on manually compiled spreadsheets that were outdated before they were finished
- No customer segmentation: Understanding who the VIP customers were, how they behaved differently, and what drove lifetime value required manual analysis every time
- Inventory blind spots: Low stock and out-of-stock products weren’t surfaced proactively — the team found out when customers complained
The Solution: A Purpose-Built BI Platform
We built mdlondon Insider as a production-grade business intelligence platform — not a quick dashboard hack, but a properly architected system designed to scale with the business.
Real-Time Data Pipeline
Shopify orders, products, and customers sync in real time via API integration. Klaviyo email and SMS metrics flow through a dedicated connection. Everything lands in a PostgreSQL database via Supabase, with background workers handling data refresh and transformation.
Analytics Modules
The dashboard provides eight distinct views, each designed for a specific business question:
- Overview: Real-time KPI snapshot — total revenue, orders, customers, AOV — with AI-powered trend insights
- Sales Analytics: Revenue trends, order volumes, and AOV tracking across 7, 30, and 90-day periods with daily granularity
- Product Analytics: Catalogue performance, inventory status, category distribution, price range analysis, and margin tiers
- Customer Analytics: Segmentation (VIP, Loyal, Regular), lifetime value tracking, acquisition trends, and top spender identification
- OKRs: Company objectives and key results tracking — currently managing 3 objectives with 9 measurable key results
- Shopify Integration: Real-time store metrics with growth rate calculations
- Klaviyo Integration: Email marketing performance — subscribers, campaigns, open rates, click rates, revenue attribution
- Documents: Company document library with markdown support for SOPs and brand guidelines
Monorepo Architecture
The platform is structured as a Turbo monorepo with eight packages — separating the dashboard app, data layer, shared UI components, authentication, background workers, and configuration. This architecture means any module can be updated, tested, and deployed independently.
Tech stack: Next.js 15, React 19, TypeScript, Tailwind CSS, Recharts, Supabase (PostgreSQL + Auth), SWR, Sentry, Playwright for E2E testing.
The Result
mdlondon’s team now has a single, real-time view of their entire business. Monthly reporting that used to take days happens automatically. Customer segmentation that required analyst time is now always current. And inventory issues surface before they become customer problems.
This is what it looks like when a D2C brand treats its internal tools with the same care as its customer-facing product.