Getting Started
From zero to a clipboard-ready bundle — install, prerequisites, and project layout.
Browse
Scaffold IIFE bundles, iterate with watch + clipboard, ship production-ready variations.
Scaffold a new project in one command:
pnpm create @sogody/experiment my-experimentSame sections as the top navigation — jump straight to a page.
experiment.config.js, kill-switchThe 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.
pnpm create @sogody/experiment my-experiment2. Develop — Start the watcher for your active variation. On every save, Vite rebuilds the IIFE bundle and copies it to your clipboard automatically.
cd my-experiment
pnpm start 0 # watches v1, copies to clipboard on savePaste 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.
pnpm build
# dist/v1/v1.js
# dist/v2/v2.jsReady to set up your environment? Start with Prerequisites.