Remote rendering: Shopify’s take on extensible UI
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.
Related posts
- Shopify’s platform is the Web platform
Shopify Engineering mediumAdeptRemix 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. App Bridge uses postMessage() to restore what browsers strip from iframes: it syncs history.pushState() URL changes to the top-level page, supplies OpenID Connect ID tokens in place of unavailable cookies, and exposes Admin integrations such as sidebar navigation through standard Custom Elements. It is loaded from a CDN script tag so fixes reach every app without redeploys. The Remix template bundles @shopify/shopify-app-remix for OAuth, ID token and HMAC handling, plus Prisma for storage and session persistence.
- How to add Monaco to a Next.js app and securely run untrusted user code
Deno mediumAdeptA 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. One route creates a uniquely named project, one creates a deployment from the submitted code, and one fetches deployment status. The client polls that status until it leaves 'pending' and, on success, loads the deployment URL in an iframe. Isolation of the untrusted code is handed off to Subhosting rather than implemented in the app. Suggested next steps include persisting projects, adding a filesystem and adding authentication.
- Host a Dev Environment on Render with VS Code and Tailscale
Render mediumAdept
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. OpenSSH fails in Render's unprivileged containers because privilege separation needs CAP_SYS_CHROOT, so dropbear serves SSH instead, with SSH agent forwarding for GitHub authentication. A persistent disk mounted at /home keeps repos, caches and the VS Code binaries across deploys, and a start script recreates authorized_keys at runtime so the mount doesn't overwrite it.
- Remixing Shopify's Admin: How We Made It 30% Faster and AI-Ready
Shopify Engineering mediumAdeptShopify 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. The result is a 30% improvement in perceived load times. Statically globbed, typed route manifests replaced a runtime getRoutes function and give Search and Sidekick a single source of truth for all 1,017 routes. Remix loaders remove the code-then-data waterfall by fetching a 3.2kb loader in parallel with a 914kb component bundle, and idle-time prefetching of loaders warms an Apollo cache persisted in IndexedDB. Adding Remix actions and zod schemas lets the Sidekick AI fill and submit forms without loading UI JavaScript.
- Five years of React Native at Shopify
Shopify Engineering easyNoviceAfter 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. Hot reloading and TypeScript let engineers move between web and mobile, but native developers and native code remain essential for hardware features, widgets, watch apps and long-running background sync such as Point of Sale offline data. The downsides are flaky debugging, labor-intensive framework upgrades (handled by a rotating group) and heavier reliance on third-party libraries, mitigated with Dependabot and code scanning. Shopify is now extracting shared libraries for identity, monitoring and performance measurement after initially trading consistency for migration speed.