Skip to content
← All posts

What surprised me about building a Shopify app

  • Shopify
  • Vercel
  • Webhooks
  • Security
  • Dev Journey

I joined a small team as tech lead to build a Shopify app, in Java and JavaScript, with security as the main requirement. I had worked on Shopify storefronts before, but building an app that lives inside someone else's platform is a different job, and the interesting part was not the code.

A Shopify app is not a website merchants visit. It sits behind the merchant's store, and Shopify decides when to talk to it. That one sentence shapes the whole architecture.

You do not control the deploy

The app deploys to Vercel. That sounds unremarkable until you notice what it means: the platform decides how your code is built, where it runs, and how long a request is allowed to take. There is no box to log into and no process to restart.

Coming from Laravel on Linux servers, that took adjusting. You stop asking how do I configure the server, and start asking what does the platform promise me. Everything you would normally solve with a long-running process has to be solved some other way.

Shopify sits in the middle

Requests do not arrive from a browser. They arrive from Shopify, which proxies them through to your app and signs them on the way with an HMAC-SHA256 signature, computed using your app's own secret.

Your job on every single request is to recompute that signature and compare it. If it does not match, you drop the request. It is a few lines of code and it is essentially the whole security model: the signature is the only thing proving the request came from Shopify and not from someone who guessed your URL.

Verify it before you do anything else, including before you parse the body. That ordering catches people out.

What I took from it

You own neither end: Shopify in front, Vercel underneath, your app in the gap. The work is less about what you would prefer to build and more about reading two sets of promises carefully and designing for them.

The interesting constraint was not what I could build. It was how little of the path my code actually sits on.