# spacejam/sled

the champagne of beta embedded databases

Repository: https://github.com/spacejam/sled
Canonical: https://ross.abutalabs.com/products/sled
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: incredibly-spicy, database, embedded-kv, concurrent, lock-free, formal-methods, high-performance, rust, kv, b-tree, b-plus-tree, log-structured, tree, fuzzing, persistence, crash-testing, orm, sled
Last push: 2026-04-04T14:52:13+00:00

## Health v2 (maintenance only)
Score: 57/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 75, release rhythm 8, longevity 100
- inputs: {"age_days": 3887, "days_push": 151, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9079, forks 429 (observed 2026-08-28T04:10:28.261501+00:00)

## What it is
sled is a lightweight, high-performance embedded key-value database written in pure Rust, offering a threadsafe BTreeMap-like API with ACID transactions, atomic operations, and crash-safe persistence. It is log-structured, lock-free, and flash-optimized, designed to be embedded directly into applications without a separate database server.

## Use cases
- embed a key-value store in a Rust application without running a separate database server
- store persistent key-value data with ACID transactions
- perform atomic compare-and-swap operations on keys
- generate crash-safe monotonic IDs at high throughput
- subscribe to changes on key prefixes for reactive updates
- replace SQLite or RocksDB for simple embedded storage workloads
- run range queries and iterators over sorted key spaces

## When to choose
- you need an embedded, serverless key-value store in a Rust project
- you want ACID transactions and crash safety without operational overhead
- you need high-performance concurrent access with a simple BTreeMap-like API
- you want zero-copy reads and flash-optimized storage

## When to avoid
- you need a mature, battle-tested database for critical production data (the project is in an in-progress rewrite with alpha releases)
- you need a client-server database or SQL queries
- you need rich secondary indexes or a full query language
- your team is not working in Rust

## Facets
- artifact type: library
- maturity: experimental
- function: database, caching, serialization
- domain: databases, developer-tools, backend
- platform: rust, cross-platform
- tags: embedded-database, kv-store, b-tree, log-structured, lock-free, acid-transactions, crash-safe, persistence

## Member repositories
- spacejam/sled (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:28.261501+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-29T17:24:00.654270+00:00, confidence not recorded.
  - readme: https://github.com/spacejam/sled (fetched 2026-08-28T04:10:28.261501+00:00, sha 6000d22babf4)
  - registry_crates: https://crates.io/api/v1/crates/sled (fetched 2026-08-29T08:23:48.431555+00:00, sha 371477428d19)
- Data as of 2026-08-30T08:39:29.467469+00:00.
