Databases Written in Go

52 projects

This subcategory lists databases whose engines are written in Go. Some are standalone servers you deploy, such as distributed SQL and time series databases. Others are embedded libraries that store data in files inside your own process, which is often what a Go developer is really looking for when building a tool, agent or single-binary service.

Among servers, TiDB is a distributed SQL database compatible with the MySQL protocol, and CockroachDB is a distributed SQL database that speaks the PostgreSQL wire protocol. Dolt is a MySQL-compatible database with Git-style branching and merging. rqlite replicates SQLite with Raft. Prometheus and VictoriaMetrics store metrics as time series, Dgraph is a graph database and Milvus is a vector database for embeddings. Among embedded stores, etcd's bbolt is a B+tree key-value store in a single file, Dgraph's badger is an LSM-tree store, and CockroachDB's pebble is a RocksDB-inspired engine. goleveldb has been quiet since 2024, while rosedb and immudb offer other designs.

For embedded storage, bbolt suits read-heavy workloads that value simplicity and transactions, while badger and pebble suit write-heavy workloads. If you need SQL in-process, an SQLite driver may be simpler than any key-value store. For servers, check each project's license as well as its features, since some database vendors have moved away from open-source licenses.

prometheus

Monitoring system and time series database.

github.com/prometheus/prometheusGo 1.26+ 109 dependenciesv3.15.1updated today

66.9k

Milvusby milvus-io

Milvus is a vector database for embedding management, analytics and search.

github.com/milvus-io/milvusGo 1.26+ 73 dependenciesv3.0.5updated today

46.6k

tidbby pingcap

TiDB is a distributed SQL database. Inspired by the design of Google F1.

github.com/pingcap/tidbGo 1.25+ 164 dependenciesv7.5.8updated today

40.7k

cockroachby cockroachdb

Scalable, Geo-Replicated, Transactional Datastore.

github.com/cockroachdb/cockroachGo 1.26+ 216 dependenciesupdated 4d ago

32.6k

influxdb

Scalable datastore for metrics, events, and real-time analytics.

v3.12.1updated 3d ago

31.8k

doltby dolthub

Dolt – It's Git for Data.

v2.6.2updated 2d ago

24.8k

dgraphby dgraph-io

Scalable, Distributed, Low Latency, High Throughput Graph Database.

github.com/dgraph-io/dgraph/v25Go 1.27+ 66 dependenciesv25.5.1updated today

21.8k

VictoriaMetrics

Fast, resource-effective and scalable open source time series database. May be used as long-term remote storage for Prometheus. Supports PromQL.

github.com/VictoriaMetrics/VictoriaMetricsGo 1.27+ 36 dependenciesv1.155.0updated today

18k

rqlite

The lightweight, distributed, relational database built on SQLite.

github.com/rqlite/rqlite/v10Go 1.27+ 25 dependenciesv10.6.6updated today

17.9k

badgerby dgraph-io

Fast key-value store in Go.

github.com/dgraph-io/badger/v4Go 1.24+ 11 dependenciesv4.9.6updated 13d ago

15.8k

DiceDB

An open-source, fast, reactive, in-memory database optimized for modern hardware. Higher throughput and lower median latencies, making it ideal for modern workloads.

1.0.0updated 6mo ago

10.8k

bboltby etcd-io

An embedded key/value database for Go.

go.etcd.io/bboltGo 1.26+ 6 dependenciesv1.5.0updated 17d ago

9.8k

immudbby codenotary

Immudb is a lightweight, high-speed immutable database for systems and applications written in Go.

github.com/codenotary/immudbGo 1.25+ 42 dependenciesv1.11.2updated 13d ago

9k

goleveldbby syndtr

Implementation of the LevelDB key/value database in Go.

github.com/syndtr/goleveldbGo 1.14+ 4 dependenciesv1.0.0updated 2y ago

6.3k

pebbleby cockroachdb

RocksDB/LevelDB inspired key-value database in Go.

github.com/cockroachdb/pebbleGo 1.25+ 34 dependenciesv2.1.7updated today

6.1k

rosedbby roseduan

An embedded k-v database based on LSM+WAL, supports string, list, hash, set, zset.

github.com/rosedblabs/rosedb/v2Go 1.21+ 7 dependenciesv2.4.0updated 8mo ago

4.9k

buntdbby tidwall

Fast, embeddable, in-memory key/value database for Go with custom indexing and spatial support.

github.com/tidwall/buntdbGo 1.18+ 7 dependenciesupdated 5mo ago

4.9k

redkaby nalgeon

Redis re-implemented with SQLite.

github.com/nalgeon/redkaGo 1.23+ 4 dependenciesv1.0.1updated 9mo ago

4.6k

ledisdbby siddontang

Ledisdb is a high performance NoSQL like Redis based on LevelDB.

github.com/ledisdb/ledisdbGo 1.12+ 11 dependenciesv0.6updated 3y ago

4.1k

godisby hdt3213

A Golang implemented high-performance Redis server and cluster.

github.com/hdt3213/godisGo 1.18+ 4 dependenciesv1.2.9updated 1y ago

3.8k

nutsdbby xujiajun

Nutsdb is a simple, fast, embeddable, persistent key/value store written in pure Go. It supports fully serializable transactions and many data structures such as list, set, sorted set.

github.com/nutsdb/nutsdbGo 1.24+ 9 dependenciesv1.1.0updated 9d ago

3.6k

LinDB

LinDB is a scalable, high performance, high availability distributed time series database.

github.com/lindb/lindbGo 1.22+ 44 dependenciesv0.4.1updated 3mo ago

3.1k

tiedotby HouzuoGuo

Your NoSQL database powered by Golang.

3.4updated 5y ago

2.7k

lotusdbby flower-corp

Fast k/v database compatible with lsm and b+tree.

github.com/lotusdblabs/lotusdb/v2Go 1.21+ 9 dependenciesv2.1.0updated 2mo ago

2.3k

CovenantSQL

CovenantSQL is a SQL database on blockchain.

github.com/CovenantSQL/CovenantSQLGo 1.13+ 54 dependenciesv0.8.1updated 4d ago

1.5k

columnby kelindar

High-performance, columnar, embeddable in-memory store with bitmap indexing and transactions.

github.com/kelindar/columnGo 1.19+ 12 dependenciesv0.4.1updated 1y ago

1.5k

Databunkerby paranoidguy

Personally identifiable information (PII) storage service built to comply with GDPR and CCPA.

updated 3d ago

1.5k

diskvby peterbourgon

Home-grown disk-backed key-value store.

github.com/peterbourgon/diskv/v3Go 1.12+ 1 dependencyv3.0.0updated 4y ago

1.5k

pogrebby akrylysov

Embedded key-value store for read-heavy workloads.

github.com/akrylysov/pogrebGo 1.18+ No dependencies v0.10.2updated 7mo ago

1.4k

objectbox-goby objectbox

High-performance embedded Object Database (NoSQL) with Go API.

github.com/objectbox/objectbox-goGo 1.12+ 2 dependenciesv1.9.0updated 1y ago

1.3k

eliasdbby krotik

Dependency-free, transactional graph database with REST API, phrase search and SQL-like query language.

github.com/krotik/eliasdbGo 1.12+ 3 dependenciesv1.4.0updated 2mo ago

1k

mossby couchbase

Moss is a simple LSM key-value storage engine written in 100% Go.

github.com/couchbase/mossGo 1.14+ 3 dependenciesupdated 3mo ago

1k

NornicDBby orneryd

High performance graph + vector database (Neo4j and qDrant compatible), focused on low latency graph-rag retreival for AI systems.

github.com/orneryd/nornicdbGo 1.26+ 44 dependenciesv1.4.3updated 1d ago

923

go-sqliteby glebarez

A Pure Golang implemented SQLite driver without CGO.

github.com/glebarez/go-sqliteGo 1.25+ 5 dependenciesv1.21.2updated 2mo ago

884

cloverby ostafen

A lightweight document-oriented NoSQL database written in pure Golang.

github.com/ostafen/clover/v2Go 1.23+ 7 dependenciesv1.2.0updated 1y ago

833

levigoby jmhodges

Levigo is a Go wrapper for LevelDB.

github.com/jmhodges/levigoGo 1.13+ No dependencies updated 4y ago

420

pudgeby recoilme

Fast and simple key/value store written using Go's standard library.

github.com/recoilme/pudgeGo 1.13+ No dependencies v1.0.2updated 5y ago

370

lynxdbby lynxbase

Lightweight columnar log analytics database with a pipe-style query language inspired by SPL.

github.com/lynxbase/lynxdbGo 1.26+ 39 dependenciesv0.2.5updated 2mo ago

286

Vastoby chrislusf

A distributed high-performance key-value store. On Disk. Eventual consistent. HA. Able to grow or shrink without service interruption.

updated 7y ago

262

piladbby fern4lvarez

Lightweight RESTful database engine based on stack data structures.

github.com/fern4lvarez/piladb3 dependenciesv0.1.5updated 11mo ago

206

libradbby amit-davidson

LibraDB is a simple database with less than 1000 lines of code for learning.

github.com/amit-davidson/LibraDBGo 1.17+ 2 dependenciesupdated 2y ago

202

nanotdbby aymanhs

A lightweight, zero-dependency, append-only Time-Series Database and Dashboard optimized for low-power hardware.

github.com/aymanhs/nanotdbGo 1.25+ 2 dependenciesv1.4.0updated 2mo ago

141

unitdbby unit-io

Fast timeseries database for IoT, realtime messaging applications. Access unitdb with pubsub over tcp or websocket using github.com/unit-io/unitd application.

github.com/unit-io/unitdbGo 1.26+ 16 dependenciesv0.7.0updated 17d ago

124

hareby jameycribbs

A simple database management system that stores each table as a text file of line-delimited JSON.

github.com/jameycribbs/hareGo 1.15+ No dependencies v0.6.0updated 5y ago

97

minisqlby RichardKnop

Embedded single file SQL database.

github.com/RichardKnop/minisqlGo 1.26+ 7 dependenciesv1.0.11updated 2mo ago

54

Cofferby claygod

Simple ACID key-value database that supports transactions.

github.com/claygod/cofferGo 1.17+ 3 dependenciesv1.1.1updated 13d ago

41

rotomby xgzlucario

A tiny Redis server built with Golang, compatible with RESP protocols.

github.com/xgzlucario/rotomGo 1.23+ 15 dependenciesv2.1.0updated 1y ago

41

gedbby vinicius-lino-figueiredo

MongoDB-like embedded database, written in pure-go. Supports indexing and complex queries.

github.com/vinicius-lino-figueiredo/gedbGo 1.24+ 5 dependenciesupdated 8mo ago

25

MemHopby qyiun666

Embedded cognitive memory database for AI agents. Six-layer architecture (L0-L5), Dream consolidation pipeline, three-channel RRF retrieval (BM25 + f16 vector + entity), single.meh file, pure Go, zero infrastructure.

github.com/qyiun666/MemHopGo 1.27+ 3 dependenciesupdated 1mo ago

25

tempdbby rafaeljesus

Key-value store for temporary items.

updated 8y ago

19

NoKVby feichai0017

Native metadata service for distributed filesystems, object storage, and AI dataset workloads.

updated 4d ago

10

Bitcask

Bitcask is an embeddable, persistent and fast key-value (KV) database written in pure Go with predictable read/write performance, low latency and high throughput thanks to the bitcask on-disk layout (LSM+WAL).

git.mills.io

Esc

Type to search every entry. ↑↓ to move, Enter to open.