Templates
The scaffolder offers two boilerplate types. You choose at scaffold time — it cannot be changed afterwards without regenerating the project.
Comparison
| Feature | product-card | minimal |
|---|---|---|
Samsung product API (fetchProductCard) | Yes | No |
Price formatting (formatPrice) | Yes | No |
ExperimentCard Preact component | Yes | No |
ExperimentButton Preact component | No | Yes |
Per-variation styles.module.scss | Yes | No |
MODEL_CODE_MAP in config | Yes | No |
Full src/helpers.js | Yes | No (trimmed) |
product-card
Use this for experiments that display Samsung product information — image, price, title, and a CTA button pulling live data from the Samsung search API.
The generated project includes:
src/components/ExperimentCard/— a Preact component that renders the product cardfetchProductCard()— fetches product data fromsearchapi.samsung.comfor the current marketformatPrice(price)— formats a price with the correct currency and locale usingIntl.NumberFormatMODEL_CODE_MAP— maps locale codes to Samsung model codes- Per-variation SCSS files (
src/js/vN/styles.module.scss) for variation-specific overrides
Best for: Upsell experiments, product promotion banners, cross-sell modules.
minimal
Use this for experiments that don't need product data. It generates a simple, locale-aware button component with stripped-down helpers.
The generated project includes:
src/components/ExperimentButton/— a Preact button componentuniqueBuild()— dedup guard (same as product-card)- No Samsung API integration
- No per-variation SCSS files
Best for: CTA copy tests, layout experiments, button style tests, anything that doesn't pull live product data.