• ๐Ÿฆ€Written in memory-safe Rust
  • ๐Ÿ›กCrash simulation from day one
  • โš–Apache-2.0, no telemetry, no limits
Open source Apache-2.0 ยท written in Rust

The free database engine, written in Rust.

PlinthDB stores your data durably, commits transactions atomically and recovers cleanly after a crash. Its storage, logging, transactions and indexing are built from scratch. Free and open source.

Built in the open with

RUSTAPACHE-2.0WALB+TREECONCURRENCY (planned)SQL (planned)
Principles

Built to be fast, efficient and correct.

Every layer, from storage to transactions, is written from scratch in Rust.

๐Ÿฆ€

Independent engine

Its own storage, logging, transactions and indexing. It doesn't wrap SQLite, PostgreSQL, MySQL, DuckDB or RocksDB.

๐Ÿ›ก

Crash-safe by design

Checksummed pages, a write-ahead log with group commit, redo recovery that repairs torn pages, and transactions with rollback.

โš™

Deterministic testing

A crash simulator with lost and torn writes, disk-full and bit flips.

๐Ÿ”’

Memory safe

Rust with unsafe forbidden by default, plus malformed-input testing on every on-disk decoder.

โš–

Free forever

Apache-2.0. No artificial limits, no telemetry and no required network services.

โ—”

Well documented

Architecture notes, format specifications and a security policy live alongside the code.

Engine

Durable by default.

Open a database, run a transaction and know it survived. Changes are logged before they are applied, and recovery restores a consistent state on restart.

  • Crash-safe page storage and write-ahead log
  • Redo recovery, checkpoints and log truncation
  • Crash-safe B+tree with free-space reuse
  • Atomic transactions with rollback
  • SQL parser
main.rs
// every commit is atomic and durable
let mut txn = db.begin();
txn.put(b"user:1", b"ada")?;
txn.put(b"user:2", b"grace")?;
txn.commit()?;

// read back, scan a range, or roll back
let name = db.begin().get(b"user:1")?;
// after a crash, recovery restores a consistent state
Roadmap

What's next.

A

Performance

Reproducible performance work on a named reference machine, with results published.

B

SQL over the wire

A single-node SQL subset reachable through a client protocol, verified with differential tests.

C

Concurrency & replication

Concurrent transactions with history-checker tests, then a replication and failover design.

D

Production readiness

Tools, independent security review, soak tests, packaging and documentation.

Get started

Clone it, test it, embed it.

Build PlinthDB with the Rust toolchain, run the test suite, then use it through the Rust API.

git clone https://github.com/brielshallouf/PlinthDB && cd PlinthDB
cargo test --release

Requires the Rust toolchain.

Docs

Read how it's built.

FAQ

Questions, answered.

How do I get PlinthDB?

Clone the repository and build it with the Rust toolchain, then use it through the Rust API.

Is it free?

Yes. PlinthDB is licensed under Apache-2.0 with no artificial limits and no telemetry.

How was it written?

With AI assistance under human direction and review. See the project's provenance notes for credits and open legal items.

Is it affiliated with other databases?

No. Product names belong to their owners, and PlinthDB is not affiliated with or endorsed by them.

Follow the build.

Star the repository to follow development.

View on GitHub โ†—