How Twill DB is delivered

There is one engine and you reach it through one of two front doors. The backend it durably writes to is chosen by the connection string, not by a rebuild.

You want…UseBackend by URL
In-process, function-call latency (one app)Embedded via bun:ffi / the C ABIfile:// (local) or s3:// (disaggregated)
Multi-client access / existing Postgres toolsServer via the Postgres wire protocolfile:// or s3:///r2:///gs://

The one thing to remember

The storage backend is selected purely by the URL scheme passed at open time. file:// is pure-embedded with zero network; s3:// / r2:// / gs:// is storage-disaggregated and scale-to-zero. The engine, the C ABI, and your SQL are identical either way.

Browse the docs

Looking for design intent?

This section is the user documentation. If you want to understand how and why the engine is built the way it is β€” the storage seam, MVCC, the S3-CAS commit log, the lifecycle controller β€” the design specifications are indexed with their status on the Release page. To see what shipped in each version, see the Changelog.

Project status & license

Twill DB is an experimental, maintainer-led project. The source is public to read, evaluate, and self-host, and issues and feedback are welcome β€” but it is not accepting external pull requests at this stage (they may be closed without review).

Licensed under BUSL-1.1 (source-available)

Twill DB ships under the Business Source License 1.1 β€” a source-available, not open source, license. You may read, modify, and self-host it, including in production as the database behind your own applications. You may not offer Twill DB to third parties as a hosted or managed database service. Each released version converts to the Apache License 2.0 on its Change Date (four years after release). See CONTRIBUTING and GOVERNANCE for the contribution policy.

Twill DB documentation Β· Licensed under BUSL-1.1. Β· Author