2026-11-27 16:21 UTC

Dánwò tests backend effects and injected failures alongside UI journeys

state: expiredheat: lowuncertainty: mediumrelevance: mediumagentic-testing e2e-testing fault-injectionFaithful OjebiyiCarbonme

What is this?

Dánwò is an early, Apache-2.0 TypeScript framework from Carbonme for end-to-end testing of web and mobile apps. Its project materials describe ordinary locator-based tests alongside plain-English, model-driven UI steps that are recorded for replay, plus optional local emulators for third-party providers, backend invariants that compare effects such as database rows and emails, and a fault matrix that reruns tests under simulated failures. The project says it is at v0.1.2; its author flags emulator fidelity and current Node/Bun backend-routing support as limitations. Evidence here is chiefly the maintainer’s Show HN post and the project’s own GitHub materials.

Why it matters

Dánwò tackles a meaningful blind spot in end-to-end testing: a test can confirm that the UI reports success while the backend has charged twice, missed an email, or mishandled a webhook. Its combination of recorded model-driven steps, provider emulators, backend invariants, and simulated faults could help teams test those outcomes without repeated model calls or live service credentials. It is worth watching as a practical tool for agent-assisted software development, but the evidence is largely maintainer-authored, and the project is early; emulator fidelity and limited backend-routing support may constrain adoption.

Current assessment

A Carbonme maintainer introduced Dánwò as an Apache-2.0 TypeScript framework for web and mobile end-to-end testing. Project materials describe both conventional locator tests and plain-English UI steps: a model works out actions on the first run, which are recorded and replayed later when they still fit, avoiding model calls in ordinary CI runs. Optional backend testing routes supported third-party providers to local emulators, checks app state against provider effects with user-defined invariants, and reruns tests with injected faults such as provider errors, duplicate or forged webhooks, double submissions, and lost database replies. The project also advertises run records and integrations for coding agents. The maintainer identifies emulator fidelity as a limitation, says provider-drift tests do not cover every API edge, and notes backend routing is currently aimed at Node and Bun; the project describes itself as early (v0.1.2). The supplied evidence is the maintainer’s Show HN post and the project’s own GitHub materials, not independent validation or adoption data. For teams evaluating it, the distinctive proposition is testing business effects—not just visible UI outcomes—while caching agent actions; compare its reliability and maintenance burden with existing test stacks before relying on it for critical flows.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-23 21:29 (minted)⭐ origin echo-reconstructedThe project describes an open-source TypeScript framework for replayable UI-agent steps, with optional provider emulation, backend invariant
Faithful Ojebiyi on github (echo) · attributed from hn.story.50214578 · published time unknown
—
10-23 20:06first on hacker news · published · lag ?Show HN: Dánwò – Open-source E2E testing with emulators and fault injection
faithfulojebiyi
—
10-23 20:06amplified on hacker news 👑hn.story.50214578
faithfulojebiyi
peak 3 · 0 comments · 100% of case engagement
10-23 21:26our radar first saw it · lag ?discovery anchor: hn.story.50214578—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Dánwò – Open-source E2E testing with emulators and fault injection
Retrieved article excerpt

Open article · Retrieved 2026-10-23T21:28:32.218723+00:00

dánwò: Drive the UI. Judge everything behind it.
  

### dánwò

The open-source end-to-end testing framework for web and mobile apps.  
Drive your app through its UI like a user, and check what happened behind it when you need to.
  
[**Learn more »**](https://danwo.dev)

[Quickstart](https://danwo.dev/docs/quickstart) ·
[Docs](https://danwo.dev/docs) ·
[What you can test](https://danwo.dev/docs/what-you-can-test) ·
[Fault matrix](https://danwo.dev/docs/fault-matrix) ·
[Coding agents](https://danwo.dev/docs/coding-agents) ·
[Contributing](https://github.com/carbonmeai/danwo/blob/main/CONTRIBUTING.md)

[Licence: Apache-2.0](https://github.com/carbonmeai/danwo/blob/main/LICENSE)
[Node 22.22.3+ or 24.11.1+](https://camo.githubusercontent.com/ed4fd828befeee9f75ee7a9dc4eb668beefc1d66fb525ae1bbbb3c54c10bd68d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6e6f64652d32322e32322e3325324225323025374325323032342e31312e312532422d3333393933333f6c6f676f3d6e6f6465646f746a73266c6f676f436f6c6f723d7768697465)
[npm @danwo/cli](https://www.npmjs.com/package/@danwo/cli)
[TypeScript](https://camo.githubusercontent.com/e9fafa6bc443663f16ad3ddbf585ba5fdae3a4c43cde1040947fa5b52ee3cb77/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f547970655363726970742d3331373863363f6c6f676f3d74797065736372697074266c6f676f436f6c6f723d7768697465)

  

danwo is a complete UI testing framework on its own: locators, plain-English agent steps that
replay with no model calls, and screenshot comparison, in a browser, on Android or on iOS. When
your app takes payments, sends email or handles webhooks, turn on the backend layer: emulated
providers, invariants and a fault matrix.

## A test

### With locators: no model needed

```
import { test } from "@danwo/sdk"

test("signs up", async ({ app, screen, expect }) => {
  await app.open("/sign-up")
  await screen.getByLabel("Email").fill("[email protected]")
  await screen.getByLabel("Password").fill("correct horse battery staple")
  await screen.getByRole("button", { name: "Create account" }).click()

  await expect(screen.getByRole("heading", { name: "Welcome, Ada" })).toBeVisible()
})
```

This runs with no model and no API key.

### In plain English: a model on the first run, then cached

```
import { test } from "@danwo/sdk"

test("buys two mugs", async ({ app, agent, screen, expect }) => {
  await app.open("/")
  await agent.act("add two blue mugs to the basket and go to checkout")
  await agent.assert("the basket shows two blue mugs")

  await expect(screen).toHaveScreenshot("checkout")
})
```

The first run needs a model and its API key: each step goes to the model, which works out the
clicks, and danwo records them. Later runs replay that recording with no model call. Commit the
recording and CI replays it too; `danwo test --replay-only` makes sure no model is called there. A
step goes back to the model only when the page has changed enough that its recording no longer
fits.

## Quickstart

You need Node.js 22.22.3 or a later 22, or 24.11.1 or newer, on macOS, Linux or Windows (web
tests; mobile tests need macOS or Linux). In your app's folder:

```
npx @danwo/cli init
npm run test:danwo
```

`init` asks what to test, which model and providers to use (pick none for a UI-only start) and
which coding agents to set up. It writes a config and a first test that passes, and installs the
browser. See the [quickstart](https://danwo.dev/docs/quickstart).

## Add the backend layer when you need it

|  |  |
| --- | --- |
| **Emulates the providers** | Stripe, Clerk, Resend, Google, Slack and 20 more answer from local emulators behind a proxy. No sandbox keys, no code changes. |
| **Judges the backend** | An invariant reads your database and the provider after the test: one row, one charge, one email. |
| **Breaks it on purpose** | `danwo matrix` reruns a test once per fault: 500s, declines, duplicate webhooks, lost database commits. The invariant judges each run. |

```
test("joins the waitlist", async ({ app, screen, expect }) => {
  await app.open("/")
  await screen.getByLabel("Work email").fill(EMAIL)
  await screen.getByRole("button", { name: "Join the waitlist" }).click()

  await expect(screen.getByRole("status")).toContainText("You're on the list")
}).invariant(async ({ databaseUrl, resend, expect }) => {
  // Whatever went wrong on the way: one row, one welcome email.
  expect(await sql(databaseUrl, "select id from signups where email = $1", [EMAIL])).toHaveLength(1)
  expect(resendInbox(resend).list(EMAIL)).toHaveLength(1)
})
```

```
npx @danwo/cli matrix tests/waitlist.danwo.ts
```

```
PASS  status 429 on POST api.resend.com/emails
PASS  reset-after on POST api.resend.com/emails
PASS  serialization_failure on INSERT signups (postgres)
PASS  double-submit on POST /api/join
…
faults: 16 passed
```

Remove the app's idempotency key and two trials turn red: a second welcome email went out.
See [the fault matrix](https://danwo.dev/docs/fault-matrix).

Every run, with or without the backend layer, leaves a flight record: video, steps, and the calls
behind them, in a dashboard, a PR comment and over MCP.

## Examples

Each one runs with no real keys. Clone, install, test.

| Example | What it shows |
| --- | --- |
| [`commerce`](https://github.com/carbonmeai/danwo/blob/main/examples/commerce) | A shop on Next.js, Hono, Postgres and Stripe Checkout. 86 faults held. |
| [`saas`](https://github.com/carbonmeai/danwo/blob/main/examples/saas) | Workspaces, a trial and billing, Slack and Google, Inngest jobs, live notes. |
| [`clerk-login`](https://github.com/carbonmeai/danwo/blob/main/examples/clerk-login) | The real Clerk components, Google sign-in and org invites, on the emulator. |
| [`better-auth`](https://github.com/carbonmeai/danwo/blob/main/examples/better-auth) | Self-hosted Better Auth: email codes, Google and GitHub, linked accounts. |
| [`with-next`](https://github.com/carbonmeai/danwo/blob/main/examples/with-next) | The smallest one: a Next.js waitlist on Postgres and Resend. |
| [`with-swiftui`](https://github.com/carbonmeai/danwo/blob/main/examples/with-swiftui) | The same waitlist as a native SwiftUI app on the iOS Simulator. |
| [`with-compose`](https://github.com/carbonmeai/danwo/blob/main/examples/with-compose) | The same waitlist as a native Jetpack Compose app on an Android emulator. |
| [`with-flutter`](https://github.com/carbonmeai/danwo/blob/main/examples/with-flutter) | The same waitlist as a Flutter app, on an Android emulator or iOS Simulator. |

More in the [examples gallery](https://danwo.dev/docs/examples).

## Where it runs

|  |  |
| --- | --- |
| [Web apps](https://danwo.dev/docs/web) | Any framework, started by danwo or already running. |
| [Android](https://danwo.dev/docs/android-tests) | Expo, React Native, Jetpack Compose and Views apps on an emulator. |
| [iOS](https://danwo.dev/docs/ios-tests) | Expo, React Native, SwiftUI and UIKit apps on an iOS Simulator. |
| [Playwright Test](https://danwo.dev/docs/playwright) | Keep your tests, add emulators and the matrix. |
| [From Cypress](https://danwo.dev/docs/cypress) | Move a Cypress suite over one spec at a time. |
| [From Detox](https://danwo.dev/docs/detox) | Move a Detox suite over one test file at a time. |
| [Real stacks](https://danwo.dev/docs/real-stacks) | Several apps, workers, databases and background jobs behind one proxy. |
| [CI](https://danwo.dev/docs/ci) | A GitHub Check and a PR comment that say what broke and whose fault it is. |
| [Coding agents](https://danwo.dev/docs/coding-agents) | A skill and an MCP server for Claude Code, Cursor and Codex. |

## Contributing

Node 22.22.3+ or 24.11.1+, and bun:

```
bun install
bun run check
```

See [CONTRIBUTING.md](https://github.com/carbonmeai/danwo/blob/main/CONTRIBUTING.md), the [Code of Conduct](https://github.com/carbonmeai/danwo/blob/main/CODE_OF_CONDUCT.md), and
[SECURITY.md](https://github.com/carbonmeai/danwo/blob/main/SECURITY.md) for reporting a vulnerability. danwo is early: APIs will change.

## The name

*Dánwò* is Yorùbá for "to test". It comes from *dán … wò*, "try it and see": you put something
to the test and watch what happens. Say it *DAHN-woh*, high then low.

## Licence

The code is under the [Apache License 2.0](https://github.com/carbonmeai/danwo/blob/main/LICENSE). The dánwò name and logo are trademarks of
Carbonme Inc; see [TRADEMARKS.md](https://github.com/carbonmeai/danwo/blob/main/TRADEMARKS.md).
faithfulojebiyi30
🟧 echo.github ⭐The project describes an open-source TypeScript framework for replayable UI-agent steps, with optional provider emulation, backend invariantFaithful Ojebiyi——

Interpretation history

Decision trace