Building a custom ecommerce storefront used to mean choosing between two uncomfortable options: start from a rigid template, or spend months rebuilding catalog, pricing, inventory, cart, checkout, and customer logic from scratch.
Headless commerce changes that tradeoff. You keep a purpose-built commerce backend, but your storefront remains ordinary application code that you can shape around your brand and buying journey.
In this tutorial, you will create a working custom storefront with Thor Commerce, its open-source Next.js storefront, and an AI coding agent such as Claude Code, Codex, or Cursor. You do not need to ask the agent to invent checkout logic. Instead, it works inside a typed, documented foundation that already covers product discovery, market-aware pricing, carts, checkout, payments, orders, and customer accounts.
By the end, you will have:
A local Next.js storefront connected to your Thor project
Products and prices resolved for the correct market
A persistent cart a
Discussion
Break the silence
Take the opportunity to kick things off.