Leveraging Shopify’s API to Build the Latest Marketplace Kit
Marketplace Kit 2.0 decouples its sample code from the Shopify CLI's generated Node app and splits it into a full-stack Express/React admin app and a Next.js buyer app, both open-sourced. The admin app uses App Bridge's authenticatedFetch to attach JWT session tokens, which the server decodes with Shopify's Node API inside the Apollo Server context to load the store's access token. Running apollo-server-express instead of apollo-server lets one Express instance serve REST and GraphQL together and reuse Node middleware for rate limiting and auth, at the cost of slightly more boilerplate and no performance penalty. Custom GraphQL and REST client wrappers add project-specific User-Agent headers, and REST is kept for simple calls like product listing counts where a GraphQL query adds nothing.
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.
- 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.
- Build Well-Documented and Authenticated APIs in Node.js with Fastify
Heroku Engineering mediumAdeptFastify, a plugin-based Node.js web framework, can be used to build a small API with a public Postgres-backed `/directory` route and a `/profile` route protected by RS256-signed JWTs verified against a base64-encoded public key. The walkthrough builds custom plugins that decorate the Fastify instance (a `db` query helper using pg's Pool and a `verifyJWT` function via @fastify/jwt and @fastify/auth), autoloads plugins and routes, and attaches auth through the `onRequest` route option. It then generates an OpenAPI spec with @fastify/swagger, imports it into Postman as a client, and deploys to Heroku with Eco dynos and Heroku Postgres.
- How we use GraphQL at Europe's largest fashion e-commerce company
Zalando Engineering easyNoviceZalando replaced a sprawl of per-page and per-platform Backend-for-Frontend services with a single unified GraphQL API owned via a shared monorepo across 12+ domain teams. The BFFs had duplicated effort, fragmented security and observability, and produced inconsistent data across web and app. The graph is built on Entities such as Product and Campaign and runs on their own GraphQL engine, graphql-jit, under a strict no-business-logic rule. Since 2018 it has grown to serve over 80% of web and 50% of app use cases, with adoption driven by documentation, training and schema consultation, and god-component risk handled through contribution principles, circuit breakers, timeouts, retries and per-platform bulkhead deployments.
- Native is now the future of mobile at Shopify
Shopify Engineering easyNoviceShopify 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. The apps are being rebuilt greenfield rather than migrated gradually. The Shop app went from proof of concept to a published native app in 12 weeks, and the 300+ screen Shopify app is in progress. To avoid unmaintainable one-shot LLM output, a system called Helix splits each screen into small checkpoints, and each one must pass tests, visual comparison, two adversarial AI reviewers and human approval. Business logic is being decoupled from the UI so it runs headlessly behind a CLI, letting agents iterate in milliseconds instead of waiting minutes on simulators. Shopify's open-source libraries are also changing hands: Skia moves to a fork maintained by William Candillon, FlashList is seeking a new steward, and Restyle is being archived.