Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Sources

Shopify Engineering

November 2026

Building secure mobile apps in the agentic era

Case study 6 min +60 XP

Shopify keeps pace with an 11x jump in mobile code output (~434k lines changed per week during a 12-week agent-driven rewrite) by maintaining a per-app attack surface map covering deep links, WebViews, stored data, permissions and dependencies, where every item carries one of five verdicts and a code link.

Cyber Chaos Monkey: Staying ahead of security threats with AI agents

Case study 7 min +70 XP

Shopify's Cyber Chaos Monkey (CCM) is an agentic vulnerability hunter that attacks live production infrastructure using test shops, armed with source code, threat intel, past bug reports and deployment records.

October 2026

Cross-store product clustering across millions of stores

Case study 13 min +130 XP

Shopify groups listings of the same product across millions of stores under a global Universal Product Identifier using a three-stage pipeline: embedding-based approximate nearest-neighbor retrieval to find candidate pairs, tiered pair scorers, and graph clustering.

September 2026

Native is now the future of mobile at Shopify

Case study 10 min +100 XP

Shopify is moving its mobile apps from React Native back to native Swift and Kotlin because coding agents have cut the cost of building and keeping features in parity across two platforms, while native still gives closer access to platform capabilities and first-party tooling.

August 2026

July 2026

Building an agentic harness that outlasts the model

Case study 8 min +80 XP

Shopify's AppSec team built Dispatch, a Ruby-orchestrated multi-agent harness that partitions codebases, runs parallel category-specific Hunter agents, verifies candidates with tests written by a different model inside each app's existing test suite, and opens draft fix PRs.

Upgrading Checkout Blocks app to Polaris web components

Case study 10 min +100 XP

Shopify's Checkout Blocks team migrated five high-traffic checkout UI extensions from React and the legacy Remote UI bridge to Preact, remote-dom and Polaris web components, rewriting them in TypeScript, and cut transferred bundle sizes by 40-85% and extension load time by about 8% at P50.

June 2026

Quick: An internal hosting platform for the AI era

Case study 9 min +90 XP

Quick is Shopify's internal static hosting platform: each site is a folder in a Google Cloud Storage bucket, mounted via gcsfuse and served by a wildcard NGINX config behind Identity-Aware Proxy, with `quick deploy` wrapping gcloud rsync.

May 2026

April 2026

Autoresearch isn’t just for training models

Case study 8 min +80 XP

Generalizing Karpathy's Autoresearch beyond model training, Shopify built pi-autoresearch, an extension for the Pi agent harness that runs an agent in an endless loop against a single measurable metric: establish a baseline, form a hypothesis, test it, keep improvements and discard crashes or regressions.

March 2026

February 2026

January 2026

December 2025

Tangle: An open-source ML experimentation platform built at Shopify scale

Announcement 11 min +110 XP

Tangle is Shopify's newly open-sourced ML experimentation platform: users build pipelines visually as DAGs of containerized CLI components defined in YAML, so components can be written in any language and run on any cloud or locally.

November 2025

Run for your money: Engineering a treadmill that prints store credit

Case study 8 min +80 XP

For NYC Marathon weekend, Shopify and Endorphins Running built a gamified curved manual treadmill that awards in-store credit for holding a chosen pace within a padded "zone" for 30 seconds, earning 1/30th of $75 per second in zone.

Building world-class product search at Shopify: Where C++ excellence meets ML innovation

Case study 5 min +50 XP

Shopify's product search runs ML ranking models (transformers, neural rankers, CatBoost/LightGBM) at native C++ speed through RankFlow, a Python-like ranking DSL, and TurboDSL, its execution engine.

October 2025

September 2025

August 2025

Building production-ready agentic systems: Lessons from Shopify Sidekick

Case study 6 min +60 XP

Shopify's Sidekick merchant assistant outgrew a monolithic system prompt once its tool count passed ~50, so the team moved to just-in-time instructions returned alongside tool results, which kept prompt caches intact and improved maintainability and metrics.

July 2025

Leveraging multimodal LLMs for Shopify’s global catalogue: Recap of expo talk at ICLR 2025

Case study 11 min +110 XP

Shopify's Global Catalogue uses fine-tuned open-source vision LLMs (LLaVA 1.5 7B, then LLaMA 3.2 11B, now Qwen2VL 7B) to classify, extract attributes from, standardize and match billions of merchant product listings.

June 2025

The Future of React Native Graphics: WebGPU, Skia, and Beyond

Announcement 7 min +70 XP

React Native WebGPU, built on Google's Dawn, lets React Native apps run Three.js, React Three Fiber, TSL shaders, ComputeToys compute shaders and TensorFlow.js on Metal (iOS) and Vulkan (Android) with no changes, which collapses the separate OpenGL and Metal backends into one.

May 2025

Evolution of Product Classification at Shopify: From Categories to Comprehensive Product Understanding

Case study 8 min +80 XP

Shopify's product classification evolved from a 2018 TF-IDF logistic regression model through a 2020 multi-modal classifier to a Vision Language Model system built on the Shopify Product Taxonomy, which covers over 10,000 categories and 1,000+ attributes.

April 2025

January 2025

October 2024

How Shopify improved consumer search intent with real-time ML

Case study 8 min +80 XP

Shopify generates about 2,500 text and image embeddings per second (216M/day) in near real time with Google Cloud Dataflow and Apache Beam's RunInference on T4 GPUs, feeding Storefront Semantic Search and a BigQuery warehouse.

August 2024

Tophat: Crafting a Delightful Mobile Developer Experience

Case study 13 min +130 XP

Shopify built Tophat, a macOS menu bar app that installs CI-built iOS and Android artifacts from GitHub PRs onto simulators, emulators or real devices with one click, eliminating local branch switching and compilation during manual PR testing ("tophatting").

March 2024

February 2024

January 2024

Horizontally scaling the Rails backend of Shop app with Vitess

Case study 27 min +270 XP

Shop app outgrew a single MySQL database despite federating tables across databases, so the team moved its Rails backend to Vitess, sharding user-owned tables by user_id into a "users" keyspace and keeping the rest in an unsharded "global" keyspace.

December 2023

October 2023

September 2023

August 2023

July 2023

Contributing support for a Wasm instruction to Winch

How-to 9 min +90 XP

Adding a WebAssembly instruction to Winch, Wasmtime's baseline non-optimizing compiler, touches several layers: the wasmparser VisitOperator visitor, the CodeGenContext that manages the value stack, register allocation and spilling, an ISA-independent MacroAssembler, and an x86_64 assembler built on Cranelift's ISLE-generated instruction definitions.

April 2023

March 2023

Supporting Passkeys in Shop's Authentication Flows

Case study 6 min +60 XP

Shop added passkeys (WebAuthn public-key credentials) to Shop Pay and the Shop app as a phishing-resistant alternative to email/SMS verification codes, using the webauthn-ruby gem in their Rails backend and serving the flow from an iframe so it works on merchant storefronts.

Unlocking Real-time Predictions with Shopify's Machine Learning Platform

Case study 13 min +130 XP

Shopify extended its Ray-based Merlin ML platform with online inference, running each real-time model as a dedicated service in its own namespace on GKE that loads models from the Comet ML registry and can read features from the Feast-based Pano store.

February 2023

Improving the Developer Experience with the Ruby LSP

Deep dive 16 min +160 XP

Ruby LSP is a pure-Ruby language server from Shopify that provides editor features for Ruby without type checking or type annotations, aiming for performance and stability on large codebases like Shopify's Core monolith and leaning toward Rails-specific features.

January 2023

Performance Testing At Scale—for BFCM and Beyond

Case study 15 min +150 XP

Shopify prepares for Black Friday Cyber Monday by repeatedly running full-scale load tests against production: scaling Shopify Core and dependencies (nginx routing, ProxySQL, key/value store) to their BFCM profile, layering five Cronograma-driven traffic flows (browse/buy, admin, flash sale, Storefront API, Hydrogen/Oxygen) with an abort switch, then scaling down in reverse order and running blameless retrospectives.

Monte Carlo Simulations: Separating Signal from Noise in Sampled Success Metrics

How-to 11 min +110 XP

A Monte Carlo simulation can quantify how much sampling noise obscures real trends in a success metric that can only be measured by sampling, using Shopify App Store audits (a "shop issue rate" modeled as Poisson-distributed requirement violations) as the example.

December 2022

Optimizing Ruby’s Memory Layout: Variable Width Allocation

Deep dive 13 min +130 XP

Ruby 3.2's Variable Width Allocation replaces CRuby's single 40-byte RVALUE slot with five size pools (40, 80, 160, 320 and 640 bytes) so classes, strings, arrays and objects can store their data adjacent to the object instead of in separate malloc'd memory.

November 2022

The quest for software engineering knowledge.

Look:
Layout: