# cberner/redb

An embedded key-value database in pure Rust

Repository: https://github.com/cberner/redb
Canonical: https://ross.abutalabs.com/products/redb
Homepage: https://www.redb.org
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust
Last push: 2026-08-26T22:32:46+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 2901, "days_push": 7, "days_rel": 16, "gap_med": 17.5, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4753, forks 235 (observed 2026-08-28T04:08:58.735905+00:00)

## What it is
redb is a simple, portable, high-performance embedded key-value database written in pure Rust, loosely inspired by LMDB. It stores data in copy-on-write B+trees and provides fully ACID-compliant transactions with MVCC, savepoints, and crash safety.

## Use cases
- embed a persistent key-value store in a Rust application
- replace LMDB or RocksDB with a pure-Rust alternative
- store application settings or metadata with ACID guarantees
- run concurrent readers alongside a writer without blocking
- persist data in no_std embedded environments with custom storage backends
- build a local cache or index with zero-copy reads

## When to avoid
- you need SQL or rich queries beyond key-value lookups
- you need a client-server or networked database
- you need multi-writer concurrency across processes
- you need features like secondary indexes or full-text search

## Facets
- artifact type: library
- maturity: stable
- function: database, serialization
- domain: databases, developer-tools
- platform: rust, cross-platform, embedded
- tags: key-value-store, embedded-database, acid, mvcc, copy-on-write, btree, no-std, lmdb-alternative

## Member repositories
- cberner/redb (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:58.735905+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:54.492736+00:00, confidence not recorded.
  - readme: https://github.com/cberner/redb (fetched 2026-08-28T04:08:58.735905+00:00, sha 552ca906fc38)
  - homepage: https://www.redb.org (fetched 2026-08-29T09:02:20.720544+00:00, sha 75bf150c8914)
  - registry_crates: https://crates.io/api/v1/crates/redb (fetched 2026-08-29T09:02:20.729584+00:00, sha 27b809c9f5d7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
