~/gvndsxnkr
cd ../work

// case study 02 · commerce & marketplaces

Headless Skincare Storefront

Headless Shopify storefront for a D2C skincare brand, built on Hydrogen and deployed to Shopify's edge hosting.

$ cat case-study.jsonprivate
role
Software Engineer
context
D2C skincare brand (current role)
domain
Commerce & Marketplaces
stack
8 technologies

// 01 / architecture

How it's built

storefront

Shopify Hydrogen on React Router v7, deployed to Oxygen, with GraphQL codegen for typed Storefront and Customer Account queries

commerce

Automatic Buy X Get Y offers with auto-added free-gift lines, cart drawer and cart page, wishlist and buy-now

content

Blog with author profiles from metaobjects, per-page FAQs and structured data, a skin-analysis quiz and order tracking

automation

n8n workflow that finds abandoned carts and sends WhatsApp reminders

quality

Vitest unit tests, Playwright end-to-end tests, Core Web Vitals monitoring and a content security policy

// 02 / challenges

Hard problems

  1. 01

    Kept free-gift cart lines in sync with Shopify's automatic discounts: added at the threshold, removed below it, and pulled back if Shopify doesn't price them free.

  2. 02

    Fixed a shared in-flight promise that broke on Oxygen's worker runtime, where I/O can't be shared across requests.

  3. 03

    Rebuilt the wishlist on aliased product lookups after finding the Storefront API search ignores handle filters.

  4. 04

    Upgraded Hydrogen and restored account pages that silently returned 500 once the Customer Account client required its own query documents.

// 03 / stack

Stack

  • Shopify Hydrogen
  • React Router
  • TypeScript
  • GraphQL
  • Oxygen
  • Tailwind CSS
  • Playwright
  • n8n