qmetrics.net

BadgerDB

Embeddable pure Go persistent key-value store

BadgerDB screenshot

BadgerDB is an embeddable, persistent key-value database written in Go. It supports concurrent ACID transactions with serializable snapshot isolation.

Overview

BadgerDB is a key-value database meant to be linked into Go applications rather than run as a separate server. It persists data on disk and is optimized for SSD-oriented access patterns, following a design that separates keys from values to reduce write amplification compared with typical LSM trees.

The database supports concurrent ACID transactions with serializable snapshot isolation, snapshots, TTL on keys, and versioned access to values through its iterator APIs. It is embeddable, offers sorted key iteration, and is implemented in pure Go without cgo. A command-line utility supports offline backup and restore operations.

Badger serves as the storage layer for projects such as Dgraph and is used in production for large datasets. It gives teams that want a Go-native embeddable store an alternative to key-value engines implemented outside Go. Platform-specific code handles directory locking and fsync on Linux, macOS, BSD, Windows, and several other targets.

Documentation covers installation via Go modules, encryption at rest, troubleshooting, and design comparisons with other embeddable stores. A maintained list of downstream adopters spans tracing, messaging, certificate management, and other domains.

Key features

  • Embeddable Go key-value store
  • ACID transactions with SSI
  • SSD-oriented LSM plus value log
  • Pure Go without cgo
  • TTL and multi-version keys
  • Snapshots and iterators
  • CLI backup and restore tool
  • Encryption at rest support

Use cases

  • Embedded app storage in Go
  • High-throughput local KV workloads
  • Foundation for graph or trace backends
  • Offline backup via Badger CLI
  • Replacing non-Go embeddable stores

Tags

Similar software

DuckDB

In-process analytical SQL database engine

DuckDB embeds in applications and the CLI to run fast OLAP SQL locally. It reads Parquet, CSV, JSON, remote object storage, and lakehouse formats without a separate database server.

  • Embedded in-process OLAP engine
  • Rich SQL with windows and nested types
  • Direct queries on Parquet and CSV files
C++CLIDetails →
★ 43.7k⟳ todayMIT

LevelDB

Ordered embedded key-value storage library

LevelDB is a fast embedded library that maps string keys to string values in sorted order. Applications link it in-process; it is not a SQL database and has no built-in client-server layer.

  • Sorted byte-key storage
  • Custom key comparators
  • Atomic write batches
C++Linux, macOS, WindowsDetails →
★ 39.6k⟳ 21 days agoBSD-3-Clause

RocksDB

Embeddable persistent key-value storage engine

RocksDB is an embeddable C++ library for a persistent key-value store tuned for flash and RAM. It suits embedded workloads, caches, and storage engines inside larger systems.

  • Embeddable LSM key-value engine
  • Configurable amplification tradeoffs
  • Multi-threaded compactions
C++Details →
★ 32.4k⟳ todayGPL-2.0 · open core

Turso

In-process Rust SQL engine with SQLite and experimental Postgres frontends

Turso is an in-process SQL database compatible with SQLite files and APIs. It compiles queries to bytecode on a shared virtual machine and adds bindings for many languages.

  • SQLite-compatible dialect and file format
  • Bytecode VM with multiple SQL frontends
  • Experimental Postgres dialect and wire protocol
RustLinux, macOS, Windows, DockerDetails →
★ 25.4k⟳ todayMIT

RxDB

Local-first reactive NoSQL database for JavaScript

Stores application data on the client with reactive queries and optional sync to your own backend. Targets websites, hybrid mobile apps, desktop shells, and Node.js.

  • Reactive query subscriptions
  • Offline local-first storage
  • Pluggable storage engines
TypeScriptWebDetails →
★ 23.5k⟳ todayApache-2.0
Open Source Alternative to:Firebase Realtime Database

GUN

Decentralized graph sync and embedded data engine

GUN is a JavaScript graph database protocol for realtime peer-to-peer sync, offline-first use, and end-to-end encryption. npm install gun gets a small embedded engine for browser and Node.

  • Realtime P2P graph synchronization
  • Offline-first local data
  • End-to-end encryption support
JavaScriptWeb, DockerDetails →
★ 19.2k⟳ todayMIT · open core
Open Source Alternative to:Cloud Firestore