Review and gate PostgreSQL migrations in pull requests and deploys
The Bfloo CLI in this repository reviews the database migrations of a pull request. It replays them on a throwaway PostgreSQL and says which steps destroy data or make a busy table wait. In a deploy pipeline, it checks that the target database has not drifted from what the deployed commit makes and blocks a dangerous change. It never changes your database.
What do you want to do?
bfloo gate in a GitHub workflow.bfloo command, then run bfloo review with
the command for your tool.A review and a gate need a bfloo/config.yaml in your project. bfloo init writes it, once the
bfloo command is there.
More jobs, and the rest of the manual, are in The Bfloo CLI manual. To learn it step by step, see Getting started.
Setup, the checks, the sign-off and the rules for working with AI tools are in CONTRIBUTING.md. The work that is open to you is on the Bfloo roadmap board, in its Contribute view. Questions and ideas go to Discussions.
Licensed under the Apache License 2.0.
The address the Action gives with engine-image turns TLS off, as the Bfloo CLI does for its own
https://github.com/bfloo-crew/bfloo/issues/203
Labels: needs decision
A quick start for Rails and for Django, with a workflow that runs every quick start
https://github.com/bfloo-crew/bfloo/issues/201
Labels: documentation, needs decision
The manual is right about an extension's enum types, and the tests use passwords with special characters
https://github.com/bfloo-crew/bfloo/issues/199
Labels: needs decision
A new NOT NULL column whose domain has a default is reported as a danger
https://github.com/bfloo-crew/bfloo/issues/191
Labels: needs decision
The lists of what is checked also place every column of the catalogs the snapshot reads
https://github.com/bfloo-crew/bfloo/issues/188
Labels: needs decision
The test harness reads error codes with the shared package, and its list of Bun's flags is held to Bun
https://github.com/bfloo-crew/bfloo/issues/187
Labels: needs decision
Try the Bfloo CLI with a Prisma 8 project
https://github.com/bfloo-crew/bfloo/issues/186
Labels: documentation, needs decision
A server that takes only encrypted connections is recognised in any language
https://github.com/bfloo-crew/bfloo/issues/185
Labels: needs decision
An object dropped while the gate reads the target is told plainly
https://github.com/bfloo-crew/bfloo/issues/184
Labels: needs decision
Thanks for helping with Bfloo. This page covers where to ask, issues, how to find work, what you need, how a change gets in, the checks it passes, the sign-off every commit carries, how to work with AI tools, and who maintains the project and how fast they reply.
SUPPORT.md says the same for someone who only uses the Bfloo CLI.
An issue is for a bug, a feature request, or agreed work. It starts from one of the forms, which ask for what's needed to act on it, such as a way to reproduce a bug or the problem a feature would solve. If you aren't sure whether something is a bug, or an idea is still taking shape, ask in Discussions first.
The work of the Bfloo CLI is on one public board, the Bfloo roadmap. Each card is an issue, and its column says where it stands: Backlog, Planning, Ready, In progress, In review, Done.
The board has these views:
help wanted or good first issue that nobody is assigned
to. Start here.Labels show where an issue stands:
help wanted: the plan is agreed and nobody is on it. Take it.good first issue: small and safe, kept for people who are learning the project. AI agents do
not take these (see Working with AI tools).needs decision: a maintainer must agree its plan or settle its decisions before anyone builds
it. Join the conversation on the card, but don't start the code.needs triage: new, and no maintainer has looked at it yet.needs reproduction: it can't move until someone can reproduce it.blocked: it waits on something else.breaking: it changes something users rely on.bug, enhancement, documentation, dependencies: what kind of change it is.question: a question rather than a change.duplicate: already reported elsewhere.wontfix: not planned.ai-needs-explanation and ai-guidelines-not-met: see Working with AI tools.Taking a card. Comment on the issue that you are on it, and a maintainer assigns it to you.
Then open a draft pull request early, so others can see the work is moving and a maintainer can
steer it before much is written. A claim that has been idle for 14 days lapses, and the card is
open to others again: if you still want it, say so in a comment. A card with neither help wanted
nor good first issue isn't open yet: ask on the card first.
packageManager names in package.json (1.4.5 as of
2026-12-01): installation. Bun installs the dependencies,
runs the scripts and the tests, and compiles the CLI..nvmrc, for ESLint, Prettier and the type checker, which run on
Node.bun install sets up the repository's git hooks.bun run --filter … test <file>) takes PostgreSQL 16 only;
BFLOO_TEST_POSTGRES_VERSIONS=all takes the four. Without Docker those specs are skipped, and
bun run verify says how many; CI runs them all. The playground, below, needs it too.openssl package where it's missing; on Windows, put Git for
Windows' usr\bin on the PATH. Without it those specs are skipped, and bun run verify says
how many; CI runs them all.BFLOO_TEST_WORKERS to a positive whole number:
BFLOO_TEST_WORKERS=2 bun run test. The results never depend on it, only the time. A spec that
runs docker itself is named *.docker.spec.ts (docs/testing/README.md, "Lanes and
workers"). BFLOO_TEST_POSTGRES_VERSIONS (all or one major, 15 to 18) picks the
PostgreSQL majors a run takes (docs/testing/README.md, "Lanes and workers").BFLOO_TEST_SUPABASE=1 to run it, and without the variable it is skipped and listed after the
run (docs/testing/README.md, "Supabase's image").A small fix, such as a typo or a clear bug, can go straight to a pull request. For anything bigger, take an issue that is open (see Finding work) or open one first, so the approach is agreed before you spend time on the code.
main, named <type>/<topic> after the commit type of the change:
fix/hook-paths, docs/contributing. A branch in your own fork can have any name.bun install,