What It Is

Where HxCheckout connects an existing site, HxStorefront is the site. A tenant builds a store entirely in Studio — products, variants, categories, theme, pages, promotions — and Velaris serves a public storefront at a unique slug. Checkout hands off to HxCheckout, so each sale lands as a fully tracked Order case.

It's a Marketplace app. The Python and Studio page ship in-image; the storefront_* tables ship via migration. Installing velaris/hxstorefront flips a per-tenant gate — until then every admin and public endpoint and the Studio page are dark (404).

What You Can Build

Checkout & Trust

The public checkout is built to be safe against a hostile client:

  1. Server-priced basket. Client-supplied prices are ignored — totals are recomputed from the catalogue.

  2. Atomic stock reservation. A guarded conditional update prevents overselling under concurrency.

  3. Promo re-validation. Discounts are re-checked server-side at the moment of purchase.

  4. The validated order is handed to HxCheckout (source=storefront) to become an Order case. HxCheckout must also be installed, or checkout returns 409.

Public & Admin APIs

SurfaceBase pathAuth
Admin (build & manage)/api/v1/storefrontoperator JWT (tenant-scoped)
Public storefront/api/v1/storefront/public/{slug}none — read-only catalogue, search, sitemap, subscribe, checkout

The store slug is globally unique and maps the public route back to its owning tenant; product and category slugs are unique per store.

Dependencies

HxStorefront builds on the rest of the platform: HxCheckout for orders (hard dependency), HxConnect / Stripe for payment (via HxCheckout), document storage for media, and HxAnalytics for the commerce event feed.

Capabilities

🏪
Store in Studio
Catalogue, theme, pages, and promotions — built and published without leaving Velaris.
📦
Inventory
Per-variant stock with a movement log, low-stock flags, and atomic reservation at checkout.
🏷
Promotions
Codes and automatic rules — percentage, fixed, or free shipping — re-validated at purchase.
🌐
Public Storefront
A live, SEO-ready store at a unique slug, with search, sitemap, and newsletter sign-up.

Uninstall

A data delete removes the tenant's stores and cascades to every storefront_* child. Order cases created through checkout are core data and are left untouched.