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
Generated per-variation styles.module.scssNoNo
MODEL_CODE_MAP in configYesNo
Full src/helpers.jsYesNo

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
  • MULTI_MODEL_CODES_MAP and fetchProductCards() for parallel product lookups

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 button component with a stripped-down config.

The generated project includes:

  • src/components/ExperimentButton/ - a Preact button component
  • No src/helpers.js
  • 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