spacejam/sled

the champagne of beta embedded databases

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 30 minutes ago
Added to GitGenius on September 7th, 2026
Created on January 11th, 2016
Open Issues & Pull Requests: 172 (+0)
GitHub issues: Enabled
Number of forks: 429
Total Stargazers: 9,085 (+0)
Total Subscribers: 128 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 36.0 hours
Mean response time: 49.6 days
90th percentile: 89.1 days
Tracked items: 20

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 89% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 0% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 27
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 597 days
Stale 30+ days: 26
Stale 90+ days: 25

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (10)
  • feature (5)
  • correctness (2)
  • performance (2)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Sled is an embedded key-value database written in Rust that provides a BTreeMap-like API for persistent storage.

Sled addresses the need for an embedded database that avoids expensive deserialization costs and provides strong consistency guarantees. It uses a log-structured storage format optimized for flash media and implements lock-free, cpu-scalable concurrent access. The tool stores data as byte slices and offers zero-copy reads, allowing applications to work with structured data efficiently. It supports serializable ACID transactions across multiple keys and keyspaces, atomic single-key operations including compare-and-swap, and merge operators for custom value combination logic.

Developers should choose Sled for applications requiring an embedded database with strong transactional semantics and high concurrency without external dependencies. It suits projects that need to avoid deserialization overhead and benefit from its crash-safe monotonic ID generator, which can produce 75-125 million unique IDs per second. The tool includes optional zstd compression and implements modern b-tree optimizations like prefix encoding and suffix truncation that can reduce key storage by over 99% for sequential keys of uniform length. Sled provides range iteration in both directions, key prefix subscriptions for change notifications, and write batches for bulk operations.

The project maintains a Discord community for database discussions. The README notes that it contains a large in-progress rewrite on the main branch and is currently out of sync with the documentation, indicating substantial architectural changes underway. The codebase emphasizes formal methods and fuzzing for correctness validation, reflecting a focus on reliability in a database system.