#347347th of 358 in Backends, databases and hosting

sled

Embedded key-value database for Rust with a BTreeMap-like API

Releases and problems feed (RSS)

Stars
9.1k
License
Apache-2.0
Last commit
Apr 2026
Last release
Sep 2021
Language
Rust
Stars, last 29 weeks+202
2 May 2026: 8,942 stars9 May 2026: 8,952 stars16 May 2026: 8,959 stars23 May 2026: 8,970 stars30 May 2026: 8,983 stars6 Jun 2026: 8,995 stars13 Jun 2026: 9,003 stars20 Jun 2026: 9,010 stars27 Jun 2026: 9,016 stars4 Jul 2026: 9,022 stars11 Jul 2026: 9,027 stars18 Jul 2026: 9,030 stars25 Jul 2026: 9,036 stars1 Aug 2026: 9,042 stars8 Aug 2026: 9,049 stars15 Aug 2026: 9,056 stars22 Aug 2026: 9,064 stars29 Aug 2026: 9,067 stars5 Sept 2026: 9,072 stars12 Sept 2026: 9,075 stars19 Sept 2026: 9,082 stars26 Sept 2026: 9,085 stars3 Oct 2026: 9,093 stars10 Oct 2026: 9,096 stars17 Oct 2026: 9,099 stars24 Oct 2026: 9,108 stars31 Oct 2026: 9,110 stars7 Nov 2026: 9,116 stars14 Nov 2026: 9,124 stars21 Nov 2026: 9,144 stars

8,942 on 2 May 20269,144 on 21 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

sled is an embedded Rust database exposing a thread-safe, ordered byte-key API similar to BTreeMap, with ACID multi-key transactions, compare-and-swap, write batches and prefix subscriptions. It uses a lock-free tree over a log-structured pagecache and fsyncs every 500ms by default. The README states it is beta, the on-disk format will change before 1.0.0, and the README is out of sync with a main branch undergoing a rewrite.

Who it is for: Rust developers needing an embedded ordered key-value store

Strengths

  • Serializable transactions across multiple keys and keyspaces
  • Ordered range queries with forward and reverse iterators
  • Prefix watch subscriptions that can be awaited as a Future
  • Optional zstd compression via the `compression` build feature

Weaknesses

  • Beta; README says to use SQLite if reliability is the primary constraint
  • On-disk format will change before 1.0.0, requiring manual migrations
  • Can use too much disk space; README points to RocksDB for that
  • Only one open instance per process; last release was 2021-09

What it needs

  • no GPU

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Also in Backends, databases and hosting

See all 358
Also in Backends, databases and hosting
RankProjectScore
#345ferretdbMongoDB-compatible proxy that stores documents in PostgreSQL11.1k starsApache-2.030 out of 100
#346graphqlFull-stack React framework with GraphQL API and Prisma, now succeeded by RedwoodSDK17.6k starsMIT29 out of 100
#348gelGraph-relational database with object types and the EdgeQL query language14.2k starsApache-2.028 out of 100
#349nodejs-backend-architecture-typescriptExpress, TypeScript and MongoDB blog API with JWT auth and Redis caching3.1k starsApache-2.027 out of 100
#350vectorchordPostgreSQL extension for vector search with RaBitQ compression1.8k starscustom license27 out of 100