Skip to content

Create ExperimentAdobe Target A/B experiments with Vite + Preact

Scaffold IIFE bundles, iterate with watch + clipboard, ship production-ready variations.

Install

Scaffold a new project in one command:

bash
pnpm create @sogody/experiment my-experiment

Documentation map

Same sections as the top navigation — jump straight to a page.

Getting Started

Development

Framework API

Tooling

Reference

  • Reference hub — CLI prompts, commands, markets, migration, changelog, contributing

How it works — scaffold → develop → ship

The framework follows a three-step workflow from scaffold to production.

1. Scaffold — Run the create command and answer a handful of prompts. The CLI generates a complete Vite + Preact project with your chosen boilerplate, variation count, and market configuration.

bash
pnpm create @sogody/experiment my-experiment

2. Develop — Start the watcher for your active variation. On every save, Vite rebuilds the IIFE bundle and copies it to your clipboard automatically.

bash
cd my-experiment
pnpm start 0   # watches v1, copies to clipboard on save

Paste the clipboard contents into Adobe Target's custom code editor and refresh your preview.

3. Ship — Run a production build. Every variation compiles to a self-contained IIFE bundle ready to deploy.

bash
pnpm build
# dist/v1/v1.js
# dist/v2/v2.js

Ready to set up your environment? Start with Prerequisites.

Internal tool — Samsung / Sogody experimentation team