INV—W/PETIQ · CASE · 2026 ONE CORE → THREE SURFACES · FIG. 01
Invental/ Works/ Pet-Nutrition Platform
Data platform Shopify — Confidential engagement · DTC pet-nutrition

Ingredient intelligence.

A direct-to-consumer pet brand needed to turn messy public data into a clean, scored ingredient database — and surface it two ways: a consumer site, and a quiz widget that pet stores could embed on their own Shopify storefronts.

Confidential · under NDA
Full-stack data platform · site + Shopify + widget
Data pipeline · Consumer site · Shopify app · Embeddable widget
Web · Shopify · embeddable
Pet-tech / DTC e-commerce
Pet-nutrition ingredient-intelligence platform and embeddable Shopify widget
[ M · 01 ]
8K+
Products normalized, scored and A–F graded from messy public data
[ M · 02 ]
99.4%
Ingredient-normalization match rate, AI-assisted
[ M · 03 ]
65KB
Embeddable widget — one bundle, zero theme CSS collisions (gzipped)
[ M · 04 ]
~$30
Total AI spend to curate the entire dataset

§ 01Context

The client is building an ingredient-intelligence database for pet food — safety and quality scoring, allergens, recall history — and wanted to surface it two ways: a public consumer site with a label scanner and a pet-profile quiz, and a SaaS quiz widget that pet stores and vet clinics embed on their own storefronts to give shoppers ingredient-aware recommendations.

§ 02Challenge

Three problems stacked on top of each other. First, the raw data is a mess — open food databases, regulator recall feeds, and manufacturer pages, none of it clean or consistent. Second, the same recommendation logic has to run behind a website and a merchant-embedded widget without being written twice. Third, that widget has to load inside any Shopify theme without its CSS colliding with the store's — and do all of it cheaply.

One brain, three surfaces — the same recommendation logic runs the website, the Shopify storefront, and a 65KB widget on someone else's theme.— Architecture note

§ 03Architecture

Layer · 01 Shared core

Recommendation, search and scoring in one package that takes a SQL handle — reused across three surfaces.

TypeScriptParameterized SQLPostgreSQL
Layer · 02 AI curation

A small vision+text model normalizes, tags, extracts and scans labels — 8,000+ records curated for about $30.

Claude HaikuVision OCREntity resolution
Layer · 03 Consumer site

A Next.js site with a label scanner, pet-profile quiz and a spine ready for 600+ SEO pages.

Next.jsReactISR / SSG
Layer · 04 Shopify app + widget

A Theme App Extension embed block, multi-tenant product mapping and a per-merchant storefront API.

React RouterPolarisTheme App Extensionpg_trgm

§ 04The widget

The embeddable widget is the part that had to be perfect, because it runs on stores we don't control. It's React compiled to a single ~65KB self-contained bundle (no module system on a storefront), with all CSS hand-written and prefixed so it can't collide with the merchant's theme, delivered through a Shopify Theme App Extension embed block that works on legacy and modern themes alike. Add-to-cart goes through Shopify's own cart API; every shop's data is isolated by ID. It ships well under a 150KB budget.

§ 05Result

  1. 8,000+ graded products for ~$30. A messy public corpus turned into a clean, scored dataset at 99.4% normalization — AI used where it pays, measured honestly where it doesn't.
  2. One core, three surfaces. Site, Shopify storefront and widget share the same recommendation brain.
  3. A widget merchants can actually install. 65KB, zero theme collisions, per-merchant isolation.
  4. A base built to scale. A data spine ready for hundreds of SEO pages and a merchant SaaS tier.

— Related: Custom Shopify App case · Building a Custom Shopify App. Building on Shopify or with data at the core? Start a conversation.

— More work View all case studies ↗
Real-time Odds Platform
Real-time Odds Platform
2026Sports-tech
Real-time odds, scores & AI predictions
Custom Shopify App
Custom Shopify App
2026Shopify
Custom Shopify app — storefront to App Store
Network-analytics App
Network-analytics App
2026Desktop / AI
A native macOS network-analytics app

Have a data product to build? Let's ship it.

We build data platforms and Shopify products end to end — ingestion and AI curation, a consumer surface, and the embeddable pieces merchants actually install. Thirty minutes is usually enough to see if we're a fit.

Book an intro call