Bandit for developers
A TypeScript SDK, a REST API, and a CLI. Assignments return in under 100 ms from the edge. Render the version's config, and new versions ship from the dashboard without a deploy.
Every feature on every plan. 14-day trial starts with your first event. No card needed to start; no charge until day 15.
import { BanditsClient } from '@runbandit/sdk'
const bandit = new BanditsClient({
apiUrl: 'https://runbandit.com',
apiKey,
})
const context = {
buying_for: 'a gift',
device: 'mobile',
source: 'instagram',
}
const { config } = await bandit
.getAssignment('hero-headline', visitorId, context)
await bandit.label(visitorId, { occasion: 'a birthday' })
bandit.trackNamedEvent({ name: 'order_paid', value: 64 })
await bandit.trackFunnelReward('gift-funnel', visitorId, 64)Ask visitors one question and send the answer as context with each assignment. Add device and source too. Bandit mines that context into visitor groups the marketing team can read.
Every assignment and reward is a row in the Data tab, with the visitor id you sent.
Thompson sampling or a contextual bandit picks the version. Forgetting keeps always-on tests current.
Ask for a version with the answer to your question in the context, along with device and source. Record answers that should only describe a group with label. Report rewards as named events, or as one payout for a whole funnel.
Audiences are mined from this context, so buying_for: a gift can become a group. Send short categorical values. Answers sent with label describe groups and are never mined. Keys ending in Id, and keys like userId, url, and timestamp, are never mined either.
The CLI runs the same steps as the dashboard, so a script can set up a test.
$ bandit login
$ bandit experiments create --funnel <funnel-id>
$ bandit treatments create <experiment-id>
$ bandit experiments start <experiment-id>Bandit does not replace your analytics, send your email, or touch your ad accounts.
A developer adds the TypeScript SDK or calls the REST API once. After that, you add versions and read results in the dashboard. The bandit CLI scripts the same steps.
Growth is $99 a month and Scale is $299 a month, with unlimited team members and every feature on every plan. The 14-day trial starts with your first event, with no card needed to start and no charge until day 15.