Self-host dgraph
v25.5.1Distributed GraphQL database with native query support
- Stars
- 21 838
- Ports
- 8080 (HTTP connections), 9080 (gRPC connections)
What is dgraph?
Dgraph is a horizontally scalable graph database combining a GraphQL query layer with a distributed backend. It handles real-time queries across terabytes of data while maintaining ACID transactions, linearizable reads, and consistent replication. Built in Go, it's optimized for low latency at scale and powers production systems at Fortune 500 companies.
dgraph alternatives
arangodbSelf-hosted multi-model database for documents, graphs and key-values, queried in one AQL language; the open-source Community edition is free for non-commercial use.Comparearangodb with dgraph
neo4jSelf-hosted, open-source graph database: query connected data with Cypher under ACID transactions. Run the free GPLv3 Community Edition via Docker, packages, or Helm.Compareneo4j with dgraph
ArcadeDBOpen-source, self-hosted multi-model database: one ACID engine for graph, document, key-value, vector, full-text and time-series data, queried in SQL, Cypher or Gremlin.CompareArcadeDB with dgraph
terminusdbOpen-source knowledge graph database with built-in version control for branching, merging, and time-travel queries using Datalog.Compareterminusdb with dgraph
NornicDBSelf-hosted, open-source graph database speaking Neo4j Bolt/Cypher and Qdrant-style gRPC, uniting HNSW vector search, hybrid retrieval, and MVCC historical reads.CompareNornicDB with dgraph
graph-nodeSelf-hosted, open-source Graph Node indexes Ethereum and other blockchains into PostgreSQL and serves subgraphs over GraphQL.Comparegraph-node with dgraph
SurrealDBSelf-hosted, source-available Rust database unifying documents, graphs, vectors and time-series, with live queries and row-level permissions in SurrealQL.CompareSurrealDB with dgraph
tidbSelf-hosted, open-source distributed SQL database with MySQL compatibility, ACID transactions, HTAP analytics and vector search in one engine.Comparetidb with dgraph
Should you self-host dgraph?
dgraph scores 74/100 on selfhost.directory (how scoring works) and ranks #9 of 38 in Databases. It has 21 838 GitHub stars, +27 in the last 30 days.
It shipped 16 stable releases in the past year. The latest, v25.5.1, came out on 22 October 2026. New versions land roughly every 9 days.
Setup is moderate: expect some configuration beyond a single command. It is Apache-2.0-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is Redis (86/100, 77 583 stars). It scores higher overall, so compare the two before you pick. See dgraph vs Redis side by side.
Features
- ACID Transactions
- Distributed architecture
dgraph README
Dgraph is a horizontally scalable and distributed GraphQL database with a graph backend. It provides ACID transactions, consistent replication, and linearizable reads. It's built from the ground up to perform a rich set of queries. Being a native GraphQL database, it tightly controls how the data is arranged on disk to optimize for query performance and throughput, reducing disk seeks and network calls in a cluster.
More in Databases
docker-postgisOfficial Docker images for PostgreSQL with PostGIS spatial extensions. Debian and Alpine variants for PostgreSQL 14-18 with PostGIS 3.6. Self-hosted, open-source.
DocumentDBSelf-hosted, open-source MongoDB-compatible document database built on PostgreSQL with native BSON, vector search, and SCRAM authentication.
dokploySelf-hosted, open-source PaaS to deploy apps, Docker Compose stacks and databases on your VPS, with one-click templates, Traefik, backups and multi-server support.
DruidSelf-hosted open-source OLAP database delivering millisecond analytics on high-cardinality event data, with SQL, JDBC, a web console and native Kafka/Kinesis ingestion.
DumboDBDumboDB is a self-hosted, open-source document database with MongoDB 8.0 wire protocol and Git-style version control for data. Runs via Docker or binary.
etcdA self-hosted, open-source distributed key-value store using Raft consensus for critical data in clustered systems. CNCF graduated project.
ferretdbOpen-source, self-hosted MongoDB alternative: a proxy that turns MongoDB 5.0+ queries into SQL on PostgreSQL with the DocumentDB extension.
FirebirdSQLFirebird is a self-hosted, open-source relational database with ANSI SQL compliance, excellent concurrency, and high performance on Linux, Windows, macOS, and Android.
firebolt-coreA free, self-hosted analytical database with PostgreSQL SQL, Iceberg support, and distributed query execution scaling from laptop to enterprise clusters.
GelOpen-source graph-relational database that builds on Postgres with EdgeQL, migrations, branching, built-in auth and AI; self-hosted via Docker or the gel-server binary.
GizmoSQLSelf-hosted SQL server on DuckDB/SQLite with Arrow Flight SQL, TLS, JWT auth. Core is Apache 2.0; Enterprise adds SSO, metrics, permissions.
GoatDBGoatDB is an open-source embedded document database for human-agent collaboration with offline-first sync, structural merge, and cryptographic commit signing.
0 comments