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

Prisma ORM

TypeScript ORM with agent-oriented workflows

Prisma ORM lets TypeScript applications define data models in a contract file and query databases with type-safe APIs. Version eight rewrites the stack in TypeScript with extensibility and bundled agent skills.

★ 47.8k⟳ yesterdayApache-2.0
DatabasesDesktop/CLI app

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.

★ 43.4k⟳ todayMIT
DatabasesDesktop/CLI app

GORM

Feature-rich ORM library for Go applications

GORM maps Go structs to SQL databases with migrations, associations, hooks, and a fluent query API. It targets developer-friendly access patterns for common CRUD and relationship modeling.

★ 40k⟳ 1 month agoMIT
DatabasesDesktop/CLI app

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.

★ 39.6k⟳ 15 days agoBSD-3-Clause
DatabasesDesktop/CLI app

Mongoose

Schema-based MongoDB object modeling for Node.js

Mongoose is an object modeling layer for MongoDB built for async Node.js code. It adds schemas, validation, and query helpers on top of the official MongoDB driver.

★ 27.5k⟳ yesterdayMIT
DatabasesDesktop/CLI app

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.

★ 23.4k⟳ yesterdayApache-2.0
DatabasesDesktop/CLI app