---
title: "Implementing Server-Driven UI Architecture on the Shop App"
description: "Shopify's Shop App moved its Store Screen from client-driven to server-driven UI so the backend decides which sections (Best Sellers, Collections, All Products) and layouts (Grid, Shelf) each merchant's store renders."
url: "https://swe.quest/articles/implementing-server-driven-ui-architecture-on-the-shop-app-6be47fae080cf1dc"
canonical: "https://shopify.engineering/server-driven-ui-in-shop-app"
source: "Shopify Engineering"
published: "2022-11-22"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["mobile","graphql","react","system-design","api-design"]
---

# Implementing Server-Driven UI Architecture on the Shop App

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2022-11-22, 10 min read, Case study. Original: [https://shopify.engineering/server-driven-ui-in-shop-app](https://shopify.engineering/server-driven-ui-in-shop-app)

## Summary

Shopify's Shop App moved its Store Screen from client-driven to server-driven UI so the backend decides which sections (Best Sellers, Collections, All Products) and layouts (Grid, Shelf) each merchant's store renders. Doing this decouples UI fixes and experiments from the weekly mobile release cadence. Server side, a template processing layer, per-section data loaders, a GraphQL layer exposing typed ProductsSection/CollectionsSection with configurable layouts, and an orchestrator work together. On the client, a React component tree dispatches each section to grid or shelf components. Older clients that receive unknown layout types fall back to a per-section default layout defined on the client.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [GraphQL](https://swe.quest/tags/graphql.md) (Backend & APIs)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)

## Prerequisites

- React components and hooks ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- GraphQL schemas and queries ([easy posts on GraphQL](https://swe.quest/tags/graphql.md?difficulty=easy))
- Mobile app release cycles ([easy posts on Mobile](https://swe.quest/tags/mobile.md?difficulty=easy))

## Keywords

Server-driven UI, Shop App, GraphQL, React Native, Shopify

## Related posts

- [Leveraging Shopify’s API to Build the Latest Marketplace Kit](https://swe.quest/articles/leveraging-shopify-s-api-to-build-the-latest-marketplace-kit-a198dca7199a1ac1.md): Shopify Engineering · 2022-04-08 · Medium · 5 min read · GraphQL, JavaScript, Identity & auth, E-commerce, API design
  Marketplace Kit 2.0 decouples its sample code from the Shopify CLI's generated Node app and splits it into a full-stack Express/React admin app and a Next.js buyer app, both open-sourced.
- [Shopify’s platform is the Web platform](https://swe.quest/articles/shopify-s-platform-is-the-web-platform-7efe3322420f447d.md): Shopify Engineering · 2023-07-26 · Medium · 10 min read · Frontend, Browsers, React, Developer tools, E-commerce
  Remix is now Shopify's recommended framework for building Admin apps, backed by a rewritten, final version of App Bridge that makes cross-origin iframes behave like a normal web environment.
- [How we use GraphQL at Europe's largest fashion e-commerce company](https://swe.quest/articles/how-we-use-graphql-at-europe-s-largest-fashion-e-commerce-company-98c53d6b8b858147.md): Zalando Engineering · 2021-03-03 · Easy · 6 min read · GraphQL, API design, Microservices, E-commerce, Resilience
  Zalando replaced a sprawl of per-page and per-platform Backend-for-Frontend services with a single unified GraphQL API owned via a shared monorepo across 12+ domain teams.
- [Remixing Shopify's Admin: How We Made It 30% Faster and AI-Ready](https://swe.quest/articles/remixing-shopify-s-admin-how-we-made-it-30-faster-and-ai-ready-996b243df73e0345.md): Shopify Engineering · 2025-06-30 · Medium · 7 min read · Web performance, React, Frontend, Refactoring & migrations, AI agents
  Shopify migrated its Admin (67 million daily page views, 101 teams, ~350 PRs merged daily, 3M+ lines of TypeScript) to Remix in SPA mode with Vite.
- [Improving Shopify App’s Performance](https://swe.quest/articles/improving-shopify-app-s-performance-3211dcd650ae34c6.md): Shopify Engineering · 2024-03-05 · Medium · 8 min read · Mobile, React, Performance engineering, Caching
  Shopify cut its React Native mobile app's P75 launch time by 44% and screen load times by 59% over 2023, against targets of 2s launch and 500ms critical-screen loads.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
