---
title: "Remote rendering: Shopify’s take on extensible UI"
description: "Shopify lets third-party extensions add native-feeling UI to its checkout and admin through remote rendering: untrusted extension code defines a UI tree inside a sandbox and sends it to a first-party host over a MessageChannel, and the host renders it with its own components."
url: "https://swe.quest/articles/remote-rendering-shopify-s-take-on-extensible-ui-fbebf6da98db1f82"
canonical: "https://shopify.engineering/remote-rendering-ui-extensibility"
source: "Shopify Engineering"
published: "2021-12-01"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 8
tags: ["frontend","sandboxing","react","rpc","javascript"]
---

# Remote rendering: Shopify’s take on extensible UI

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2021-12-01, 8 min read, Deep dive. Original: [https://shopify.engineering/remote-rendering-ui-extensibility](https://shopify.engineering/remote-rendering-ui-extensibility)

## Summary

Shopify lets third-party extensions add native-feeling UI to its checkout and admin through remote rendering: untrusted extension code defines a UI tree inside a sandbox and sends it to a first-party host over a MessageChannel, and the host renders it with its own components. The open-source remote-ui library supplies the building blocks. These are an RPC layer that can pass functions and callbacks across postMessage using Promises, Proxies and automatic memory management, a DOM-like RemoteRoot that serializes tree updates as JSON, and receivers that rebuild the tree as DOM or React components. The production sandbox runs in web workers, Android web views or iOS JavaScriptCore, served from a separate domain, with dangerous globals like importScripts removed and fetch restricted to specific domains. The library has since evolved into Remote DOM, which uses the full browser DOM API inside the sandbox.

Written by swe.quest, not by the author.

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

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [RPC & gRPC](https://swe.quest/tags/rpc.md) (Backend & APIs)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- React components ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- postMessage and web workers
- JavaScript Promises and Proxies ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

remote-ui, Remote DOM, Shopify, MessageChannel, Web Workers, JavaScriptCore, RemoteRoot

## Related posts

- [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 to add Monaco to a Next.js app and securely run untrusted user code](https://swe.quest/articles/how-to-add-monaco-to-a-next-js-app-and-securely-run-untrusted-user-code-1a2e3adbb0c82f79.md): Deno · 2024-02-29 · Medium · 9 min read · React, Sandboxing & isolation, Serverless, Frontend, JavaScript
  A Next.js 14 app can host a browser IDE by embedding the Monaco editor via @monaco-editor/react, then sending the editor contents to server-side API routes that call the Deno Deploy Subhosting API.
- [Host a Dev Environment on Render with VS Code and Tailscale](https://swe.quest/articles/host-a-dev-environment-on-render-with-vs-code-and-tailscale-6236fb7c08487752.md): Render · 2021-10-06 · Medium · 17 min read · Developer tools, Containers, Networking, Cloud platforms, Identity & auth
  A self-hosted cloud dev environment can run on Render as a private service, reached over a Tailscale subnet router and edited with VS Code's Remote-SSH extension. code-server works and installs as a PWA, but it lacks some extensions.
- [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.
- [Five years of React Native at Shopify](https://swe.quest/articles/five-years-of-react-native-at-shopify-84f013b1c431ce8f.md): Shopify Engineering · 2025-01-13 · Easy · 9 min read · React, Mobile, Developer productivity, Engineering management
  After five years, Shopify has migrated all its mobile apps to React Native, with each team choosing its own migration timing, and reports sub-500ms P75 screen loads, over 99.9% crash-free sessions, and an end to iOS/Android feature-parity work.

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)
