# cockroachdb/pebble

RocksDB/LevelDB inspired key-value database in Go

Repository: https://github.com/cockroachdb/pebble
Canonical: https://ross.abutalabs.com/products/pebble
Language: Go
License: BSD-3-Clause
License Family: permissive
Last push: 2026-08-26T12:55:29+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 2969, "days_push": 7, "days_rel": 9, "gap_med": 22, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6000, forks 577 (observed 2026-08-28T04:09:34.158503+00:00)

## What it is
Pebble is a LevelDB/RocksDB-inspired embedded key-value storage engine written in Go, using LSM-tree based block-based tables and RocksDB-compatible file formats. It is the default storage engine for CockroachDB and is production-ready at scale.

## Use cases
- embed a key-value store in a Go application
- replace RocksDB with a pure Go storage engine
- store data with an LSM-tree database
- build a distributed database needing a storage layer
- perform fast range scans and prefix iteration
- ingest SSTable files in bulk

## When to choose
- you need an embedded, pure-Go key-value store with no cgo dependencies
- you want RocksDB-compatible file formats with better Go concurrency
- you need fast reverse iteration and efficient compactions
- you're building a database or storage system in Go

## When to avoid
- you need RocksDB features like column families, transactions, or backups
- you want a client-server database rather than an embedded library
- you need to open existing RocksDB databases using unsupported features
- you're not working in Go

## Facets
- artifact type: library
- maturity: stable
- function: database, caching, serialization
- domain: databases, developer-tools, performance
- platform: go, windows, cross-platform
- tags: key-value-store, lsmtree, storage-engine, embedded-database, sstable, leveldb, rocksdb, linux, macos

## Member repositories
- cockroachdb/pebble (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.158503+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:49:49.074769+00:00, confidence not recorded.
  - readme: https://github.com/cockroachdb/pebble (fetched 2026-08-28T04:09:34.158503+00:00, sha 53603d28b492)
- Data as of 2026-08-30T08:39:29.467469+00:00.
