Install
Every @flaky-tests/* package is published to both npm
and JSR. Pick whichever registry fits your
workflow — the code is identical.
A working setup needs exactly one runner plugin (plugin-bun or plugin-vitest) plus
one store adapter (store-sqlite, store-turso, store-supabase, or store-postgres).
The core package ships the CLI and is pulled in as a peer — install it explicitly if you
want to run flaky-tests directly.
The CLI + shared types. Installed automatically as a peer of every plugin, but you’ll want
it explicitly if you run flaky-tests --html or flaky-tests --prompt from your own scripts.
npm i -D @flaky-tests/corepnpm add -D @flaky-tests/coreyarn add -D @flaky-tests/coredeno add jsr:@flaky-tests/corenpx jsr add @flaky-tests/corebunx jsr add @flaky-tests/corepnpm dlx jsr add @flaky-tests/coreyarn dlx jsr add @flaky-tests/coreRunner plugins
Section titled “Runner plugins”Pick one. These wire into your test runner and capture failures into the store.
@flaky-tests/plugin-bun
Section titled “@flaky-tests/plugin-bun”Bun test preload. Registers a global lifecycle hook and writes to the store via bun:sqlite.
npm i -D @flaky-tests/plugin-bunpnpm add -D @flaky-tests/plugin-bunyarn add -D @flaky-tests/plugin-bundeno add jsr:@flaky-tests/plugin-bunbunx jsr add @flaky-tests/plugin-bunSee Setting up with Bun for the bunfig.toml preload step.
@flaky-tests/plugin-vitest
Section titled “@flaky-tests/plugin-vitest”Vitest reporter implementing onInit / onFinished. Works with Vitest 1.x+.
npm i -D @flaky-tests/plugin-vitestpnpm add -D @flaky-tests/plugin-vitestyarn add -D @flaky-tests/plugin-vitestnpx jsr add @flaky-tests/plugin-vitestpnpm dlx jsr add @flaky-tests/plugin-vitestyarn dlx jsr add @flaky-tests/plugin-vitestbunx jsr add @flaky-tests/plugin-vitestSee Setting up with Vitest for the vitest.config.ts reporter registration.
Store adapters
Section titled “Store adapters”Pick one. All adapters implement the same IStore interface,
so swapping later only requires an environment variable change.
@flaky-tests/store-sqlite — local
Section titled “@flaky-tests/store-sqlite — local”Local libSQL / SQLite, runs on Node and Bun. Zero-config, perfect for local dev.
npm i -D @flaky-tests/store-sqlitepnpm add -D @flaky-tests/store-sqliteyarn add -D @flaky-tests/store-sqlitenpx jsr add @flaky-tests/store-sqlitepnpm dlx jsr add @flaky-tests/store-sqliteyarn dlx jsr add @flaky-tests/store-sqlitebunx jsr add @flaky-tests/store-sqliteDetails: SQLite store
@flaky-tests/store-turso — remote libSQL (free tier)
Section titled “@flaky-tests/store-turso — remote libSQL (free tier)”Turso/libSQL for shared team visibility without infrastructure to run.
npm i -D @flaky-tests/store-tursopnpm add -D @flaky-tests/store-tursoyarn add -D @flaky-tests/store-tursonpx jsr add @flaky-tests/store-tursopnpm dlx jsr add @flaky-tests/store-tursoyarn dlx jsr add @flaky-tests/store-tursobunx jsr add @flaky-tests/store-tursoDetails: Turso store
@flaky-tests/store-supabase
Section titled “@flaky-tests/store-supabase”Supabase-hosted Postgres via the Supabase client.
npm i -D @flaky-tests/store-supabasepnpm add -D @flaky-tests/store-supabaseyarn add -D @flaky-tests/store-supabasenpx jsr add @flaky-tests/store-supabasepnpm dlx jsr add @flaky-tests/store-supabaseyarn dlx jsr add @flaky-tests/store-supabasebunx jsr add @flaky-tests/store-supabaseDetails: Supabase store
@flaky-tests/store-postgres — Postgres / Neon
Section titled “@flaky-tests/store-postgres — Postgres / Neon”Direct Postgres (Neon, RDS, self-hosted) via postgres.js.
npm i -D @flaky-tests/store-postgrespnpm add -D @flaky-tests/store-postgresyarn add -D @flaky-tests/store-postgresnpx jsr add @flaky-tests/store-postgrespnpm dlx jsr add @flaky-tests/store-postgresyarn dlx jsr add @flaky-tests/store-postgresbunx jsr add @flaky-tests/store-postgresDetails: Postgres / Neon store
Source links
Section titled “Source links”| Package | npm | JSR | Source |
|---|---|---|---|
@flaky-tests/core | npmjs.com | jsr.io | packages/core |
@flaky-tests/plugin-bun | npmjs.com | jsr.io | packages/plugin-bun |
@flaky-tests/plugin-vitest | npmjs.com | jsr.io | packages/plugin-vitest |
@flaky-tests/store-sqlite | npmjs.com | jsr.io | packages/store-sqlite |
@flaky-tests/store-turso | npmjs.com | jsr.io | packages/store-turso |
@flaky-tests/store-supabase | npmjs.com | jsr.io | packages/store-supabase |
@flaky-tests/store-postgres | npmjs.com | jsr.io | packages/store-postgres |