A/B Testing Built for Engineers Who Ship

TypeScript SDK, REST API, sub-100ms edge assignments. Smart traffic allocation that optimizes itself. Not a marketer's drag-and-drop tool.

TypeScript
REST API
Edge-Ready
Open Source Algorithms
app.ts
import { BanditClient } from '@bandit/sdk';

const bandit = new BanditClient({
  apiUrl: 'https://api.runbandit.com',
  apiKey: 'your-api-key'
});

// Get the best variant for this user
const { treatment } = await bandit.getAssignment('headline-test', 'user-123');

// Track when they convert
bandit.trackEvent({ eventType: 'CONVERSION', value: 29.99 });

Full integration with context

Pass user context for smarter targeting. The contextual bandit uses device type, location, and custom features to personalize assignments.

app.ts
import { BanditClient } from '@bandit/sdk';

const bandit = new BanditClient({
  apiUrl: 'https://api.runbandit.com',
  apiKey: 'your-api-key'
});

// Get assignment with context for smarter targeting
const { treatment, confidence } = await bandit.getAssignment(
  'headline-experiment',
  'user-123',
  {
    deviceType: 'mobile',
    location: 'US',
    referrer: 'google'
  }
);

// Show the winning variant
document.getElementById('hero').innerHTML = treatment.config.html;

// Track conversion with value
bandit.trackEvent({
  eventType: 'CONVERSION',
  value: 29.99,
  metadata: { product: 'premium-plan' }
});

Architecture

From SDK call to optimized assignment in under 100ms.

Your App
SDK Client
Edge API
Cloudflare Workers
Algorithm Engine
In-Memory State
Dashboard
Real-Time Analytics
ConvexEdge ComputeSub-100ms E2E

Built for production traffic

Optimization that adapts to your traffic shape and converges faster than fixed splits.

Self-tuning

Zero-config

Traffic shifts toward winning variants automatically — no manual reallocation needed.

Confidence-driven

Adaptive

The platform balances exploration with exploitation as confidence grows.

Low-traffic ready

Sample-efficient

Converges efficiently even when you only have a few hundred users per day.

Context-aware

Contextual

Personalize assignments using device, location, and any custom features you pass.

Watch it optimize

A simulation of traffic allocation shifting across three variants as performance data comes in. In production, this happens automatically on every request.

Live ExperimentAuto-optimizing
0h elapsed
Variant A
2.1% CVR32%
Variant B
2.8% CVR37%
Variant C
1.9% CVR31%

Traffic automatically shifts to the best-performing variant. No manual intervention needed.

Five steps. Five minutes.

1
Install the SDK
npm install @bandit/sdk
2
Initialize the client
new BanditClient({ apiUrl, apiKey })
3
Get an assignment
bandit.getAssignment(expId, userId)
4
Track conversions
bandit.trackEvent({ eventType, value })
5
Monitor in real-time
open dashboard → watch it optimize
Bandit

Get your API key.

Start optimizing in five minutes. Free tier available, no credit card required.