Case Study: LOOM Brand Designs (all retainer clients)

Overwatch: Multi-tenant Marketing Data Warehouse

High-Level Impact

12 platforms loaded into Postgres every night and served as about 45 dashboard sections per client, plus an OAuth-protected MCP server that agents use to build audits.

Project Metadata

  • CategoryData Engineering / Cloud
  • ClientLOOM Brand Designs (all retainer clients)
  • My roleFounder & Lead Engineer
  • PeriodOct 2025 – Nov 2026
  • Liveoverwatch.loombranddesigns.com

Key Facts

Sources ingested nightly
12
Dashboard sections per client
≈45
Data models
129
Pages / API routes
122 / 103

Core Components

Next.js 16 + React 19
Prisma 6 on Cloud SQL Postgres (IAM auth)
BigQuery
Cloud Scheduler (12 ingest jobs)
Genkit + Gemini 2.5 Flash
React-PDF
Vitest (25 test files)
Overwatch overview · recorded on a fictional demo company, no client data

The Challenge

Each platform has its own API, quotas, attribution rules and time zones. Reports for seven retainer clients were being assembled by hand from a dozen dashboards, and numbers rarely matched between them.

Business Objectives

Nightly ingestion from 12 ad, analytics, commerce and email platforms
One data model across clients (129 Prisma models)
Per-client dashboards including finance (Xero) and cloud costs
Backfill, re-sync and finalise tools for operators
Read-only MCP access for AI agents
Exportable PDF reports

Solution Design

"Put every client's marketing, sales and cost data in one place so reports stop being copy-and-paste work, and so AI agents can answer questions from the same numbers the client sees."

1. Cloud Scheduler calls one ingest route per source: GA4, Search Console, Google Ads, Business Profile, Amazon, Facebook, Instagram, TikTok, Mailchimp, Postmaster, WooCommerce and GCP billing. 2. Each job writes normalised daily facts per tenant into Postgres; 48 admin endpoints handle backfills and re-syncs. 3. Dashboards read per-tenant views; Gemini flows surface keyword opportunities. 4. The MCP server exposes tools such as executive overview, time series, Xero profit and loss and cloud billing to AI agents.

Security & Scale

Tenant isolation at the query layer, Cloud SQL connector with IAM authentication (no database passwords in config), and jobs that can be replayed safely for any date range.

Results

122 pages and 103 API routes, around 73,000 lines of TypeScript. It is the data source behind the weekly and monthly client audits.

Project FAQs