# Badger

> Embeddable, persistent key-value database in pure Go

Source: https://talira.ai/catalog/badger-jjgdn1k6
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Database
- Categories: [databases / embedded](https://talira.ai/categories/databases/embedded), [databases / key value](https://talira.ai/categories/databases/key-value)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Dgraph](https://talira.ai/orgs/dgraph.md)

Badger (BadgerDB) is an embeddable, persistent key-value database written in pure Go, meant as a fast alternative to key-value stores that aren't written in Go, such as [RocksDB](https://talira.ai/catalog/rocksdb-2613tyv8.md). Its design follows the WiscKey paper: an LSM tree holds the keys and a separate value log holds the values, which suits SSDs and data sets of terabytes. It supports concurrent ACID transactions with serializable snapshot isolation, checked by a nightly Jepsen-style bank test, and encryption at rest, and a CLI does offline backup and restore. It's the storage engine under [Dgraph](https://talira.ai/catalog/dgraph-sjh2pm43.md), and projects such as Jaeger use it too.

## Links

- Website: https://dgraph-io.github.io/badger/
- GitHub: https://github.com/dgraph-io/badger
- Docs: https://dgraph-io.github.io/badger/

## Problems it solves

- an embedded key-value database for my Go program without cgo
- a pure Go alternative to RocksDB
- store terabytes of key-value data on SSD inside my Go service with transactions

## Features

- embedded key-value store in pure Go
- LSM tree with a separate value log (WiscKey design)
- concurrent ACID transactions with serializable snapshot isolation
- encryption at rest
- CLI for offline backup and restore
- optimized for SSDs and terabyte-scale data

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 0.48, adoption 0.84, momentum 0.64, community 0.93, backing 0.30, extensibility 0.00.

- last commit 52 days ago
- 4 commits in the last 90 days
- latest release v4.9.6 3 months ago
- 15.8k GitHub stars
- 214 contributors
- backed by Dgraph

## Related

- Works with [Dgraph](https://talira.ai/catalog/dgraph-sjh2pm43.md)

## Sources

[^1]: https://github.com/dgraph-io/badger/blob/main/LICENSE (checked 24 Nov 2026)
