Template Commerce · Storefront
Storefront
A storefront with admin-lite: catalog with categories, search and filters, product pages, a persisted cart, a demo-only checkout that places orders atomically against inventory, order history and price/stock editing for admins.
A starting point: runs as a live demo, and copies into a new prototype.
Screenshot · shown in its full screen shell
Live preview
No live preview yet.
Each prototype stores its data in IndexedDB for the address it runs on. Data you create at localhost:5173 is separate from a build at localhost:4173 or a published URL, and the framed preview shares
storage with that address opened directly.
Highlights
- Catalog with categories, search and filters
- A persisted cart
- Demo-only checkout that places orders atomically against inventory
- Price and stock editing for admins
Scenarios 6
- new-shopper
- returning-customer default
- low-stock
- offline-checkout
- store-admin
- guest-browsing
Each scenario rebuilds a deterministic world. Open one with ?scenario=<id>.
Spec kit
Every prototype carries a spec any agent can follow to rebuild it in a real app: the files below, in templates/ecommerce/, with generated regions kept in sync with the code.
- AGENTS.md
- docs/SPEC.md
- docs/DATA_MODEL.md
- docs/FLOWS.md
- docs/SCREENS.md
- docs/PERMISSIONS.md
Check that the spec is current
pnpm protoyard spec ecommerce --check Rebuild kit (ZIP)
pnpm protoyard spec ecommerce --bundle