Benchdog

Ember Workbench

Feature flags for Ember, Rails, Django and Node. Turn a feature on for one actor, a group or a percentage of users. Every change goes in an audit log, and one dashboard controls it all.

A bench dog is a peg that you raise or drop into a hole in the workbench. When it is up, it holds the work. When it is down, the bench is clear.

Read the guide Released: on npm

Try the dashboard

This is the real dashboard and the real admin API, with a store in memory in your browser. Ramp a flag, kill one, promote one to production, then read the audit log. Nothing leaves the page.

Flipper-style gates

Boolean, actors, groups, percentage of actors, percentage of time and expressions. The same buckets as Flipper, so a rollout moves without a change. The dashboard knows your groups and finds actors by name.

Same answer everywhere

One spec and shared test vectors. The real Flipper gem checks the vectors, and each core must pass all of them.

Audit you can trust

Each change records who, when, why and from where, in a SHA-256 hash chain. The dashboard checks the chain.

Fast reads

Each process keeps the flag set in memory. Redis shares it, and pub/sub tells every process about a change.

Node: Express and Prisma

import { createBenchdog, defineFlags } from '@benchdog-ts/core'
import { PrismaStore } from '@benchdog-ts/prisma'
import { benchdog } from '@benchdog-ts/express'

const flags = defineFlags({ 'new-checkout': { type: 'boolean' } })
const store = new PrismaStore(prisma)

app.use('/benchdog/api', benchdog({ store, environments, authenticate, roleFor }))

const flagsClient = createBenchdog({ store, environment: 'production', flags })
await flagsClient.ready()
flagsClient.enabled('new-checkout', { id: `user:${user.id}` })

Ember

import { Flag, enabled } from '@benchdog-ts/ember'

<template>
  <Flag @key="new-checkout">
    <:default><NewCheckout /></:default>
    <:off><OldCheckout /></:off>
  </Flag>
</template>

What is released

Part State
Spec, JSON Schemas, shared vectors Written
TypeScript core, Express, Prisma (PostgreSQL, MySQL, SQLite), Redis On npm
Ember addon, browser client, dashboard On npm
Schedules, approvals, prerequisites, stale flags On npm
Fastify, Hono, NestJS, Next.js, Remix; React, Vue, Svelte; OpenFeature On npm
Ruby and Python cores Written, not released yet
Rails and Django Planned

How it compares

Benchdog Flipper django-waffle Hosted services
Your own database Yes Yes Yes No
Ruby, Python and TypeScript One spec Ruby Python SDKs
Variants and JSON values Yes No No Yes
Hash-chained audit log Yes No No Varies
First-class Ember Yes No No No