Inside a Custom Shopify App Build: Architecture, Security and Platform Rules

You don't need to be a developer to commission a custom Shopify app, but understanding how one is built makes you a much better client. You'll...

By Bytecode Technologies 12 min read

You don’t need to be a developer to commission a custom Shopify app, but understanding how one is built makes you a much better client. You’ll ask sharper questions, spot weak proposals, understand where time and money go, and know what to expect after launch.

This article walks through a custom Shopify app build the way a professional Shopify custom app development company approaches it: the parts an app is made of, how it talks to Shopify, how it stays secure, where it runs, how it’s tested, and the platform rules that shape every decision. It stays at a level a store owner or ecommerce manager can follow, with enough detail to hold a technical conversation.

The anatomy of a Shopify app

Most custom Shopify apps have up to five parts. Not every app needs all of them.

PartWhat it isExample
BackendA server application that holds the app’s logic and dataSyncs orders to an ERP, stores configuration, runs scheduled jobs
Admin interfaceScreens inside the Shopify admin for your teamSettings page, a dashboard, an approval queue
ExtensionsPieces that plug into Shopify surfacesTheme app blocks, checkout UI extensions, admin actions, Shopify Functions
IntegrationsConnections to systems outside ShopifyERP, warehouse, CRM, product database, internal tools
DatabaseStorage for data Shopify doesn’t holdSync status, logs, custom records, mappings between systems

Some apps are almost entirely extensions with a tiny backend, such as an app that only deploys a Shopify Function for custom discounts. Others are mostly backend, such as an integration that moves data between Shopify and an ERP with only a settings page in the admin.

How apps talk to Shopify

The GraphQL Admin API

The Admin API is how an app reads and changes store data: products, orders, customers, inventory, discounts, metafields and much more. Shopify’s GraphQL Admin API is the standard for new development; the older REST Admin API is considered legacy, and Shopify has required new public apps to use GraphQL. A good developer builds on GraphQL from day one.

GraphQL lets the app ask for exactly the fields it needs in one request, which keeps things efficient. For large data jobs, such as exporting every order or updating thousands of products, Shopify provides bulk operations that run in the background and return results as a file.

API versions

Shopify releases a new API version every quarter and supports each version for at least a year. Apps must move to newer versions before old ones are retired. This is a built-in maintenance task for every custom app: at least once or twice a year, someone needs to review release notes, update the version and test.

Rate limits

Shopify limits how much an app can ask of the API in a given time, based on a cost model for GraphQL queries. Shopify Plus stores get higher limits. Apps that move large amounts of data need to respect these limits with queuing, batching and retries, or they’ll fail at busy times.

Webhooks

Rather than constantly asking Shopify “has anything changed?”, apps subscribe to webhooks: Shopify sends the app a message when something happens, such as an order being created, a product being updated or an app being uninstalled. Webhooks are the backbone of most integrations.

Webhooks can occasionally arrive late, twice or out of order, so a well-built app handles duplicates safely, checks the latest state when needed and has a reconciliation job that catches anything missed.

Extension points: building on Shopify’s surfaces

Modern Shopify apps add features through extension points rather than by editing theme code or injecting scripts. This is one of the most important things to check in a proposal.

Theme app extensions

These let an app add blocks and embeds to Online Store 2.0 themes. Merchants place them in the theme editor, and they’re removed cleanly when the app is uninstalled. Shopify is phasing out older techniques such as script tags in favour of theme app extensions, so new apps should not rely on them.

Checkout UI extensions

These add custom components to the checkout, thank you and order status pages. Extensions in the main checkout steps require Shopify Plus.

Shopify Functions

Functions are small pieces of logic that run inside Shopify’s infrastructure to customise discounts, shipping options, payment methods, cart validation, cart transforms and more. They’re fast and secure, but have strict limits on run time and can’t call outside services during checkout, so the data they need is usually stored in metafields ahead of time. Custom apps with their own Functions require Shopify Plus.

Admin extensions

Admin actions, blocks and links add the app’s features directly into the Shopify admin pages your team already uses, such as a button on the order page or a panel on the product page.

The admin interface

Custom apps usually include a few screens inside the Shopify admin, built with Shopify’s app framework, App Bridge and the Polaris design system. That means the app looks and behaves like the rest of the admin, and your team doesn’t need another login.

Shopify provides app templates (React-based, with Node.js on the backend) and the Shopify CLI to create, run and deploy apps and their extensions. Using these tools speeds up development and keeps the app aligned with Shopify’s current recommendations.

Security: what a good app gets right

A custom app can have deep access to your store’s data, so security can’t be an afterthought.

Authentication and access tokens

Apps authenticate with Shopify and receive access tokens that let them call the API. Embedded apps use session tokens to confirm which store and user is making each request. Tokens must be stored encrypted and never exposed in the browser or in logs. Shopify has also been tightening token rules, including moving apps toward access tokens that expire and must be refreshed, so the app’s token handling should follow current guidance.

Least-privilege access scopes

An app asks for permission scopes such as reading orders or writing products. It should request only what it needs. An app that only reads orders should not have permission to edit customers.

Webhook verification

Shopify signs webhook messages. The app must verify the signature on every webhook so nobody can send it fake data.

Protecting customer data

Apps that handle personal data must respect privacy laws and Shopify’s requirements, including responding to customer data requests and deletion requests. Store only the data you need, keep it encrypted, and define how long it’s retained.

Secrets and environments

API keys, secrets and credentials for other systems belong in a secure secrets manager or environment configuration, not in the code repository. Separate development, staging and production environments, each with their own credentials.

Hosting and infrastructure

Shopify hosts extensions such as Functions and checkout UI extensions. The app’s backend, admin interface and database run on infrastructure you choose. Common options include managed platforms (such as Render, Fly.io or Heroku-style services) and cloud providers (such as AWS, Google Cloud or Azure).

Key decisions:

  • Who owns the hosting account? It should be you, with the developer given access.
  • What size and scale is needed? Most custom apps need modest resources, but integrations with high order volumes need queues and workers that can scale.
  • Where is data stored? This matters for privacy rules in some regions.
  • What happens at peak times? Black Friday traffic can be many times normal volumes.

Reliability: logging, monitoring and recovery

The difference between an app that quietly fails and one that tells you when something’s wrong is planned in from the start.

  • Logging: a record of what the app did, including errors, without exposing sensitive data.
  • Monitoring and alerts: notifications when error rates rise, jobs fail or a sync falls behind.
  • Retries and queues: failed calls to Shopify or an external system are retried with sensible delays, not lost.
  • Reconciliation: scheduled checks that compare data between systems and fix gaps.
  • A runbook: written steps for common problems, so anyone can respond.

The build process, step by step

  1. Discovery: define the job, users, data flows, volumes and success criteria. Map which Shopify APIs and extension points will be used.
  2. Technical design: architecture diagram, data model, access scopes, hosting plan, security approach and test plan.
  3. Development in iterations: usually two-week cycles with demos, building the most valuable piece first.
  4. Testing on development stores: Shopify Partners can create development stores with test data, so the app is built and tested without touching your live store.
  5. Staging and user acceptance testing: your team tests with realistic data and workflows.
  6. Deployment: the app is installed on your live store, extensions are deployed with the Shopify CLI, and monitoring is switched on.
  7. Hypercare: a period of close monitoring and quick fixes after launch.
  8. Maintenance: API version updates, platform changes, security patches and improvements.

Testing a Shopify app

Test typeWhat it checks
Unit testsIndividual pieces of logic, such as a pricing rule or a data mapping
Integration testsCalls to Shopify’s APIs and external systems behave as expected
Function testsShopify Functions return the right output for sample carts and edge cases
End-to-end testsReal user journeys through the admin, storefront and checkout
Load testsThe app handles peak volumes without hitting rate limits or timing out
Security checksScopes, token storage, webhook verification, dependency vulnerabilities

Platform rules that shape every custom app

Shopify evolves quickly, and custom apps must keep up. Rules that commonly affect custom app projects include:

  • New API versions every quarter, with older versions retired on a schedule
  • The move from REST to GraphQL for the Admin API
  • The move from script tags and theme code edits to theme app extensions
  • The move from checkout.liquid and Shopify Scripts to checkout extensibility and Functions
  • Tighter rules on access tokens, including token expiry for apps
  • Privacy requirements for handling customer data

Ask your developer how they track these changes and how much maintenance time they recommend each year.

What you should receive at the end

  • Source code in a repository you own
  • Hosting and third-party accounts in your name
  • Architecture and data flow documentation
  • Setup instructions and environment configuration (without secrets in the documents)
  • A runbook for common issues
  • Test results and a list of known limitations
  • A maintenance plan

Budgeting for maintenance from day one

A custom app is never finished at launch. Budget for its upkeep the same way you budget for the build. A practical allowance covers:

  • API version updates: reviewing Shopify’s release notes, updating the version and retesting, at least once or twice a year.
  • Platform changes: adapting to new rules, retired features or changed extension points when Shopify announces them.
  • Dependency and security updates: keeping libraries and frameworks patched.
  • Monitoring and incident response: time to investigate alerts and fix failures.
  • Hosting and tools: the monthly costs of servers, databases, logging and monitoring.
  • Small improvements: the changes your team will ask for once they use the app every day.

Many teams set aside a fixed number of hours each month or quarter for this work, often through a maintenance retainer with the developer who built the app. The amount depends on the app’s size and how many systems it connects to; integrations with external systems usually need more attention than apps that only work inside Shopify. Agreeing this upfront avoids the common situation where an app quietly breaks months after launch because nobody was responsible for it.

How Bytecode builds custom Shopify apps

Bytecode builds custom Shopify apps on Shopify’s current foundations: the GraphQL Admin API, webhooks, theme app extensions, checkout UI extensions, Shopify Functions and admin extensions. We design for security and reliability from the start, host in accounts you own, and leave you with documentation and a maintenance plan. If you have an app idea or an integration to build, our team can turn it into a technical design and estimate.

Frequently asked questions

How are Shopify apps built?

Most Shopify apps combine a backend server, an admin interface built with Shopify’s app framework and Polaris, extensions that plug into the storefront, checkout or admin, and connections to Shopify through the GraphQL Admin API and webhooks. Shopify CLI and app templates are used to build and deploy them.

What is the difference between Shopify’s GraphQL and REST APIs?

The GraphQL Admin API lets apps request exactly the data they need in one call and is Shopify’s standard for new development. The REST Admin API is considered legacy, and new public apps have been required to use GraphQL.

How do I keep a custom Shopify app secure?

Request only the access scopes the app needs, store tokens and secrets encrypted outside the code, verify every webhook signature, handle customer data according to privacy laws and Shopify’s rules, separate environments, and monitor for errors and unusual activity.

Where are custom Shopify apps hosted?

Shopify hosts extensions such as Functions and checkout UI extensions. The app’s backend and database run on infrastructure you choose, such as a managed hosting platform or a cloud provider. The hosting account should be in your name.

How often do custom Shopify apps need updates?

Shopify releases a new API version every quarter and retires older versions on a schedule, so custom apps need API updates at least once or twice a year, plus changes for platform rule updates and security patches.

Published By

Bytecode Technologies (gobytecode.com)

Shopify & ecommerce engineering team at Bytecode Technologies (gobytecode.com) — sharing practical guides on store maintenance, theme customization, custom apps, and zero-downtime migrations.

Leave a Reply

Your email address will not be published. Required fields are marked *