Core Contract (Framework-Agnostic)
This page describes what Shoppex expects from a theme, regardless of whether you use React, Vue, Svelte, or something else.Your UI framework is your choice. The only hard requirement is:
bun run build must produce dist/index.html.Build Output
Your theme must build to adist/ folder:
dist/index.htmldist/assets/*(hashed assets are recommended)
dist/index.html, Shoppex cannot deploy it.
Build Commands (What Shoppex Runs)
On the build system, Shoppex will run:- a
package.json - a
buildscript that producesdist/
Optional: Initial Data Injection
If yourindex.html contains this placeholder:
dist/index.html:
- It sets
window.__SHOPPEX_INITIAL__with{ store, products, groups } - Your theme can use it to render instantly (SSR/SSG or “fast first paint”)
Minimal “Hello Theme” Checklist
Next Steps
Runtime & SDK
SDK init, storefront fetching, and domain resolution.
Build Pipeline
How Shoppex builds and publishes themes (install, build, optional injection, deploy).
This page describes the stable contract. Infrastructure details (how/where files are hosted) are internal and may change.