HxStorefront is a Velaris-native online store for clients with no existing website: a branded product catalogue, visual theme and page builder, inventory, promotions, SEO, and a live public storefront — all from Studio. Every purchase flows through HxCheckout to become an Order case.
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.
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).
The public checkout is built to be safe against a hostile client:
Server-priced basket. Client-supplied prices are ignored — totals are recomputed from the catalogue.
Atomic stock reservation. A guarded conditional update prevents overselling under concurrency.
Promo re-validation. Discounts are re-checked server-side at the moment of purchase.
The validated order is handed to HxCheckout (source=storefront) to become an Order case. HxCheckout must also be installed, or checkout returns 409.
| Surface | Base path | Auth |
|---|---|---|
| Admin (build & manage) | /api/v1/storefront | operator 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.
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.
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.