Case Study · FlavaTeam

A Headless Shopify Store for a Run Club Apparel Label

FlavaTeam sells small runs of apparel for a run club. KeyesCode built the label a custom storefront in its own design, with Shopify still running products, stock, checkout and orders behind it. Sold-out pieces stay on the site with a Notify me button, restocks email the people who asked, and every product is laid out for Google, Google Shopping and AI assistants to read.

ShopifyHeadlessStorefront APINext.jsNestJSTypeScriptPostgresResendRailway
FlavaTeam storefront homepage, featuring the Cursive Beanie
What the store needed

A label's own look, with Shopify running the store

The brief was a storefront that feels like the label rather than a template, while the owner keeps managing products, stock and orders in Shopify. It also had to handle what small runs do best: sell out.

A store that looks like the label

The label wanted its own look, not a theme with its logo on it: a custom design the client approved, in black, bone and red, with oversized type and every piece numbered.

Shopify kept in charge

Products, stock, checkout and orders had to stay in Shopify, so the owner runs the store from one admin while the storefront is entirely custom.

Sold out as a normal state

A small-run label sells out. A sold-out piece still needed a page worth visiting and a way for shoppers to hear when it comes back.

Easy to find

Shoppers find clothes through Google, Google Shopping and AI assistants as much as through the store itself, so every product had to be readable by them.

What we built

A custom storefront on top of Shopify

KeyesCode built a pnpm monorepo with three parts: a Next.js storefront, a NestJS API with TypeORM and Postgres, and a shared types package both apps use. Shopify stays the source of truth for products, stock, checkout and orders. The storefront and the API add everything around them: the design, the pages, restock emails and the list.

Shopify-backed

Products, stock, checkout and orders stay in Shopify

Back in stock

Sold-out pieces email the people who asked

Built to be found

Structured for search, Google Shopping and AI

The storefront

Shop, bag, checkout, and what happens when a piece sells out

Shoppers browse a custom site and pay in Shopify's own checkout. A sold-out piece is a reason to join the list, not a dead end.

A catalogue read from Shopify

The API reads products, per-size stock, images, collections and policies from Shopify's Storefront API through the Headless sales channel, on the server only. The private token never reaches the web app or the browser. Reads are cached briefly, and if Shopify can't be reached the last good catalogue keeps being served.

A bag that is a Shopify cart

The browser only talks to the storefront's own routes, and the cart id sits in an httpOnly cookie. Checkout hands off to Shopify's hosted checkout, so prices, stock limits, taxes, shipping and payment all stay in Shopify.

Every page a shopper looks for

Home, a shop with category filters, drops with the newest first, a lookbook, about, contact, and policy pages pulled from Shopify. An unknown product returns a real 404 status, even though the pages stream.

Notify me, then "It's back"

Sold-out pieces move to an archive instead of disappearing, and every sold-out piece or size has Notify me. When stock returns in Shopify, a signed webhook (checked with HMAC) triggers an "It's back" email, sent once per request, with a scheduled sweep as the backstop if a webhook is missed.

The list

A drop newsletter with confirmation emails, one-click unsubscribe, a honeypot and rate limiting. A sign-up never reveals whether an address is already on the list.

A look at the next drop

A "Next drop" teaser shows the upcoming run club training line as samples, with no prices and no product links, so the list has something to wait for.

Another headless Shopify build, for a specialty coffee brand:

Read the Café con Andrea case study
Built to be found

Readable by search engines, Google Shopping and AI assistants

A custom storefront only pays off if people can find it. Every product page carries the data search engines and shopping tools look for, and the store tells them when something changes.

Product pages search engines understand

Canonical URLs, the SEO fields the owner sets in Shopify, and full Product structured data with sizes, availability, shipping and returns, plus a sitemap of every page.

A Google Shopping feed

A Google Merchant Center product feed built from the live catalogue. Its links send shoppers to the storefront, not to the Shopify domain.

A catalogue AI assistants can read

An llms.txt version of the catalogue: the brand, the next drop, the key pages and policies, and a line for each product, written for AI assistants.

Search engines told when a page changes

When a product changes in Shopify, the store pings IndexNow so Bing, which feeds ChatGPT search and Copilot, re-reads that page soon after instead of on its next crawl.

Under the hood

Guard rails that keep a bad deploy away from shoppers

The storefront and the API both run on Railway, and email goes through Resend. Both apps are built to stop a broken setting early, in CI or at start-up, rather than let it reach shoppers.

No half-configured starts

In production each app checks its settings at start-up and refuses to run with one missing, instead of quietly falling back to localhost. The deploy fails its health check and the previous version keeps serving.

A clean browser bundle

CI runs lint, typecheck, tests and the build on every change, and fails if the browser bundle mentions localhost.

No double sends

Each restock request is claimed just before its email and marked sent only after the email provider accepts it, so two runs can never both send it.

Next.js (App Router)

The storefront: every page, the bag, and the sign-up forms.

NestJS

The API: catalogue, cart, sign-ups, restock emails and webhooks.

TypeORM + Postgres

Restock requests and newsletter subscribers.

Shopify Storefront API

Products, stock, collections, policies and the cart, through the Headless channel.

pnpm monorepo

The storefront, the API and a shared types package, typed end to end.

Resend

Confirmation, "It's back" and newsletter emails, each with an unsubscribe link.

Railway

Hosting for both the storefront and the API.

TypeScript

One language across the storefront, the API and the shared types.

Related services

Work like this

The services behind this build, and where we deliver them.

Want a Shopify store that looks like your brand?

We build custom storefronts on Shopify, so you keep Shopify's checkout and admin and get a site designed around your brand and built to be found.