Generative UI vs server-driven UI
Server-driven UI is a delivery method, where the server sends a description of the screen and the app draws it from components it already ships. Generative UI is a way of deciding that description for each visit, with rules or a model reading data about the visitor. Most generative UI is built on server-driven UI, so the two usually work together.
What is the difference between generative UI and server-driven UI?
Generative UI vs server-driven UI comes down to one question: who decides what goes on the screen, and from what. In server-driven UI, the server sends a description of the screen and the app draws it from components it already ships. In generative UI, that description is decided for each visit, by rules or a model reading data about the visitor. Server-driven UI answers how a screen reaches the app. Generative UI answers which screen this visitor should get.
What is server-driven UI?
Server-driven UI (SDUI) moves the layout of a screen out of the app’s code and into a response from the server. The app holds a library of components, such as a carousel, a price block or a review list, plus a renderer. The server returns a structured document, usually JSON, that names which components to show, in what order, with what data and what happens on a tap. Change the response and the screen changes, with no new app build.
Three published examples show the pattern:
- Airbnb’s Ghost Platform. Airbnb describes a system where one backend response controls a screen’s layout, the data in each section and the actions taken when a user interacts, across web, iOS and Android. Screens are built from three kinds of element: sections (groups of components), screens (where and how sections appear) and actions (what an interaction does). InfoQ’s summary covers the shared GraphQL schema behind it.
- Shopify’s Shop app. The Store Screen used to show the same layout for every merchant. Shopify moved it to server-driven UI so the backend chooses which sections a store gets: a best sellers section helps a store with a large catalog and duplicates the main listing for a small one. The weekly app release cadence had also limited how often the team could run experiments.
- Lyft Bikes and Scooters. Lyft’s team moved to SDUI as docked bikes, e-bikes and scooters multiplied the differences the app had to handle. They name business complexity, release velocity and staffing flexibility as the reasons.
The common thread is release independence. A mobile app update goes through store review and then waits for users to install it, and some never do. SDUI lets a team change a screen, fix a broken section or run a test from the server. The cost is a contract: every response has to render on every app version still in use, which is why Shopify’s client keeps a default layout for any section type it does not recognize.
What does generative UI add?
In most SDUI systems, the response depends on the state of the app and the business: the route, the app version, the merchant, the experiment arm. Two people looking at the same product in the same app version get the same screen.
Generative UI keeps the delivery and changes the decision. The response is composed for this request from data about the visit: what this person has viewed, searched or put in the basket, and where they are in a flow. The decider can be hand-written rules or a model choosing from a catalog. What is generative UI? sets out the three ways to generate an interface, and json-render explained covers one library that draws a model’s spec from your own components.
Generative UI vs server-driven UI compared
| Server-driven UI | Generative UI | |
|---|---|---|
| What it is | A delivery method for screens | A way of deciding screens |
| Who decides the layout | A person, through config or code on the server | Rules or a model, on each request |
| When it is decided | When someone publishes a change | At request time, for each visit |
| Input to the decision | App state: route, app version, market, experiment arm | Visit state: what this person is doing now, plus app state |
| How many distinct screens | As many as someone configured | Potentially one per visit |
| Catalog constraint | Components the app ships | The same components; a model is limited to the catalog it is given |
| Testing | Snapshot each configured screen | Test the rules or model across sampled states, and A/B test the decider |
| Typical failure | A response an old app version cannot render | A wrong choice from stale or missing state, or a model picking an unsuitable component |
| Tooling | In-house frameworks (Ghost Platform), JSON schemas, GraphQL | A decider (rules engine or model), a spec renderer such as json-render, a source of live visit state |
Two rows matter most. The input row explains why a server-driven screen stays the same for everyone in a given state. The failure row explains why generative UI raises the bar on data: a decision that reads a segment computed before the visit is wrong in a way no renderer can fix. Why generative UI needs real-time state covers that in depth.
Example: the same product page built both ways
Take a product page in a clothing app. Both versions use the same response shape and the same components. This is a generic sketch, not any framework’s format:
{
"screen": "product",
"sections": [
{ "type": "gallery" },
{ "type": "price_and_buy" },
{ "type": "description" },
{ "type": "reviews" },
{ "type": "related_products" }
]
}
Server-driven. A merchandiser configures the product template on the server. Outerwear gets a care-instructions section; an experiment moves reviews above the description for half of traffic. The team can ship that without an app release. Every shopper on a given jacket, in the same arm, sees the same order.
Generative. The response shape is identical, but the section order is chosen per visit from two facts about the session. Defined as attributes, values computed from events about one key, they could look like this in Snowplow Signals:
from snowplow_signals import (
Attribute, Event, EventProperty, StreamAttributeGroup, domain_sessionid,
)
product_view = Event(name="product_view", vendor="com.example", version="1-0-0")
size_guide_open = Event(name="size_guide_open", vendor="com.example", version="1-0-0")
product_id = EventProperty(vendor="com.example", name="product_view", major_version=1, path="product_id")
products_viewed_session = Attribute(
name="products_viewed_session",
type="int32",
events=[product_view],
aggregation="approx_count_distinct",
property=product_id,
)
size_guide_opens_session = Attribute(
name="size_guide_opens_session",
type="int32",
events=[size_guide_open],
aggregation="counter",
default_value=0,
)
product_page_visit = StreamAttributeGroup(
name="product_page_visit",
version=1,
attribute_key=domain_sessionid,
owner="you@example.com",
attributes=[products_viewed_session, size_guide_opens_session],
)
A shopper who has opened the size guide twice gets fit details and reviews that mention sizing directly under the gallery. A shopper who has viewed several similar jackets gets a comparison section above the description. A first-time visitor gets the default order. The decider can be three rules today and a model choosing from the same catalog later. The app and the renderer do not change in either case.
When should you choose which?
Choose server-driven UI alone when the screen should be the same for everyone in a given state, and the goal is to change it without an app release: legal and pricing pages, checkout steps, merchant- or market-specific layouts, fast fixes. It is also the prerequisite. Without a renderer that draws screens from a server response, generative UI on mobile means shipping every variant in the app.
Add generative UI when the right screen depends on what the visitor is doing, and the number of cases outgrows what a team can configure by hand. That usually means discovery surfaces: home screens, product pages, search results, onboarding.
In practice they combine. SDUI is the transport, and a rule or a model is the decider that fills in the response. Start with rules over a few sections, measure them against your current screen with an A/B test (generative UI vs static A/B testing covers how), and move parts of the decision to a model as cases multiply.
Where Signals fits
Neither approach supplies the visit state a generative decision reads. You can compute it yourself from an event stream, or use a service for it. Snowplow Signals is one option: it collects behavioral events from your web and mobile apps, computes attributes like the two above, and serves them to your server when it builds the response. The renderer, the catalog and the decision stay in your code. The Generative UI topic covers the rest of the cluster.
See it on your own traffic
Add the SDK, define one attribute, and see an attribute updating against your own traffic in the first session. The free tier runs on the real engine: no card, no sales call.