Test harnesses for components and pages. Write one once and it drives your component in jsdom,
Playwright, Cypress, Ember, WebdriverIO and more.
class LoginFormHarness extends ComponentHarness {
@ByLabel('Email') private accessor email!: Query
async signInAs(email: string, password: string) { … }
}
// the same class, in jsdom or a real browser
await new LoginFormHarness(pw(page)).signInAs(…)
Enums that are real classes. The label, the CSS class, or what comes next lives on the value,
not in an if/else ladder in every template. Adapters for WarpDrive, TanStack Query, SWR, RTK
Query, Apollo and urql.
class OrderState extends Enum {
static Pending = new OrderState('pending')
static Shipped = new OrderState('shipped')
@is() accessor isPending!: boolean
get className() { return `badge badge--${this.value}` }
}
Shapes, values and wire codecs for WarpDrive and ember-data. Money, dates, decimals, phone
numbers, colors and nested shapes come off the wire as real objects that compare by value;
shapes track their own changes and roll back.
export const InvoiceSchema = withDefaults({
type: 'invoice',
fields: [
valueField('total', 'money', { wire: 'decimal' }),
shapeField('billTo', Address),
],
})
invoice.total.toDecimalString() // "19.99"
invoice.total === invoice.total // true
Declarative, accessible forms for Ember. Labels, ids, errors, aria-invalid, dirty state and
nested saves are handled; bring any Standard Schema validator and any data layer.
<Form @model={{@user}} @validator={{userSchema}} @onSubmit={{@save}} as |f|>
<f.Field @for="email" @control="email" @label="Email" />
<f.Field @for="plan" @control="select" @options={{@plans}} />
</Form>
shadcn/ui for Ember: every component and example, accessible to WCAG 2.2 AA, with an axe
audit in every test and a harness for each one. shadcn's styles, Tailwind optional.
<Dialog as |d|>
<Button @variant="outline" {{d.trigger}}>Edit profile</Button>
<d.Content>
<d.Title>Edit profile</d.Title>
</d.Content>
</Dialog>
Statecharts for Ember, written as classes. States are real-enums values, events are decorated
methods, context is tracked fields: everything xstate does, on the same semantics, with the
diagram drawn from the code.
class Fetch extends Machine<FetchState> {
@tracked user?: User
@transition({ from: FetchState.Idle, to: FetchState.Loading })
fetch() {}
@invoke(FetchState.Loading, { onDone: FetchState.Done })
async load(signal: AbortSignal) { … }
}
Feature flags for Ember, Rails, Django and Node. Flipper-style gates and rollouts, variants,
a hash-chained audit log and a control dashboard, with the same answer in every language.
import { Flag } from '@benchdog-ts/ember'
<Flag @key="new-checkout">
<:default><NewCheckout /></:default>
<:off><OldCheckout /></:off>
</Flag>
Generative UI for Ember. A model streams a JSON spec, a catalog limits what it can use, and
Joinery components render it as it streams: layouts, forms, charts, chat and MCP Apps, with
no HTML from the model.
const registry = defineRegistry(catalog, { Text, Stack, Button })
<Render
@spec={{this.generation.spec}}
@catalog={{catalog}}
@registry={{registry}}
@streaming={{this.generation.isStreaming}}
/>
A component workshop for Ember: Storybook, for Ember only. Write a story as a .gts file and see
the component alone, in an isolated canvas, with typed controls, accessibility checks and docs
pages. The same stories run as QUnit tests and as screenshots.
export const story = {
name: 'UI/Counter',
harness: CounterHarness,
play: async ({ harness }) => harness.add(2),
}
export const template = <template><Counter /></template>