Use this starter when you want to own the frontend. Use a hosted Shoppex theme when you want Shoppex to own the storefront UI too.
Create a Storefront
.env.local, and points the starter at your Shoppex shop.
What Is Included
Storefront UI
Homepage, product grid, product detail pages, product images, variants, stock count, and sold-out states.
Cart and Checkout
Browser-local cart, checkout review, email capture, coupon field, terms acknowledgement, and Shoppex invoice handoff.
Customer Portal Link
Link buyers to orders, downloads, license keys, and support through the Shoppex customer portal.
Webhook Example
Signed webhook route for paid order events, with a Discord notification example for fulfillment visibility.
Configure Shoppex
Set these values in.env.local:
Checkout Modes
| Mode | Use it for |
|---|---|
cart | Normal stores with multiple products and a cart drawer |
buy-now | One-product stores where the product page should go straight to checkout |
embed | Simple product-button flows that use the Checkout Embed SDK |
cart.
Cart Model
The starter cart lives in the buyer’s browser until checkout. At checkout, Shoppex rechecks:- product availability
- selected variants
- quantity limits
- prices
- coupons
- stock
Customer Portal
For a fully self-hosted storefront, use a branded account subdomain:/dashboard only when the storefront domain is routed through the Shoppex Storefront Worker.
Moving from Another Platform
Treat this as a fresh storefront cutover. Move these into Shoppex:- products
- prices
- variants
- stock
- checkout settings
- fulfillment webhooks
Deploy
Deploy the generated project to Vercel and set the same environment variables there.order:paid and order:paid:product.
Next Steps
Headless Overview
Understand the three integration shapes: Dev API, Storefront SDK, and Checkout Embed SDK.
Checkout Embed SDK
Add modal checkout to existing pages or product buttons.
Storefront SDK
Read public product and storefront data from your custom frontend.
Webhooks
Verify paid order events and run fulfillment after payment.