Kilnworth: a Next.js shop with Stripe checkout by Adam KKilnworth: a Next.js shop with Stripe checkout by Adam K

Kilnworth: a Next.js shop with Stripe checkout

Portfolio project
Adam K
A small online shop for a made-up ceramics workshop, running in Stripe test mode. The shop runs Next.js 16 on Cloudflare Workers through the OpenNext adapter, with a D1 database.
The cart survives a reload, and the server always prices it. The last piece cannot be sold twice: a test fires ten concurrent holds at a product with stock 1 and checks that exactly one succeeds.
Only Stripe's signed webhook confirms an order, never the browser coming back from payment, and the same event delivered twice changes nothing the second time. On the live site a test-card purchase goes through Stripe's payment page, and the webhook marks the order paid and takes the piece off the shelf.
The app refuses any Stripe key that is not a test key, so it cannot take real money by mistake. Code: github.com/Helban/kilnworth-storefront

0 likes · 0 views · Nov 12, 2026

A Next.js 16 shop on Cloudflare Workers for a made-up ceramics studio: the server prices the cart, and a Stripe webhook confirms each order.

Tags