Transitioning to Appcraft: Evolution of Zalando’s server-driven UI framework
Zalando replaced its Truly Native Apps (TNA) framework, whose fixed, versioned composite tiles forced client releases for small UI changes, with Appcraft, a server-driven UI framework built on an Elm-style unidirectional architecture and Flexbox layout. Texture on iOS and Litho on Android map Flex definitions onto native views such as UICollectionView and RecyclerView. Screens are composed on the server from primitives (Label, Button, Image, Video, Layout) plus event-to-action bindings, and schema versioning stays server-side. That lets the team gate components by app version, platform or A/B test, remove faulty components without hotfixes, and ship new screens via deep-link configuration the same day. Client releases are needed only for new primitives. Remaining challenges include monitoring launched screens, balancing generality against restrictiveness, interoperability with non-Appcraft components, and cross-platform differences between the layout libraries.
Related posts
- Implementing Server-Driven UI Architecture on the Shop App
Shopify Engineering mediumAdeptShopify'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.
- Macramé: Untangling the Knot on the Etsy Android Listing Screen
Etsy Code as Craft mediumAdeptEtsy rewrote its 4000-line Android listing Fragment into Macramé, a Mobius-inspired unidirectional architecture: a single immutable State exposed via StateFlow, flattened into small UI models rendered by a RecyclerView with ListAdapter diffing, and a sealed-class Event dispatcher routing actions to single-purpose Handlers that update State, launch async work, or emit SideEffects to the Fragment. The five-month rewrite cut Time to First Content by 18% (1585 ms to 1298 ms), lifted listing views, add-to-carts and searches in an A/B test, and raised business-logic unit test coverage from single digits to 76%. Remaining tradeoffs include Event/Handler wiring boilerplate, harder debugging of Handler-dispatched event chains, and overkill on simple screens.
- Micro Frontends: from Fragments to Renderers (Part 1)
Zalando Engineering easyNoviceZalando replaced its Mosaic micro-frontend architecture, built on team-owned page Fragments, with Interface Framework, a unified platform where pages are trees of typed Entities (Product, Collection, Outfit) mapped via declarative rendering rules to React Renderers that declare data needs in GraphQL. A Node.js/browser Rendering Engine resolves and renders the Entity tree chosen by the recommendation system, with built-in monitoring, batched A/B testing, deployment previews against production, and performance gates such as Lighthouse CI, bundle size limits and Web Vitals reporting. Moving teams into a monorepo with a shared stack lowered the entry barrier and improved UX consistency, at the cost of blurred ownership. A hybrid mode serving Fragments and Renderers together eased migration, and about 90% of traffic now runs on IF.
- Mobile Bridge: Making WebViews Feel Native
Shopify Engineering mediumAdeptShopify's mobile app serves many of its ~600 screens as WebViews, made to feel native through Mobile Bridge, a framework built on @remote-ui/rpc for two-way web/native communication. Preloading, pre-authenticating and caching WebViews in native iOS/Android modules cut P75 load time from 6s to 1.4s. Injected JS/CSS disables zoom and text selection, and modified Polaris components push titles and actions into the native nav bar. A TransportableView moves a single WebView instance between screens to preserve state, with snapshots covering back navigation. The bridge also exposes native features like the date picker and barcode scanner to web content, and remote-dom is being explored to render Polaris components natively.
- Building a Modular Portal with Webpack Module Federation
Zalando Engineering mediumAdeptZalando's logistics transport teams built an internal portal from independently deployed micro frontends using Webpack Module Federation, so five teams could ship new and legacy apps without redeploying the host. A central backend proxy handles authentication and OPA-style authorisation, returns the list of apps each user may access, and the portal fetches each app's manifest (menu items, permissions, remoteEntry bundle path) to lazy-load it on route activation. Version conflicts are handled by sharing singletons like React and lodash, and cross-app communication goes through a single prop interface for session data, logout, navigation and error reporting. The portal now hosts 11 apps from 4 teams, with a shared npm UI-kit keeping the design consistent.