Examples

Runnable example projects for every supported framework

Each example below is a small, runnable project that wires Improve into a specific framework. They all run the same A/B test (startpage-visual) so you can compare how the integration differs between a static site, a client app and a server rendered app.

The full source for every example lives in the public SDK repository. Clone it, run npm install and npm run dev in any example folder to try it locally. Each one is also deployed live at <example>.improve.obelism.studio — both links are on every example page below.

Client side

Render the control on first paint and swap to the visitor's variant once the SDK mounts in the browser. Simplest to set up, but causes layout shift (CLS) for content above the fold.

Server side

Decide the variant before the response is sent, so the first paint already matches the visitor's variant — no layout shift.

On this page