Skip to content

Templates

The scaffolder offers two boilerplate types. You choose at scaffold time — it cannot be changed afterwards without regenerating the project.

Comparison

Featureproduct-cardminimal
Samsung product API (fetchProductCard)YesNo
Price formatting (formatPrice)YesNo
ExperimentCard Preact componentYesNo
ExperimentButton Preact componentNoYes
Per-variation styles.module.scssYesNo
MODEL_CODE_MAP in configYesNo
Full src/helpers.jsYesNo (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 card
  • fetchProductCard() — fetches product data from searchapi.samsung.com for the current market
  • formatPrice(price) — formats a price with the correct currency and locale using Intl.NumberFormat
  • MODEL_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 component
  • uniqueBuild() — 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.

Internal tool — Samsung / Sogody experimentation team