Charming Stones.
A full online jewelry store: catalogue, bag, Stripe checkout, shipping labels, order emails and tracking, with the owner running it all from one Sanity Studio.





From problem to what's next.
In the order it actually happened. Use the route to jump around.
A small jewelry boutique needed a complete store, from catalogue to checkout, payment, shipping and order tracking, run from one place at the lowest running cost.
A Next.js storefront on Vercel with Sanity as the only datastore and an embedded Studio. Stripe Checkout takes payment and holds it until stock is reserved, Shippo buys USPS labels and tracks parcels, and Resend sends order email. Only a signed Stripe webhook creates an order.
- 01Built the storefront: filtered shop with cursor pagination, product variants, wishlist, a server-priced bag and order tracking by order number.
- 02Built checkout on Stripe Checkout with held payments and Stripe Tax, flat or free shipping, and a signed webhook that creates the order.
- 03Wrote the order logic: stock reservation, capture or release, USPS labels and address checks through Shippo, and transactional order emails.
- 04Modelled catalogue, orders and content in Sanity, with Studio actions to buy and print labels, edit addresses and add order notes.
The system, end to end.
- STEP 01StorefrontNext.js 16 on Vercel
- STEP 02Bagbrowser keeps variant and quantity only
- STEP 03Server pricingre-reads price and stock from Sanity
- STEP 04Stripe Checkouthosted page · payment held, not captured
- STEP 01Stripe webhookcheckout.session.completed · signed
- STEP 02Order + stockone Sanity transaction, revision locks
- STEP 03Capture or releasecapture the hold, or cancel if sold out
- STEP 04Label + trackingbought in Studio · Shippo webhook
- STEP 05EmailsResend · each sent at most once
- STEP 01Sanity Studioembedded at /studio
- STEP 02Content webhooksigned · invalidates one cache tag
- STEP 03Remote cacheuse cache: remote · all instances
- STEP 04Storefrontstock changes show in seconds
AND THE FIX
- IDEA
- BUILDING
- LIVE
Live as a preview on Vercel with a seeded placeholder catalogue; a check blocks seed data from shipping. 289 unit tests pass, plus integration tests against test-mode Stripe, Shippo and Sanity.
The road keeps going.
- STOP +1Add a timeout and purchase lookup so a retried label purchase cannot buy a second label
- STOP +2Reconcile orders when Stripe stops retrying after a capture whose order update failed
- STOP +3Move side jobs out of the webhook onto a durable queue