← Case studies

Goldsource. Sales up 102% in year one.

Live market prices, charts that help customers understand them, and a way for staff to handle customers selling their own coins.

Results

  • Live syncLive precious-metal pricing

The work

  • D2C precious metals brand
  • Headless Shopify
  • High-performance site

Buying and selling precious metals needs more than a standard product page.

Goldsource’s prices follow the metals market. Customers also need to understand price movements and can approach the business to sell their own coins.

We built the storefront and the tools around those jobs: live pricing, interactive price charts, and a process for staff to manage customer selling inquiries. The team can handle the inquiry, offer and fulfillment in Sanity.

01

Product prices that follow the metals market.

Goldsource’s product prices update as market rates change. Checks flag unusual data for the team to investigate, helping them keep an eye on the prices customers see.

  1. 01Read the market rates. Get the latest rates used to price the products.
  2. 02Update the storefront. Keep product prices aligned with the market.
  3. 03Alert the team. Flag unusual data for someone to investigate.
Scheduled runTakes a Redis lock
Market open?
XE ratesFetched and stored
Price spike?
Shopify pricesSynced, then cache warmedCompleted
SkippedClosed market or duplicate run
LockdownPrices held for review
FailedNothing half-written
duplicateopenclosedfatal errornoyesupdate failure

Fresh XE rates reach Shopify and the price cache is warmed.Outside market hours the run stops before fetching rates.An unusual jump locks prices down instead of syncing them.A fatal rate error ends the run without touching prices.

Product prices that follow the metals market.

A triggered run attempts to acquire a Redis lock. Duplicate or active runs are skipped, as are runs while the market is closed. Otherwise, the system fetches XE rates, updates rates and checks for spikes. A spike triggers lockdown and skips the sync. Valid rates are synced to Shopify, then Redis is refreshed and the run completes. A fatal XE error or Shopify update failure ends the run as failed.

02

High-performance chart for historical metal prices.

Interactive historical metal-price chart
A silent screen recording demonstrates the Goldsource historical-price chart and its time-range controls.
  • The gold price chart opens on a long-range view.
  • The cursor selects shorter and longer time ranges, and the chart redraws immediately.
  • A custom date range is selected and the refreshed series appears.

You talk directly with the founders

Planning a similar Shopify project?

Book a 30-minute call

03

Sell-your-coin intake in Sanity.

Customers register that they want to sell a coin on the storefront, then Goldsource handles the sales process in Sanity — from inquiry to offer and fulfillment.

Goldsource sell-your-coin customer intake formGoldsource selling inquiry detail in Sanity StudioGoldsource selling inquiries list in Sanity Studio

Goldsource sell-your-coin customer intake form

04

Keep orders and product information in sync.

Changes in Shopify need to reach the systems the team uses. Updates are checked, duplicate messages are ignored, and temporary failures are retried so staff don’t have to keep the information aligned by hand.

  1. 01A change in Shopify. An order or product is updated.
  2. 02Pass it to the right system. The update reaches the tools the team uses.
  3. 03Handle interruptions. Retry temporary failures without applying the same update twice.
ShopifyOrder or product webhook
Webhook APIChecks HMAC, topic and schema
Vercel QueueSent with an idempotency key
Queue workerClaims a Redis lockMarked processed in Redis
Seen before?
SanityDerived state updated
IgnoredNo second update
webhookverifieddelivernoyes

A verified event is queued, processed once and marked done.A repeated delivery is recognised in Redis and ignored.

Keep orders and product information in sync.

Shopify sends a webhook with an HMAC signature to the API. The API verifies the topic and schema and places the message in Vercel Queue with an idempotency key. A queue worker claims a processing lock in Redis. If Redis reports that the message was already processed, no update is made. Otherwise, the worker updates the derived state in Sanity and marks the message as processed in Redis.

Talk through what you want to improve.

Tell us what’s getting in the way or what you’d like to build. We’ll talk through the options and whether we’re the right team to help.

Book a call