An open-source Rust backend, next to Supabase and Firebase.
Harness is an open-source Rust backend. Sign-in, sign-ups, a waitlist, a content store and payments are MIT-licensed crates that you compile into one binary. It runs on Cloudflare Workers or as a native server, and every backend gets a database of its own. For some projects that makes it a real alternative to Supabase or Firebase. For others it is the wrong tool, and this post says which.
By Nick van der Meij · Published
Listen to this post
In short
- Harness is 65 crates on crates.io under the MIT licence, with 3,458 tests, counted on 25 October 2026.
- You pick modules as crates and wire them in one file. A backend whose parts do not fit together fails the build.
- Every backend gets its own database: Cloudflare D1 on Workers, or Postgres on a server you run.
- Cratefield, the managed service on top of Harness, is planned and not running. Today you run Harness yourself.
§1 · Today
What exists today.
Two things carry our name, and they are at different stages. Harness is the open-source core. It is merged, tested and public, which on this site earns the label Shipping. Cratefield is the managed service that would run Harness for you. It is Planned: not built, not running, and not something you can buy. Everything below is about Harness unless it says otherwise.
- 65crates published on crates.io
- 410,214lines of Rust
- 3,458tests
- MITlicence, on every crate
Those crates include 17 modules and 24 adapters. A module is a finished feature: confirmed email sign-ups, a waitlist with referral codes, a content store, sign-in with passkeys or Google. An adapter connects a module to a service such as Resend, Stripe or Postgres. The catalogue lists each one with its status.
§2 · Compile
You compile the backend. You do not configure it.
A Harness backend is a Cargo project. You list module crates in Cargo.toml and wire them in one file. This is abridged from the example backend in the repository: two of its modules are shown, and the comments are removed.
Harness::builder()
.venture(Venture::new(
"venture-example", "example.factory0.dev")
.public_url("https://example.factory0.dev")
.cors_origins(["https://example.factory0.dev"]))
.module(EmailSignup::new())
.module(Waitlist::new()
.products(["kontinuum", "undercover-rockstars"])
.confirm_ttl_days(7))
.templates(templates)
.ui(Ui::from_spec(include_str!("../ui.json"))?)
.runtime(Cloudflare::new()
.db("DB")
.mailer(Resend::new(..)))
.build()?
The last line is a check. build() refuses a module that needs a service the runtime does not provide. It refuses two modules that claim the same route prefix or the same table. It refuses a module built against a different contract version. The project template runs that call under cargo test, so a backend that does not fit together fails before it is deployed.
The binary holds the modules you listed and no others. Plugins are never loaded at run time, and no settings page can switch a feature on in production. Changing the module set is a new build and a new deploy.
We wrote about why this suits code written by agents in Why we write agent-built backends in Rust, on the Factory Zero blog.
§3 · Field
The other open backends, from their own pages.
Search for a Supabase or Firebase alternative and the same few names keep coming back. Each row below is taken from that project's own README, licence file or documentation, read on 30 November 2026.
| Project | Server licence | Built on | Database |
|---|---|---|---|
| Supabase | Apache 2.0 | A set of open-source tools: PostgREST, GoTrue, a realtime server in Elixir | Postgres |
| Firebase | We found no published server source | Google's hosted services | Firestore, a NoSQL cloud database |
| Appwrite | BSD 3-Clause | Services you run with Docker, or a Helm chart | PostgreSQL by default |
| PocketBase | MIT | Go, shipped as one file | Embedded SQLite |
| TrailBase | OSL-3.0 | Rust and Wasmtime, one executable | SQLite, with Postgres as an experiment |
| Convex | FSL-1.1, turning into Apache 2.0 after two years | A backend in Rust. You write functions in TypeScript | Its own reactive database |
| Harness | MIT | Rust crates you compile together | D1 (SQLite) on Workers, or Postgres |
Most of these are servers. You start one, then set it up through a dashboard or an API. PocketBase and TrailBase are the nearest to Harness in spirit, since both are a single program with SQLite inside. Harness sits at a different point: it is a library you build your own server from. Our longer comparisons are on the comparison page.
§4 · Database
A database for every backend.
An app on Supabase or Firebase normally keeps all its customers in one database and uses rules to decide who sees what, unless you pay for a project per customer. Harness gives each backend a database of its own. On Cloudflare that is one Worker and one D1 database. If you run a backend per customer, as agencies and many B2B products do, that is one database per customer today. Splitting customers into separate databases inside a single backend is Designed in a public epic (#23) and unbuilt.
The trade is laid out in Database per tenant or shared schema. What it takes to run Rust on Workers at all is in Running a Rust backend on Cloudflare Workers.
§5 · Limits
What Harness does not solve.
Nobody runs it for you yet. Supabase, Firebase, Appwrite and Convex all have a hosted service you can use this afternoon. Ours is planned, so today you deploy Harness to your own Cloudflare account or your own server.
On Workers the database is D1, which is SQLite. That means no pgvector, no Postgres extensions and no LISTEN/NOTIFY. Cloudflare caps a D1 database at 10 GB. If you need Postgres, the Postgres adapter and the native runtime are merged, and you host them.
Realtime runs on the native runtime only. The edge version, backed by a Durable Object, is Designed in a public issue (#103) and unbuilt. Supabase and Firebase both have live updates working now.
The admin pages show each module's own tables. A general data browser like the Supabase table editor does not exist here. And you compose in Rust, which is a real cost for a team that does not know the language.
So choose Supabase if you want Postgres with an API and a dashboard today. Its free projects pause after one week without activity, and Pro is listed from $25 a month, by its own pricing page. Choose Firebase for a phone app that needs offline sync and ready-made client libraries. Choose PocketBase if one file with an admin dashboard is all you need, and note that its README says full backward compatibility is not guaranteed before v1.0.0.
Choose Harness when you want the features as code you own, a database per backend, and the option to leave Cloudflare without rewriting a module.
§6 · Start
Trying it takes a terminal.
The quickstart goes from an empty directory to a backend answering curl on your own machine, against local SQLite. It installs the CLI from crates.io:
cargo install --locked cratefield-cli
The commands on that page were recorded in a real run on 18 October 2026, and that run deployed nothing. If you would prefer us to operate the result, the waitlist is open. It is a waitlist for a service that is not built.
Questions
Questions people ask about this.
- Is Harness a drop-in replacement for Supabase?
- No. Harness does not emulate PostgREST, so
supabase-jsdoes not talk to it and client code has to change. A migration path is being built in five steps. The first, a read-only inspection of a Supabase project, is merged and runs from source. The other four are designed and unbuilt. The five steps and where each one stands. - Is there a hosted version?
- Not yet. Cratefield is the managed service that would build, deploy and operate a Harness backend for you. It is planned, it is not running, and nobody can sign up for it. The open-source half is what exists today, and you deploy it to your own Cloudflare account or your own server.
- Do I have to write Rust?
- To compose a backend from the published modules you edit one Rust file and a
Cargo.toml. To write a module of your own you implement a trait in Rust. There is no configuration screen that does it for you. - Can I run it without Cloudflare?
- Yes. The same modules build as a native binary on tokio with a Postgres adapter, and the module tests run against SQLite and Postgres in CI. The
fz data exportcommand moves a backend's rows from D1 into Postgres.
Sources
Where the numbers come from.
- Cratefield/harness, source and decision records, Cratefield. The crate, line and test counts are from commit 766e5a6.
- ADR 0003: Compile-time composition, one Worker per venture, Cratefield, 5 September 2026.
- Supabase README, Supabase. Read on 30 November 2026.
- Supabase pricing, Supabase. Vendor list prices, read on 30 November 2026.
- Cloud Firestore documentation, Google. Read on 30 November 2026.
- Appwrite README and self-hosting guide, Appwrite. Read on 30 November 2026.
- PocketBase README, PocketBase. Read on 30 November 2026.
- TrailBase README, TrailBase. Read on 30 November 2026.
- Convex backend README and licence, Convex. Read on 30 November 2026.
- D1 limits, Cloudflare. Read on 30 November 2026.
Keep reading
- 02Database per tenant or shared schema: where each one fails.Database per tenant vs shared schema, with the numbers: what row-level security costs when a rule is missing, what many small databases cost, and D1's limits.
- 03Running a Rust backend on Cloudflare Workers: what works and what bites.A Rust backend on Cloudflare Workers means WebAssembly, no Tokio and a 10 ms free CPU budget. The rules, Cloudflare's limits and our own measurements.